@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./fonts/cormorant-normal-400.woff") format("woff");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("./fonts/cormorant-normal-600.woff") format("woff");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/cormorant-italic-400.woff") format("woff");
}
@font-face {
  font-family: "Noto Serif SC";
  src: local("Noto Serif CJK SC"), local("Songti SC"), local("SimSun");
  font-display: swap;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f5f3e9;
}
::-webkit-scrollbar-thumb {
  background: #b2bea3;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8ea67d;
}

:root {
  --cream: #faf7ef;
  --paper: #fffdf6;
  --green: #315d4b;
  --ink: #304b3d;
  --muted: #7c887a;
  --gold: #b3975d;
  --line: #d9ddce;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.52;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button,
select {
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #9a7939;
  outline-offset: 5px;
}
::selection {
  background: #dce5ca;
  color: #315d4b;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button {
  border: 0;
}
img {
  max-width: 100%;
  display: block;
}
main:focus {
  outline: none;
}
svg {
  flex-shrink: 0;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffef9;
  color: var(--ink);
  padding: 13px 15px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
input::placeholder,
textarea::placeholder {
  color: #92988b;
}
input:focus,
textarea:focus {
  border-color: #9dba9d;
  box-shadow: 0 0 0 4px #b8dcc523;
  outline: none;
}
time {
  font-size: 11px;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.8;
}
.subtle {
  font-size: 12px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 23px;
  border: 1px solid var(--green);
  border-radius: 5px;
  color: #fffdf2;
  background: var(--green);
  font-size: 12px;
  letter-spacing: 0.7px;
  box-shadow: 0 6px 18px #315d4b12;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s,
    box-shadow 0.3s;
}
.button:hover:not(:disabled) {
  background: #244c3b;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #315d4b23;
}
.button > span:last-child {
  margin-left: 12px;
  font-size: 19px;
  font-weight: 400;
}
.button.outline {
  background: transparent;
  color: var(--green);
  border-color: #bccbb9;
}
.button.outline:hover:not(:disabled) {
  background: #e8eddf;
}
.full {
  width: 100%;
}
.text-button {
  font-size: 12px;
  border-bottom: 1px solid #bac7b6;
  padding: 5px 0;
  line-height: 1.8;
}
.text-button:hover {
  color: var(--gold);
}
.danger {
  color: #a36159;
}
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  border-bottom: 1px solid #b5bda8;
  padding: 10px 0;
}
.quiet-link span {
  font-size: 17px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  z-index: 200;
  background: var(--green);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}

.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 4.1%;
  position: sticky;
  top: 0;
  z-index: 40;
  background: #faf8f0f5;
  border-bottom: 1px solid #65795317;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-emblem {
  width: 37px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #aab79d;
  border-radius: 50% 50% 40% 40%;
  color: #7e946f;
  transform: rotate(-8deg);
}
.brand > span:last-child {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
}
.brand small {
  font-family: var(--sans);
  display: block;
  font-size: 6.5px;
  letter-spacing: 2px;
  margin-top: 5px;
  font-weight: 400;
  color: #78856e;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
  margin-right: auto;
}
.main-nav a {
  font-size: 11px;
  letter-spacing: 0.5px;
  position: relative;
  padding: 10px 0;
  color: #66725e;
  white-space: nowrap;
}
.main-nav a.active {
  color: var(--green);
}
.main-nav a.active:after {
  content: "";
  height: 3px;
  width: 3px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  bottom: 1px;
  left: 50%;
}
.main-nav a:hover {
  color: #9a7939;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6dacb;
  padding: 10px 14px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.account-link > span:last-child {
  margin-left: 9px;
  font-size: 17px;
}
.mobile-menu {
  display: none;
  padding: 8px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 33px 5% 80px;
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font: 600 24px var(--serif);
  color: var(--green);
}
.site-footer p {
  font: italic 18px var(--serif);
}
.site-footer > span {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1px;
}
.ambient-controls {
  position: fixed;
  right: 27px;
  bottom: 22px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d1d7c8;
  background: #fbfaf0ef;
  backdrop-filter: blur(12px);
  border-radius: 30px;
  box-shadow: 0 4px 15px #485c4410;
  color: #6e7f64;
  padding: 3px 6px;
}
.ambient-controls button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 11px;
  font-size: 10px;
}
.ambient-controls button + button {
  border-left: 1px solid #dde0d3;
}
.sound-bars {
  height: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 3px;
}
.sound-bars i {
  height: 4px;
  width: 1px;
  background: #738c64;
}
.sound-bars i:nth-child(2) {
  height: 10px;
}
.sound-bars i:nth-child(3) {
  height: 7px;
}
.sound-bars.playing i {
  animation: equalize 1s ease-in-out infinite alternate;
}
.sound-bars.playing i:nth-child(2) {
  animation-delay: 0.4s;
}
.sound-bars.playing i:nth-child(3) {
  animation-delay: 0.7s;
}
.notice-toast {
  position: fixed;
  z-index: 110;
  top: 108px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 650px);
  border: 1px solid #cbd6bd;
  border-radius: 8px;
  background: #fffdf4;
  box-shadow: 0 10px 40px #294c3320;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  animation: notice-in 0.4s ease;
}
.cursor-aura{position:fixed;left:0;top:0;width:30px;height:30px;border:1px solid #a6b58a35;background:radial-gradient(circle,#e0c98425,transparent 70%);border-radius:50%;pointer-events:none;z-index:150;opacity:0;transition:opacity .3s,border-color .3s;will-change:transform}.cursor-aura.over-control{border-color:#b7a26b80;background:#e6d8a81a}
.notice-toast button {
  margin-left: 10px;
  font-size: 24px;
}

.hero {
  position: relative;
  min-height: 750px;
  height: calc(100svh - 90px);
  max-height: 1100px;
  overflow: hidden;
  isolation: isolate;
  background: #f7f3e6;
  --px: 0px;
  --py: 0px;
  --scroll: 0px;
}
.hero-landscape {
  position: absolute;
  inset: -30px;
  background: url("./wonderland.webp") center 56% / cover no-repeat;
  transform: translate(
      calc(var(--px) * -0.65),
      calc(var(--py) * -0.6 + var(--scroll))
    )
    scale(1.035);
  will-change: transform;
  z-index: -3;
}
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      #faf7edb8 0%,
      #faf7ed70 28%,
      #faf7ed12 50%,
      transparent 65%
    ),
    linear-gradient(0deg, #faf7ef 0%, #faf7ef00 18%);
}
.hero-content {
  position: relative;
  margin-left: 8.3%;
  width: 48%;
  max-width: 620px;
  padding-top: clamp(80px, 12.5vh, 155px);
  z-index: 3;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #788266;
  letter-spacing: 2.8px;
  font-size: 9px;
  margin-bottom: 21px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #9ba772;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #b1bd9425;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(76px, 8.6vw, 139px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -6px;
  color: #354f37;
  position: relative;
  width: max-content;
  max-width: 100%;
  text-shadow: 0 1px 18px #fff8e930;
}
.hero-title em {
  font-weight: 400;
  color: #748566;
}
.title-spark {
  font-family: Georgia, serif;
  font-size: 35px;
  position: absolute;
  right: -40px;
  top: -5px;
  color: #b49d68;
  font-weight: 400;
}
.hero-subtitle {
  font: italic 400 clamp(24px, 2.4vw, 38px) / 1.4 var(--serif);
  color: #839074;
  margin-top: 17px;
  letter-spacing: 0.2px;
}
.hero-description {
  font-family: "Noto Serif SC", "Songti SC", serif;
  margin-top: 27px;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 2px;
  color: #53634d;
}
.hero-description span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #7b856f;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 29px;
}
.hero-actions .button {
  min-height: 48px;
  font-size: 11px;
  padding: 13px 20px;
}
.love-clock {
  margin-top: 39px;
  width: 365px;
  max-width: 100%;
  padding: 18px 25px 14px;
  border: 1px solid #aab79461;
  background: #fdfbf1ab;
  backdrop-filter: blur(9px);
  border-radius: 4px;
  box-shadow: 0 9px 30px #5a65490a;
  position: relative;
}
.love-clock:before,
.love-clock:after {
  content: "✧";
  position: absolute;
  top: -10px;
  background: #faf6e7;
  color: #a5af8d;
  font-size: 15px;
  line-height: 18px;
}
.love-clock:before {
  left: 12px;
}
.love-clock:after {
  right: 12px;
}
.clock-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #7e8c70;
}
.tiny-line {
  display: block;
  width: 21px;
  height: 1px;
  background: #a9b096;
}
.clock-digits {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 9px;
  gap: 26px;
}
.clock-unit {
  position: relative;
  text-align: center;
  min-width: 40px;
}
.clock-unit + .clock-unit:before {
  content: ":";
  position: absolute;
  left: -17px;
  top: 5px;
  font: 26px var(--serif);
  color: #b3b6a4;
}
.clock-number {
  display: block;
  font: 400 37px/1.2 var(--serif);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  color: #52664c;
}
.clock-label {
  display: block;
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #8d9480;
  margin-top: 3px;
}
.clock-foot {
  margin-top: 13px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #8d9480;
}
.clock-foot button {
  font-size: 9px;
}
.atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.hero-bottom {
  position: absolute;
  bottom: 27px;
  left: 8.3%;
  right: 5.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}
.scroll-cue {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7e8c72;
  letter-spacing: 1.5px;
}
.small-english {
  font-size: 6px;
  letter-spacing: 2px;
  margin-left: 4px;
}
.mouse-line {
  display: block;
  border: 1px solid #a4af92;
  width: 13px;
  height: 22px;
  border-radius: 8px;
  position: relative;
}
.mouse-line:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 1px;
  height: 4px;
  background: #80956c;
  animation: scroll-dot 2s ease-in-out infinite;
}
.scene-caption {
  font-size: 7px;
  letter-spacing: 2px;
  color: #8a947c;
  text-align: right;
}
.scene-caption i {
  font: italic 16px var(--serif);
  display: block;
  letter-spacing: 0.4px;
  margin-top: 4px;
}
.tree-hotspot {
  position: absolute;
  left: 75%;
  top: 49%;
  width: 180px;
  height: 120px;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.tree-beacon {
  display: grid;
  place-items: center;
  border: 1px solid #fbefb29c;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  background: #fff9da25;
  color: #fffce9;
  box-shadow:
    0 0 0 7px #fff1ab15,
    0 0 22px #fff2aa30;
  transition:
    transform 0.5s,
    box-shadow 0.5s;
  font-weight: 300;
  font-size: 17px;
}
.tree-hotspot:hover .tree-beacon {
  transform: scale(1.2);
  box-shadow:
    0 0 0 13px #fff1ab15,
    0 0 32px #fff2aa70;
}
.tree-label {
  color: #fffdf2;
  text-shadow: 0 2px 8px #364c28;
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.4s;
}
.tree-hotspot:hover .tree-label,
.tree-hotspot:focus-visible .tree-label {
  opacity: 1;
}
.tree-ripple {
  position: absolute;
  left: 75%;
  top: 49%;
  width: 15px;
  height: 15px;
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
  border: 2px solid #fff3b5;
  animation: tree-wave 2s ease-out forwards;
}
.tree-ripple i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff1af;
  box-shadow: 0 0 8px #fff1af;
  animation: spark-out 2s ease-out forwards;
  animation-delay: var(--delay);
  transform: rotate(var(--angle));
}
.daily-letter {
  position: absolute;
  z-index: 5;
  bottom: 101px;
  right: 7.5%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 16px 22px;
  background: #fffbf0e6;
  border: 1px solid #c8c9ab80;
  border-radius: 5px;
  box-shadow: 0 12px 45px #5364411c;
  transform: rotate(-2deg);
  transition:
    transform 0.55s,
    box-shadow 0.55s;
}
.daily-letter:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: 0 20px 45px #53644124;
}
.envelope-art {
  display: block;
  position: relative;
  width: 63px;
  height: 44px;
  border: 1px solid #cec5a7;
  border-radius: 2px;
  background: #eee8d6;
  perspective: 400px;
}
.envelope-fold {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 68%);
  background: #fbf4e3;
  transform-origin: top;
  transition: transform 0.5s;
}
.daily-letter:hover .envelope-fold {
  transform: rotateX(35deg);
}
.wax-seal {
  position: absolute;
  left: 21px;
  top: 17px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #aeb58d;
  color: #faf4d7;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 3px #5c684d20;
  transition: background 0.4s;
}
.daily-letter:hover .wax-seal {
  background: #c5aa6c;
}
.letter-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.letter-meta .eyebrow {
  font-size: 7px;
  letter-spacing: 1.8px;
}
.letter-meta strong {
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
}
.letter-meta > span:last-child {
  font-size: 8px;
  color: #8c967d;
  display: flex;
  justify-content: space-between;
}
.skip-intro {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 10;
  font-size: 10px;
  color: #627451;
  background: #fff8e9b0;
  padding: 6px 14px;
  border-radius: 20px;
}
.entering .hero-landscape {
  animation: scene-arrive 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.entering .hero-content {
  animation: ink-arrive 1.3s 0.2s ease both;
}
.entering .daily-letter {
  animation: ink-arrive 1.4s 0.5s ease both;
}

.explore-section {
  padding: 77px 8.3% 88px;
  position: relative;
  background: var(--cream);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 35px;
}
.section-heading h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 13px;
}
.section-heading h2 > span {
  font: italic 24px var(--serif);
  letter-spacing: 0;
  margin-left: 18px;
  color: #9aab8c;
}
.section-heading > p {
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
  letter-spacing: 0.6px;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 23px;
  perspective: 1200px;
}
.chapter-card {
  transition: transform 0.55s;
}
.chapter-card:hover {
  transform: translateY(-8px) rotateX(2deg);
}
.chapter-image {
  height: 207px;
  position: relative;
  border-radius: 100px 100px 5px 5px;
  overflow: hidden;
  background: #c7ceb7;
}
.chapter-image:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./worlds.webp") 0 center/300% 100%;
  transition:
    transform 0.8s ease,
    filter 0.8s;
}
.chapter-card:hover .chapter-image:before {
  transform: scale(1.05);
}
.chapter-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #293f2f55, transparent 70%);
}
.memory .chapter-image:before {
  background-image: url("./wonderland.webp");
  background-size: cover;
  background-position: 72% 52%;
}
.forest .chapter-image:before {
  background-position: 0 center;
}
.magic .chapter-image:before {
  background-position: 100% center;
}
.cottage .chapter-image:before {
  background-position: 50% center;
}
.chapter-number {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffefdf;
  font-size: 7px;
  letter-spacing: 2px;
  z-index: 2;
}
.chapter-icon {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff9db;
}
.chapter-text {
  padding: 19px 3px 10px;
}
.chapter-text p {
  font: italic 19px var(--serif);
  color: #8b9b7c;
}
.chapter-text h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 6px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chapter-text h3 span {
  font: 19px var(--serif);
  color: #a1ac92;
}
.chapter-text > span {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #85907c;
}
.promise-section {
  text-align: center;
  padding: 62px 20px 82px;
  background: #eef0e5;
  border-top: 1px solid #e1e4d6;
}
.promise-ornament {
  display: block;
  font-size: 32px;
  color: #b9aa79;
  margin-bottom: 18px;
}
.promise-section h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 25px;
  letter-spacing: 2px;
  font-weight: 400;
  margin-top: 18px;
}
.promise-section h2 em {
  font-style: normal;
  color: #7c926e;
}
.promise-section > p:not(.eyebrow) {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 20px 0;
}
.promise-section a {
  margin-top: 9px;
}

.page-wrap {
  max-width: 1310px;
  margin: 0 auto;
  padding: 65px 60px 100px;
  min-height: 75vh;
  animation: page-in 0.65s ease both;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 42px;
}
.page-heading h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 2px;
  margin: 14px 0;
}
.page-description {
  font-size: 12px;
  letter-spacing: 0.7px;
  color: var(--muted);
  line-height: 2;
}
.page-heading .button {
  flex-shrink: 0;
}
.page-banner {
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 35px;
}
.memory-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(90deg, #e6ebdedd, #e6ebde22),
    url("./wonderland.webp") 65% 51% / cover;
  padding: 35px 45px;
  color: #586a49;
}
.memory-banner > span {
  font: 28px/1.4 var(--serif);
}
.memory-banner em {
  display: block;
  font-size: 34px;
}
.memory-banner > svg {
  margin-right: 40px;
  color: #eaf0d6;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 35px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.filter-tabs {
  display: flex;
  gap: 25px;
}
.filter-tabs button {
  font-size: 12px;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.filter-tabs button.selected {
  border-color: var(--green);
  color: var(--green);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 5px;
}
.search-box input {
  background: transparent;
  border: 0;
  padding: 8px;
  font-size: 11px;
  width: 175px;
}
.filter-bar select {
  font-size: 11px;
  padding: 7px 13px;
  background: transparent;
}
.memory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 32px;
  padding: 10px 3px 20px;
  align-items: start;
  perspective: 1200px;
}
.memory-frame {
  padding: 12px 12px 20px;
  background: var(--paper);
  box-shadow:
    0 9px 25px #3f583312,
    0 0 0 1px #d8dac849;
  transform: rotate(var(--rotation));
  transition:
    transform 0.6s,
    box-shadow 0.6s;
  border-radius: 2px;
}
.memory-frame:nth-child(3n + 2) {
  margin-top: 35px;
}
.memory-frame:hover {
  transform: rotate(0) translateY(-9px);
  box-shadow: 0 15px 30px #3f583324;
  z-index: 2;
}
.memory-cover {
  height: 230px;
  display: block;
  overflow: hidden;
  position: relative;
  background: #edf0e4;
}
.memory-cover > img,
.memory-cover > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.memory-frame:hover .memory-cover > img {
  transform: scale(1.04);
}
.frame-open {
  position: absolute;
  inset: auto 0 0;
  background: #315d4bb8;
  backdrop-filter: blur(5px);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 11px;
  transform: translateY(100%);
  transition: transform 0.4s;
}
.memory-frame:hover .frame-open,
.memory-frame:focus-within .frame-open {
  transform: none;
}
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 30px;
  border: 1px solid #fff8;
  color: white;
  background: #315d4b55;
  border-radius: 50%;
}
.audio-art,
.image-placeholder {
  height: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: #9bab8d;
  background: #e9eddf;
}
.memory-caption {
  padding: 15px 8px 0;
}
.memory-caption h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  margin: 10px 0 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.memory-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  font-size: 12px;
}
.pagination button {
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.pagination button:hover:not(:disabled) {
  background: #e5ebdc;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 40px;
  align-items: stretch;
}
.scene-panel {
  min-height: 505px;
  border-radius: 180px 180px 7px 7px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  background: #a2b7a6;
  box-shadow: 0 20px 50px #315d4b0c;
}
.scene-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./worlds.webp") 0 center/300% 100%;
  transition: filter 1.5s;
}
.scene-panel:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #193f35cc, transparent 65%);
  z-index: -1;
}
.scene-panel-text {
  position: relative;
  width: 100%;
  padding: 40px;
  color: #faf8e7;
  z-index: 3;
}
.scene-panel-text .eyebrow {
  color: #e1e9c5b0;
  font-size: 8px;
  letter-spacing: 2px;
}
.scene-panel-text h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 2px;
  margin-top: 13px;
}
.scene-panel-text > p {
  font-size: 11px;
  margin-top: 20px;
  color: #e0e6cc;
}
.mood-weather {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #dae3c6;
  font-size: 11px;
}
.mood-happy .scene-image {
  filter: sepia(0.3) brightness(1.2);
}
.mood-loving .scene-image {
  filter: sepia(0.1) hue-rotate(326deg);
}
.mood-excited .scene-image {
  filter: hue-rotate(40deg);
}
.mood-sad .scene-image {
  filter: brightness(0.78) hue-rotate(30deg);
}
.mood-miss .scene-image {
  filter: sepia(0.6);
}
.paper-panel {
  background: var(--paper);
  border: 1px solid #dedfce;
  border-radius: 5px;
  padding: 40px;
  box-shadow: 0 8px 25px #525d3b05;
  position: relative;
}
.paper-panel > h2 {
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 23px;
  letter-spacing: 1px;
  margin: 12px 0 25px;
}
.paper-panel:before {
  content: "✧";
  position: absolute;
  top: 14px;
  right: 20px;
  color: #b4b99b;
  font-size: 19px;
}
.letter-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.letter-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #77846b;
}
.letter-form textarea {
  line-height: 1.9;
  letter-spacing: 0.5px;
  background: repeating-linear-gradient(
    transparent,
    transparent 31px,
    #798b5611 32px
  );
  border-color: #dedfcf;
}
.form-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.form-bottom > span {
  font-size: 9px;
  color: #929a84;
}
.form-error {
  color: #a3544a;
  font-size: 12px;
  line-height: 1.8;
  background: #f5e9df;
  padding: 10px 13px;
  border-radius: 3px;
}
.paper-footnote {
  text-align: center;
  color: #939a85;
  font-size: 10px;
  letter-spacing: 0.7px;
  line-height: 1.9;
  margin-top: 25px;
}
.mood-choices {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 25px 0 33px;
}
.mood-choices button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 2px 10px;
  border: 1px solid transparent;
  border-radius: 35px 35px 5px 5px;
  color: #8a907c;
  font-size: 10px;
  transition:
    background 0.4s,
    border-color 0.4s,
    transform 0.4s;
}
.mood-choices button.chosen {
  border-color: #cfd5bf;
  background: #eef1e5;
}
.mood-choices button:hover {
  transform: translateY(-4px);
}
.mood-crystal {
  display: block;
  width: 22px;
  height: 36px;
  clip-path: polygon(50% 0, 100% 27%, 80% 80%, 50% 100%, 20% 80%, 0 27%);
  background: linear-gradient(
    110deg,
    #fff8,
    var(--mood-color) 35%,
    var(--mood-color) 52%,
    #ffffffa0 53%,
    var(--mood-color)
  );
  filter: drop-shadow(0 0 5px var(--mood-color));
  transition: transform 0.5s;
}
.chosen .mood-crystal {
  transform: translateY(-3px) scale(1.1);
}
.history-section,
.guest-notes-section {
  margin-top: 65px;
}
.history-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 45px;
}
.calendar-panel {
  border: 1px solid var(--line);
  background: #fffdf5;
  border-radius: 6px;
  padding: 25px;
}
.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.calendar-heading h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 400;
}
.calendar-heading button {
  width: 30px;
  height: 30px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.weekday {
  font-size: 10px;
  color: #a2a58e;
  text-align: center;
  padding: 8px 0 15px;
}
.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 36px;
  font-size: 11px;
  border-radius: 50%;
  --day-color: #8ba278;
}
.calendar-day.marked {
  background: #eaf0e1;
  color: var(--green);
}
.calendar-day i {
  width: 3px;
  height: 3px;
  position: absolute;
  bottom: 4px;
  background: var(--day-color);
  border-radius: 50%;
}
.calendar-day.today {
  box-shadow: inset 0 0 0 1px #a8b494;
}
.calendar-day.selected {
  background: var(--green);
  color: white;
}
.calendar-legend {
  font-size: 9px;
  color: #909b81;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  justify-content: center;
}
.calendar-legend i {
  width: 4px;
  height: 4px;
  background: #95aa7f;
  border-radius: 50%;
}
.mood-summary {
  height: 110px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.mood-summary > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.mood-summary > div > span {
  width: 17px;
  border-radius: 10px 10px 2px 2px;
  opacity: 0.7;
  transition: height 0.6s;
}
.mood-summary small {
  font-size: 9px;
  color: var(--muted);
}
.mood-summary b {
  font-size: 10px;
  font-weight: 400;
}
.history-note {
  display: flex;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  align-items: baseline;
}
.note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.history-note strong {
  font-size: 11px;
  font-weight: 500;
}
.history-note p {
  font-size: 12px;
  color: #7e8974;
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.history-note time {
  font-size: 9px;
  margin-left: auto;
  white-space: nowrap;
}
.empty-inline {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 35px 20px;
}

.checkin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}
.wish-scene {
  text-align: center;
  border-radius: 190px 190px 8px 8px;
  position: relative;
  padding: 40px 25px 35px;
  background: radial-gradient(
    ellipse at 50% 40%,
    #f6f3dc,
    #e8ecdc 63%,
    #dfe7d4
  );
  border: 1px solid #dbe0cb;
  overflow: hidden;
}
.wish-scene:before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #bcc8a653;
  border-radius: 180px 180px 5px 5px;
  pointer-events: none;
}
.wish-scene h2 {
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 1px;
  margin: 5px 0 24px;
}
.wish-scene .subtle {
  margin-top: 23px;
  font-size: 10px;
}
.wish-scene .state-panel {
  min-height: 100px;
  padding: 20px;
}
.wish-scene .state-panel > h3 {
  font-size: 15px;
}
.crystal-stage {
  height: 300px;
  position: relative;
  margin-top: 0;
  perspective: 800px;
}
.crystal-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 3;
}
.crystal-stage canvas.ready {
  opacity: 1;
}
.crystal-stage:has(canvas.ready) .crystal-fallback {
  opacity: 0;
}
.crystal-fallback {
  position: absolute;
  top: 19%;
  left: calc(50% - 37px);
  width: 74px;
  height: 140px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(
    105deg,
    #dbe9cd,
    #8cae9d 45%,
    #c6d7bc 46%,
    #f4f5db 68%,
    #a4bfa4
  );
  animation: levitate 5s ease-in-out infinite;
}
.crystal-halo {
  position: absolute;
  width: 180px;
  height: 180px;
  left: calc(50% - 90px);
  top: 35px;
  border-radius: 50%;
  background: #fdf8d7;
  filter: blur(30px);
  opacity: 0.7;
}
.crystal-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  left: calc(50% - 110px);
  top: 65px;
  border: 1px solid #9cb3896b;
  border-radius: 50%;
  transform: rotateX(71deg);
  box-shadow:
    0 0 0 13px #b1bc9414,
    0 0 0 30px #b4be9610;
}
.altar {
  position: absolute;
  width: 180px;
  height: 55px;
  border-radius: 50%;
  left: calc(50% - 90px);
  bottom: 30px;
  background: linear-gradient(#e4e5ca, #bdc8aa);
  border: 1px solid #a7b996;
  box-shadow:
    0 10px 0 -2px #9eaf8c,
    0 17px 0 -4px #b5bea1,
    0 28px 22px -6px #72895d35;
  display: grid;
  place-items: center;
  transform: rotateX(25deg);
}
.altar span {
  font-size: 17px;
  color: #879b6a;
  letter-spacing: 4px;
}
.is-awake .crystal-halo {
  background: #fff1b1;
  opacity: 1;
  animation: glow-breathe 4s ease-in-out infinite;
}
.is-awake .crystal-orbit {
  border-color: #cfaf67;
  box-shadow:
    0 0 20px #dfc67a50,
    0 0 0 18px #e8c57b12;
}
.reward-message {
  margin-top: 16px;
  font-size: 13px;
  color: #948044;
  animation: ink-arrive 0.7s ease;
}
.checkin-records .calendar-panel {
  padding: 30px;
}
.stats-row {
  display: flex;
  justify-content: space-around;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0 27px;
  margin-bottom: 30px;
}
.stat {
  text-align: center;
  min-width: 0;
  flex: 1;
}
.stat strong {
  display: block;
  font: 400 36px var(--serif);
  color: #627751;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin-top: 4px;
}
.compact {
  margin-top: 25px;
  margin-bottom: 0;
}
.compact .stat strong {
  font-size: 27px;
}
.compact .stat span {
  font-size: 9px;
}
.growing-plants {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 13px;
  margin-top: 30px;
  padding: 15px 0;
}
.plant {
  color: #adc1a1;
  opacity: 0.5;
  position: relative;
  transform: rotate(calc(var(--plant-index) * 4deg - 8deg));
  transform-origin: bottom;
}
.plant.bloomed {
  color: #eef0bd;
  opacity: 1;
  animation: plant-grow 1.3s ease;
}
.plant > span {
  position: absolute;
  left: 18px;
  top: -12px;
  font-size: 23px;
  color: #e3cc8a;
}
.task-panel {
  padding: 32px;
}
.section-heading.small {
  align-items: center;
  gap: 10px;
}
.section-heading.small h2 {
  font-size: 23px;
}
.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9b8b59;
  font-size: 10px;
  border: 1px solid #e1d9bb;
  padding: 7px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.habit-list {
  display: flex;
  flex-direction: column;
}
.habit-row {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #e3e5d5;
  padding: 22px 0;
}
.habit-icon {
  color: #b3bca2;
  background: #edf0e4;
  border-radius: 50%;
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.done .habit-icon {
  color: #6b8e55;
  background: #e5ecd5;
}
.habit-copy {
  flex: 1;
  min-width: 0;
}
.habit-copy h3 {
  font-size: 13px;
  font-weight: 500;
}
.habit-copy p {
  font-size: 10px;
  color: #929983;
  line-height: 1.8;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.habit-copy small {
  font-size: 9px;
  color: #aa9768;
}
.task-button,
.task-complete,
.task-pending {
  font-size: 10px;
  white-space: nowrap;
  padding: 9px 10px;
  border: 1px solid #ccd5bc;
  border-radius: 4px;
}
.task-button:hover {
  background: #eaf0e0;
}
.task-complete {
  color: #63864b;
  border-color: transparent;
}
.task-pending {
  color: #a48d55;
  border-color: #e2d7b7;
}

.shop-banner {
  position: relative;
  height: 230px;
  background: #eae6d5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 40px 50px;
  border-radius: 6px;
  overflow: hidden;
}
.shop-banner-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f3ecd7f5, #f3ecd7a0 50%, #f3ecd700),
    url("./worlds.webp") 50% 55%/300% auto;
  opacity: 0.8;
}
.shop-banner > div:not(.shop-banner-image) {
  position: relative;
}
.shop-banner h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 12px 0;
}
.shop-banner p:last-child {
  font-size: 11px;
  color: #8c896e;
}
.balance {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 25px;
  border: 1px solid #c9bb8b8a;
  background: #faf3e2d6;
  border-radius: 60px 60px 5px 5px;
  color: #a18d55;
}
.balance strong {
  font: 42px var(--serif);
  line-height: 1.1;
}
.balance span {
  font-size: 9px;
  letter-spacing: 1px;
}
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.gift-display {
  border: 1px solid #e0dbc6;
  border-radius: 100px 100px 5px 5px;
  background: #fffaf0;
  overflow: hidden;
  transition:
    transform 0.45s,
    box-shadow 0.45s;
}
.gift-display:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 40px #8e795a12;
}
.gift-object {
  width: 100%;
  height: 210px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #fdf8e7, #eae5d2);
  perspective: 600px;
}
.gift-object:hover .gift-illustration {
  transform: translateY(-10px) rotateY(14deg);
}
.gift-illustration {
  font-size: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 90px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 10px #75644b28);
  color: #a69c70;
  transition: transform 0.55s;
}
.gift-icon-image {
  height: 130px;
  width: 140px;
  object-fit: contain;
  z-index: 2;
}
.gift-plinth {
  position: absolute;
  bottom: 25px;
  width: 150px;
  height: 27px;
  border-radius: 50%;
  background: #d8d4bc;
  box-shadow:
    0 7px 0 #c0bea6,
    0 14px 15px #a4a18620;
}
.gift-copy {
  padding: 23px 25px;
}
.gift-copy .eyebrow {
  font-size: 8px;
  color: #a09573;
}
.gift-copy h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  margin: 8px 0;
}
.gift-copy > p {
  font-size: 11px;
  color: #91917a;
  min-height: 44px;
  line-height: 1.9;
}
.gift-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.gift-price > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #998955;
}
.gift-price > small {
  font-size: 9px;
  color: #9a9d8a;
}
.gift-copy .button {
  width: 100%;
  font-size: 11px;
  min-height: 42px;
  padding: 10px;
}
.inventory-row {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid var(--line);
  background: #fffdf6;
}
.inventory-row .gift-illustration {
  min-width: 60px;
  min-height: 60px;
  font-size: 37px;
}
.inventory-row .gift-illustration svg {
  width: 40px;
  height: 40px;
}
.inventory-row > div {
  flex: 1;
}
.inventory-row h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
}
.inventory-row p,
.inventory-row small {
  font-size: 10px;
  color: var(--muted);
}
.inventory-row code {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #83916d;
}
.redeem-summary {
  font-size: 15px;
  color: #998557;
  margin: 15px 0;
}
.gift-dialog .dialog-inner {
  text-align: center;
}
.gift-dialog .gift-illustration {
  margin: 20px auto;
}
.gift-dialog p {
  font-size: 13px;
  line-height: 1.9;
}
.gift-dialog .button {
  margin-top: 25px;
}
.success-dialog {
  text-align: center;
}
.success-seal {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid #cfbb82;
  background: #f4eed5;
  display: grid;
  place-items: center;
  margin: 30px auto;
  color: #a58c4c;
  animation: gift-open 0.9s ease;
}
.success-dialog h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
}
.success-dialog p {
  font-size: 12px;
  color: var(--muted);
}
.success-dialog .button {
  margin-top: 25px;
}

.whisper-scene .scene-image {
  background-image: url("./wonderland.webp");
  background-size: cover;
  background-position: 80% center;
}
.whisper-scene {
  border-radius: 180px 180px 4px 4px;
  min-height: 490px;
}
.hanging-letters {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 20px;
}
.hanging-letters span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 34px;
  background: #f3edd3;
  color: #9c9c70;
  border: 1px solid #d0c8a5;
  position: relative;
  transform-origin: 50% -40px;
  animation: letter-sway 6s ease-in-out infinite;
  animation-delay: var(--delay);
}
.hanging-letters span:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 35px;
  width: 1px;
  background: #d6dab7;
}
.guest-paper {
  background: #fffdf5;
}
.guest-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
}
.guest-note {
  padding: 27px;
  background: #f4f0e0;
  border: 1px solid #e4dfc9;
  transform: rotate(var(--rotation));
  box-shadow: 0 6px 16px #796a4710;
  transition: transform 0.4s;
  position: relative;
}
.guest-note:nth-child(3n + 2) {
  background: #eef0e3;
}
.guest-note:nth-child(3n + 3) {
  background: #f0eced;
}
.guest-note:hover {
  transform: rotate(0) translateY(-4px);
}
.guest-note > svg {
  color: #aeb198;
  margin-bottom: 18px;
}
.guest-note > p {
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 68px;
}
.guest-note footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #cfccb850;
}
.guest-note strong {
  font-size: 10px;
  font-weight: 500;
}
.guest-note time {
  font-size: 8px;
}
.guest-note blockquote {
  font-size: 11px;
  border-left: 1px solid #a5b28f;
  padding-left: 12px;
  margin: 18px 0 0;
  color: #839173;
}
.note-reply{font-size:9px;margin-top:15px;color:#849474}
.letter-sent {
  animation: letter-delivered 1.5s ease;
}
.state-panel {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 16px;
  padding: 45px 25px;
  color: var(--muted);
  border: 1px dashed #d9ddcc;
  border-radius: 6px;
  background: #f9f8f022;
  font-size: 12px;
}
.state-panel > svg {
  color: #aeb69a;
}
.state-panel > h3 {
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 1px;
}
.state-panel > p {
  font-size: 11px;
  line-height: 1.8;
}
.loading-seed {
  width: 16px;
  height: 23px;
  border: 1px solid #a8b69a;
  background: #e2ead6;
  border-radius: 90% 0 90% 0;
  animation: levitate 2s ease-in-out infinite;
}
.private-garden {
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 20px;
  padding: 60px 25px;
  background:
    linear-gradient(90deg, #f4f4e9ef, #f4f4e9d9),
    url("./worlds.webp") 100% 50%/300% auto;
  border: 1px solid var(--line);
  border-radius: 180px 180px 8px 8px;
  color: #7f9171;
}
.private-garden h2,
.private-garden h1 {
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 27px;
  color: var(--green);
}
.private-garden > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.private-garden .button {
  margin-top: 5px;
}

.login-page {
  min-height: calc(100svh - 90px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 60px;
  padding: 70px 10%;
  overflow: hidden;
  background: #e3e9da;
}
.gate-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #dae2d8a0, #e9edd97a 45%, #f6f2dce0),
    url("./worlds.webp") 100% 52%/300% auto;
  transition:
    transform 1.2s ease,
    filter 1.2s ease;
}
.login-story {
  padding-left: 3%;
  max-width: 500px;
}
.login-story .eyebrow {
  color: #5c7258;
}
.login-story h1 {
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 47px;
  line-height: 1.7;
  letter-spacing: 5px;
  margin: 25px 0;
  color: #36543b;
}
.login-story p:not(.eyebrow) {
  font-size: 13px;
  letter-spacing: 2px;
  color: #607358;
}
.login-story > span {
  font: italic 25px var(--serif);
  color: #7d906d;
  display: block;
  margin-top: 25px;
}
.login-paper {
  position: relative;
  z-index: 3;
  padding: 43px 40px 35px;
  background: #fffdf4ed;
  border: 1px solid #d0d7bc;
  border-radius: 140px 140px 7px 7px;
  box-shadow: 0 20px 50px #48613710;
  text-align: center;
  backdrop-filter: blur(10px);
}
.login-emblem {
  height: 65px;
  display: grid;
  place-items: center;
  color: #98a47a;
}
.login-paper h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 400;
  margin: 12px 0;
}
.login-paper .subtle {
  font-size: 10px;
  line-height: 1.9;
}
.login-paper .letter-form {
  margin-top: 30px;
  text-align: left;
  gap: 20px;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  width: 100%;
  padding-right: 65px;
}
.password-field button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #7d8d6b;
  padding: 6px;
}
.login-paper > .text-button {
  display: inline-block;
  margin-top: 25px;
  font-size: 10px;
}
.login-foot {
  font: italic 16px var(--serif);
  color: #9aa58a;
  margin-top: 30px;
}
.gate-opening .gate-art {
  transform: scale(1.15);
  filter: brightness(1.18);
}
.gate-opening .login-paper {
  animation: gate-pass 1s ease both;
}
.profile-panel {
  max-width: 850px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 45px;
  border-radius: 8px;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 28px;
}
.avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f1f2e4;
}
.avatar-letter {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6ecd9;
  color: #859b70;
  font: 36px var(--serif);
  border: 1px solid #d4dec1;
}
.profile-identity h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 400;
  margin: 8px 0;
}
.profile-identity p:last-child {
  font-size: 11px;
  color: var(--muted);
}
.profile-stats {
  display: flex;
  padding: 30px 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-stats .stat strong {
  font-size: 25px;
}
.profile-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 35px;
  margin: 20px 0 30px;
}
.profile-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.profile-links a > span {
  margin-left: auto;
}
.profile-links a svg {
  color: #9aab83;
}

.fairy-dialog {
  margin: auto;
  border: 1px solid #d4d7c0;
  border-radius: 9px;
  background: #fffcf2;
  color: var(--ink);
  max-width: min(680px, calc(100vw - 32px));
  max-height: 88svh;
  width: 100%;
  padding: 0;
  overflow-y: auto;
  box-shadow: 0 30px 110px #142b3755;
  animation: dialog-open 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fairy-dialog::backdrop {
  background: #273e3b75;
  backdrop-filter: blur(9px);
}
.dialog-inner {
  padding: 40px;
  position: relative;
}
.dialog-inner > h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  padding-right: 20px;
  margin-bottom: 20px;
}
.dialog-close {
  position: absolute;
  right: 17px;
  top: 17px;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7d8b6d;
}
.letter-dialog {
  max-width: 530px;
  background: #fff9e9;
  border-color: #d1c5a1;
}
.letter-dialog .dialog-inner {
  padding: 55px 45px;
}
.letter-dialog h2 {
  font-size: 25px;
}
.letter-dialog .eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
}
.letter-dialog blockquote {
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  line-height: 2.3;
  min-height: 170px;
  margin: 35px 0 0;
  padding: 25px 0;
  white-space: pre-wrap;
}
.letter-signature {
  text-align: right;
  font: italic 26px var(--serif);
  color: #a69468;
  margin-top: 25px;
}
.letter-tools {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
}
.letter-tools .text-button {
  font-size: 10px;
}
.diary-dialog {
  max-width: 850px;
  background: #fffcf3;
}
.diary-dialog .dialog-inner {
  padding: 45px 55px;
}
.diary-media {
  margin-top: 30px;
  position: relative;
  background: #f1f0e2;
}
.diary-media img,
.diary-media video {
  max-height: 60svh;
  width: 100%;
  object-fit: contain;
}
.diary-media audio {
  width: 100%;
  padding: 15px;
}
.photo-pagination {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 11px;
  align-items: center;
  padding: 12px;
}
.photo-pagination button {
  font-size: 17px;
}
.diary-prose {
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 2.3;
  margin: 30px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diary-tools {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.diary-tools .text-button {
  font-size: 10px;
  border: 0;
}
.comments-section {
  margin-top: 30px;
}
.comments-section > h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
}
.comment-note {
  background: #f1f1e4;
  padding: 18px 20px;
  margin-bottom: 13px;
  border-left: 2px solid #c8d1b3;
}
.comment-note > div:first-child {
  display: flex;
  justify-content: space-between;
}
.comment-note strong {
  font-size: 11px;
  font-weight: 500;
}
.comment-note p {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.comment-tools {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 9px;
  color: #8a987b;
}
.comments-section .letter-form {
  margin-top: 25px;
}
.confirm-box {
  padding: 20px;
  border: 1px solid #d7b4a3;
  background: #f8ebe1;
  margin-top: 20px;
}
.confirm-box p {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 15px;
}
.confirm-box .button {
  margin-right: 20px;
}
.boot-placeholder {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #627653;
  font:
    48px Georgia,
    serif;
  background: #faf7ef;
}
.boot-placeholder span {
  font: 12px sans-serif;
  color: #91a17e;
  letter-spacing: 2px;
  margin-top: 20px;
}

/* Retained publishing and administration components share the new material palette. */
[data-slot="dialog-content"] {
  background: #fffdf4 !important;
  border-color: #d2d7be !important;
  color: var(--ink) !important;
  box-shadow: 0 25px 100px #25453735 !important;
}
[data-slot="dialog-content"] .btn-romantic,
.legacy-admin .btn-romantic {
  background: var(--green) !important;
  color: white !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}
.legacy-admin {
  overflow-x: auto;
  min-width: 0;
}
.legacy-admin [class*="bg-gradient"] {
  background: #eef0e1 !important;
}
.legacy-admin [class*="text-pink"],
.legacy-admin [class*="text-purple"],
.legacy-admin [class*="text-[#f05687]"] {
  color: #73915e !important;
}
.legacy-admin [class*="bg-pink"],
.legacy-admin [class*="bg-purple"] {
  background: #e7eddc !important;
}
.legacy-admin [class*="border-pink"],
.legacy-admin [class*="border-purple"] {
  border-color: #d7dfc8 !important;
}
.legacy-admin [class*="rounded-2xl"],
.legacy-admin [class*="rounded-xl"] {
  border-radius: 6px !important;
}
.legacy-admin input,
.legacy-admin textarea {
  background: #fffdf7 !important;
}
.legacy-admin [role="tablist"] {
  background: #edf0e3;
  flex-wrap: wrap;
  height: auto;
}
.legacy-admin [role="tab"][data-state="active"] {
  background: #d5e0c5;
  color: #315d4b;
}
.legacy-admin h3 {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}
.legacy-admin [class*="shadow"] {
  box-shadow: none;
}
.legacy-admin table {
  font-size: 12px;
}

[data-night="true"] .hero-landscape {
  filter: brightness(0.65) saturate(0.7) hue-rotate(18deg);
}
[data-night="true"] .hero-wash {
  background:
    linear-gradient(90deg, #e6eddfdf, #d6e2cf80 38%, transparent 70%),
    linear-gradient(0deg, #faf7ef, transparent 20%);
}
[data-night="true"] .hero {
  background: #233f3d;
}
[data-night="true"] .hero .atmosphere {
  opacity: 1.4;
}
[data-night="true"] .scene-image {
  filter: brightness(0.7) saturate(0.7);
}
@keyframes scene-arrive {
  from {
    opacity: 0.15;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1.035);
  }
}
@keyframes ink-arrive {
  from {
    opacity: 0;
    translate: 0 20px;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}
@keyframes page-in {
  from {
    opacity: 0.15;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-open {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes notice-in {
  from {
    opacity: 0;
    translate: 0 -15px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes tree-wave {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}
@keyframes spark-out {
  from {
    transform: rotate(var(--angle)) translateX(0);
    opacity: 1;
  }
  to {
    transform: rotate(var(--angle)) translateX(13px);
    opacity: 0;
  }
}
@keyframes scroll-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}
@keyframes equalize {
  to {
    height: 12px;
  }
}
@keyframes levitate {
  0%,
  100% {
    translate: 0 0;
    rotate: -3deg;
  }
  50% {
    translate: 0 -9px;
    rotate: 3deg;
  }
}
@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.6;
    scale: 0.9;
  }
  50% {
    opacity: 1;
    scale: 1.1;
  }
}
@keyframes plant-grow {
  from {
    opacity: 0.3;
    scale: 0.7;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}
@keyframes letter-sway {
  0%,
  100% {
    rotate: -5deg;
  }
  50% {
    rotate: 5deg;
  }
}
@keyframes letter-delivered {
  0% {
    box-shadow: 0 0 0 #d8c48500;
  }
  40% {
    box-shadow: 0 0 65px #d8c48555;
  }
  100% {
    box-shadow: 0 0 0 #d8c48500;
  }
}
@keyframes gift-open {
  from {
    transform: scale(0.8) rotate(-12deg);
    opacity: 0.3;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
@keyframes gate-pass {
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

@media (min-width: 1600px) {
  .hero-content {
    padding-top: 13vh;
  }
  .hero-actions {
    margin-top: 38px;
  }
  .love-clock {
    margin-top: 50px;
  }
  .hero-title {
    font-size: 145px;
  }
  .chapter-image {
    height: 260px;
  }
  .main-nav {
    gap: 35px;
  }
  .main-nav a {
    font-size: 12px;
  }
  .site-header {
    height: 98px;
  }
  .hero {
    height: calc(100svh - 98px);
  }
}
@media (max-width: 1200px) {
  .site-header {
    padding: 0 3%;
    gap: 15px;
    height: 80px;
  }
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 10px;
  }
  .brand > span:last-child {
    font-size: 25px;
  }
  .account-link {
    font-size: 9px;
    padding: 9px;
  }
  .hero {
    height: calc(100svh - 80px);
    min-height: 700px;
  }
  .hero-content {
    margin-left: 7%;
    padding-top: 100px;
    width: 51%;
  }
  .hero-title {
    font-size: 105px;
  }
  .daily-letter {
    right: 4%;
    padding: 13px 16px;
    bottom: 105px;
  }
  .letter-meta strong {
    font-size: 10px;
  }
  .hero-bottom {
    left: 7%;
  }
  .explore-section {
    padding-left: 7%;
    padding-right: 7%;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading h2 > span {
    display: block;
    margin: 8px 0 0;
    font-size: 21px;
  }
  .chapter-grid {
    gap: 18px;
  }
  .chapter-image {
    height: 195px;
  }
  .page-wrap {
    padding: 50px 40px 80px;
  }
  .split-layout {
    gap: 25px;
  }
  .paper-panel {
    padding: 30px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .checkin-layout {
    gap: 30px;
  }
  .login-page {
    padding: 60px 6%;
    gap: 40px;
    grid-template-columns: 1fr 390px;
  }
  .login-story h1 {
    font-size: 39px;
  }
  .history-layout {
    grid-template-columns: 320px 1fr;
    gap: 30px;
  }
}
@media (max-width: 1000px) {
  .site-header {
    height: 76px;
  }
  .main-nav {
    gap: 14px;
  }
  .account-link > span:first-of-type {
    display: none;
  }
  .account-link {
    padding: 9px 11px;
  }
  .account-link > span:last-child {
    margin-left: 0;
  }
  .hero-title {
    font-size: 90px;
  }
  .hero-description {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .hero-description span {
    font-size: 10px;
    letter-spacing: 0.4px;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .button {
    padding: 12px 15px;
    font-size: 10px;
  }
  .quiet-link {
    font-size: 10px;
  }
  .love-clock {
    width: 320px;
    padding-left: 17px;
    padding-right: 17px;
  }
  .clock-digits {
    gap: 23px;
  }
  .clock-number {
    font-size: 32px;
  }
  .letter-meta strong {
    font-size: 9px;
  }
  .daily-letter {
    right: 3%;
    gap: 12px;
  }
  .envelope-art {
    width: 50px;
    height: 37px;
  }
  .wax-seal {
    left: 15px;
    top: 13px;
  }
  .hero-content {
    padding-top: 100px;
  }
  .chapter-image {
    height: 180px;
  }
  .chapter-text > span {
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-description {
    font-size: 11px;
  }
  .paper-panel {
    padding: 25px;
  }
  .scene-panel-text {
    padding: 28px;
  }
  .scene-panel-text h2 {
    font-size: 20px;
  }
  .paper-panel > h2 {
    font-size: 20px;
  }
  .mood-choices {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .mood-choices button {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    border-radius: 7px;
    padding: 9px;
  }
  .mood-crystal {
    height: 28px;
    width: 18px;
  }
  .memory-gallery {
    gap: 25px;
  }
  .memory-cover {
    height: 185px;
  }
  .memory-caption {
    padding: 12px 3px 0;
  }
  .memory-caption h2 {
    font-size: 14px;
  }
  .memory-meta {
    font-size: 8px;
  }
  .gift-grid {
    gap: 18px;
  }
  .gift-copy {
    padding: 20px;
  }
  .guest-notes {
    grid-template-columns: repeat(2, 1fr);
  }
  .login-page {
    padding: 50px 5%;
    grid-template-columns: 1fr 360px;
    gap: 30px;
  }
  .login-paper {
    padding: 38px 30px;
  }
  .login-story h1 {
    font-size: 33px;
  }
  .site-footer {
    gap: 20px;
  }
  .site-footer > span {
    font-size: 9px;
  }
  .site-footer p {
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 74px;
    padding: 0 22px;
  }
  .brand-emblem {
    width: 30px;
    height: 36px;
  }
  .brand-emblem svg {
    width: 20px;
  }
  .brand > span:last-child {
    font-size: 25px;
  }
  .brand small {
    font-size: 5.8px;
    letter-spacing: 1.6px;
  }
  .mobile-menu {
    display: grid;
    place-items: center;
  }
  .account-link {
    padding: 7px 10px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #faf8f1f5;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 22px;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
    box-shadow: 0 20px 30px #425b3510;
  }
  .main-nav.open {
    display: grid;
  }
  .main-nav a {
    font-size: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid #d8deca60;
  }
  .main-nav a.active {
    background: #e9efde;
    border-radius: 5px;
  }
  .main-nav a.active:after {
    bottom: 50%;
    left: auto;
    right: 10px;
  }
  .hero {
    height: auto;
    min-height: 900px;
    max-height: none;
  }
  .hero-landscape {
    background-size: auto 760px;
    background-position: 68% 0;
    inset: 0;
    transform: none;
    opacity: 0.93;
  }
  .hero-wash {
    background:
      linear-gradient(
        180deg,
        #faf7efc7 0%,
        #faf7ef8a 34%,
        transparent 50%,
        #faf7ef40 65%,
        #faf7ef 92%
      ),
      linear-gradient(90deg, #faf7ef45, transparent);
  }
  .hero-content {
    width: auto;
    max-width: 440px;
    margin: 0 30px;
    padding-top: 43px;
  }
  .hero-eyebrow {
    font-size: 7px;
    letter-spacing: 2px;
    margin-bottom: 22px;
  }
  .hero-title {
    font-size: 85px;
    letter-spacing: -4.5px;
  }
  .title-spark {
    font-size: 24px;
    right: -22px;
    top: 0;
  }
  .hero-subtitle {
    font-size: 27px;
    margin-top: 13px;
    color: #6e7e63;
  }
  .hero-description {
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: 20px;
    line-height: 2;
  }
  .hero-description span {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .hero-actions {
    gap: 22px;
    margin-top: 25px;
  }
  .hero-actions .button {
    padding: 12px 15px;
    font-size: 10px;
    min-height: 45px;
  }
  .hero-actions .button > span:last-child {
    margin-left: 0;
  }
  .hero-actions .quiet-link {
    font-size: 9px;
    gap: 7px;
  }
  .love-clock {
    margin-top: 263px;
    background: #fffdf2d4;
    width: 100%;
    max-width: 350px;
    padding: 18px 20px 13px;
  }
  .clock-digits {
    gap: 30px;
  }
  .clock-caption {
    font-size: 10px;
  }
  .clock-number {
    font-size: 34px;
  }
  .clock-label {
    font-size: 7px;
  }
  .clock-foot {
    font-size: 8px;
  }
  .tree-hotspot {
    left: 73%;
    top: 47%;
    width: 120px;
    height: 80px;
  }
  .tree-beacon {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .tree-label {
    display: none;
  }
  .tree-ripple {
    left: 73%;
    top: 47%;
  }
  .daily-letter {
    top: 530px;
    bottom: auto;
    right: 24px;
    padding: 12px 16px;
    gap: 13px;
    transform: rotate(-3deg);
    background: #fffaf0e8;
  }
  .letter-meta .eyebrow {
    font-size: 6px;
  }
  .letter-meta strong {
    font-size: 9px;
  }
  .letter-meta > span:last-child {
    font-size: 7px;
  }
  .hero-bottom {
    left: 30px;
    right: 26px;
    bottom: 27px;
  }
  .scene-caption {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .scene-caption i {
    font-size: 13px;
  }
  .small-english {
    display: none;
  }
  .scroll-cue {
    font-size: 8px;
  }
  .explore-section {
    padding: 50px 26px;
  }
  .section-heading {
    gap: 20px;
    display: block;
    margin-bottom: 28px;
  }
  .section-heading > p {
    margin-top: 15px;
    font-size: 10px;
    line-height: 1.9;
  }
  .section-heading h2 {
    font-size: 23px;
    letter-spacing: 1px;
  }
  .section-heading h2 > span {
    font-size: 22px;
    margin-top: 8px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  .chapter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 17px;
  }
  .chapter-image {
    height: 190px;
  }
  .chapter-number {
    font-size: 6px;
    letter-spacing: 1.5px;
    top: 25px;
  }
  .chapter-text {
    padding: 14px 1px 5px;
  }
  .chapter-text p {
    font-size: 18px;
  }
  .chapter-text h3 {
    font-size: 17px;
    margin-top: 4px;
  }
  .chapter-text > span {
    font-size: 8px;
    line-height: 1.9;
    display: block;
  }
  .chapter-icon {
    bottom: 20px;
  }
  .promise-section {
    padding: 45px 24px 60px;
  }
  .promise-section h2 {
    font-size: 20px;
    line-height: 1.9;
    letter-spacing: 1px;
  }
  .promise-section > p:not(.eyebrow) {
    font-size: 10px;
    line-height: 2.1;
    max-width: 280px;
    margin: 18px auto;
  }
  .promise-section .eyebrow {
    font-size: 7px;
    letter-spacing: 1.8px;
  }
  .promise-ornament {
    font-size: 26px;
  }
  .site-footer {
    padding: 28px 26px 95px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .site-footer p {
    font-size: 15px;
    margin-left: auto;
  }
  .site-footer > span {
    width: 100%;
    text-align: center;
    margin-top: 5px;
    font-size: 8px;
  }
  .footer-brand {
    font-size: 22px;
  }
  .ambient-controls {
    bottom: 16px;
    right: 16px;
  }
  .ambient-controls button {
    font-size: 9px;
    padding: 6px 9px;
    min-height: 33px;
  }
  .page-wrap {
    padding: 37px 23px 65px;
  }
  .page-heading {
    display: block;
    margin-bottom: 30px;
  }
  .page-heading h1 {
    font-size: 26px;
    line-height: 1.6;
    letter-spacing: 1px;
    margin: 10px 0;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  .page-description {
    font-size: 11px;
    line-height: 1.9;
  }
  .page-heading > .button {
    margin-top: 20px;
    min-height: 42px;
    font-size: 10px;
  }
  .page-banner {
    height: 150px;
    margin-bottom: 20px;
  }
  .memory-banner {
    padding: 20px;
  }
  .memory-banner > span {
    font-size: 22px;
  }
  .memory-banner em {
    font-size: 25px;
  }
  .memory-banner > svg {
    display: none;
  }
  .filter-bar {
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 27px;
    padding-bottom: 15px;
  }
  .filter-tabs {
    gap: 18px;
    flex-wrap: wrap;
  }
  .filter-tabs button {
    font-size: 10px;
  }
  .search-box {
    width: 100%;
    border-top: 1px solid #dce1cf80;
    padding-top: 7px;
  }
  .search-box input {
    width: 100%;
    font-size: 10px;
  }
  .memory-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 27px 15px;
  }
  .memory-frame {
    padding: 7px 7px 15px;
  }
  .memory-frame:nth-child(3n + 2) {
    margin-top: 0;
  }
  .memory-frame:nth-child(even) {
    margin-top: 20px;
  }
  .memory-cover {
    height: 165px;
  }
  .memory-caption h2 {
    font-size: 12px;
  }
  .memory-caption time {
    font-size: 8px;
  }
  .memory-meta {
    display: block;
    font-size: 8px;
    line-height: 1.8;
  }
  .memory-meta > span {
    display: block;
  }
  .frame-open {
    display: none;
  }
  .play-badge {
    width: 35px;
    height: 35px;
    font-size: 22px;
  }
  .split-layout {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .scene-panel {
    min-height: 290px;
    border-radius: 130px 130px 5px 5px;
    max-width: 100%;
    width: 100%;
  }
  .scene-image {
    background-size: 300% auto;
    background-position: 0 56%;
  }
  .scene-panel-text {
    padding: 30px;
  }
  .scene-panel-text h2 {
    font-size: 21px;
  }
  .paper-panel {
    padding: 27px 23px;
  }
  .paper-panel > h2 {
    font-size: 21px;
  }
  .letter-form {
    gap: 20px;
  }
  .mood-choices {
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    margin: 22px 0 27px;
  }
  .mood-choices button {
    flex-direction: column;
    border-radius: 25px 25px 5px 5px;
    gap: 10px;
    padding: 13px 1px;
    font-size: 9px;
  }
  .mood-crystal {
    height: 31px;
    width: 20px;
  }
  .form-bottom .button {
    min-height: 44px;
    font-size: 10px;
    padding: 12px 17px;
  }
  .history-section,
  .guest-notes-section {
    margin-top: 45px;
  }
  .history-layout {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .calendar-panel {
    padding: 23px;
  }
  .calendar-day {
    min-height: 39px;
  }
  .history-note time {
    font-size: 8px;
  }
  .checkin-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .wish-scene {
    padding: 32px 20px;
    min-height: 500px;
  }
  .wish-scene h2 {
    font-size: 17px;
  }
  .wish-scene .eyebrow {
    font-size: 8px;
  }
  .crystal-stage {
    height: 270px;
  }
  .stats-row {
    margin-bottom: 24px;
    padding: 20px 0;
  }
  .stat strong {
    font-size: 31px;
  }
  .stat span {
    font-size: 9px;
  }
  .task-panel {
    padding: 25px 20px;
  }
  .section-heading.small {
    display: flex;
  }
  .section-heading.small h2 {
    font-size: 21px;
  }
  .points-pill {
    font-size: 9px;
    padding: 6px 8px;
  }
  .habit-row {
    gap: 10px;
    padding: 20px 0;
  }
  .habit-icon {
    width: 40px;
    height: 40px;
  }
  .habit-icon svg {
    width: 23px;
  }
  .habit-copy h3 {
    font-size: 12px;
  }
  .habit-copy p {
    font-size: 9px;
  }
  .task-button,
  .task-complete,
  .task-pending {
    font-size: 9px;
    padding: 8px;
  }
  .growing-plants {
    margin-top: 20px;
    gap: 10px;
  }
  .plant svg {
    width: 35px;
  }
  .shop-banner {
    height: 220px;
    padding: 25px;
    gap: 18px;
  }
  .shop-banner > div:nth-child(2) {
    max-width: 60%;
  }
  .shop-banner h2 {
    font-size: 20px;
    line-height: 1.9;
  }
  .shop-banner .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .shop-banner p:last-child {
    font-size: 9px;
    line-height: 2;
  }
  .balance {
    min-width: 88px;
    padding: 18px 10px;
    gap: 8px;
  }
  .balance strong {
    font-size: 31px;
  }
  .balance span {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
  .gift-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 13px;
  }
  .gift-display {
    border-radius: 80px 80px 4px 4px;
  }
  .gift-object {
    height: 165px;
  }
  .gift-plinth {
    width: 100px;
    height: 20px;
    bottom: 20px;
  }
  .gift-illustration {
    font-size: 42px;
    min-height: 60px;
    min-width: 65px;
  }
  .gift-illustration svg {
    width: 45px;
  }
  .gift-copy {
    padding: 18px 14px;
  }
  .gift-copy .eyebrow {
    font-size: 6px;
    letter-spacing: 0.9px;
  }
  .gift-copy h2 {
    font-size: 15px;
  }
  .gift-copy > p {
    font-size: 9px;
    min-height: 50px;
  }
  .gift-price {
    display: block;
    margin: 15px 0;
  }
  .gift-price > span {
    font-size: 10px;
  }
  .gift-price small {
    font-size: 8px;
    display: block;
    margin-top: 5px;
  }
  .gift-copy .button {
    font-size: 9px;
    min-height: 38px;
    padding: 9px 5px;
  }
  .gift-icon-image {
    height: 100px;
    width: 100px;
  }
  .inventory-row {
    padding: 18px 5px;
    gap: 15px;
  }
  .inventory-row h3 {
    font-size: 14px;
  }
  .inventory-row .button {
    font-size: 9px;
    padding: 9px;
    min-height: 38px;
  }
  .inventory-row .gift-illustration {
    min-width: 40px;
  }
  .guest-notes {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .guest-note {
    padding: 25px;
  }
  .guest-note > p {
    font-size: 13px;
  }
  .guest-note footer {
    margin-top: 18px;
  }
  .whisper-scene .scene-image {
    background-size: cover;
    background-position: 75% 50%;
  }
  .guest-paper {
    padding: 28px 25px;
  }
  .private-garden {
    min-height: 420px;
    border-radius: 130px 130px 5px 5px;
    padding: 50px 22px;
    background-size: 300% auto;
    gap: 18px;
  }
  .private-garden h2 {
    font-size: 22px;
    line-height: 1.8;
  }
  .private-garden > .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .private-garden > p:not(.eyebrow) {
    font-size: 11px;
  }
  .private-garden .button {
    font-size: 11px;
  }
  .login-page {
    min-height: 900px;
    padding: 38px 25px 55px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
  }
  .gate-art {
    background-size:
      auto,
      300% auto;
    background-position:
      center,
      100% 0;
  }
  .login-story {
    text-align: center;
    padding: 0;
    max-width: none;
  }
  .login-story .eyebrow {
    font-size: 8px;
  }
  .login-story h1 {
    font-size: 28px;
    letter-spacing: 3px;
    margin: 15px 0 12px;
  }
  .login-story h1 br {
    display: none;
  }
  .login-story > p:not(.eyebrow) {
    font-size: 11px;
  }
  .login-story > span {
    font-size: 21px;
    margin-top: 15px;
  }
  .login-paper {
    max-width: 410px;
    width: 100%;
    margin: 0 auto;
    padding: 35px 28px;
    border-radius: 110px 110px 6px 6px;
  }
  .login-emblem {
    height: 50px;
  }
  .login-paper h2 {
    font-size: 23px;
  }
  .login-paper .letter-form {
    margin-top: 24px;
  }
  .login-foot {
    font-size: 15px;
  }
  .profile-panel {
    padding: 28px 23px;
  }
  .profile-identity {
    gap: 18px;
  }
  .avatar,
  .avatar-letter {
    width: 66px;
    height: 66px;
    flex-shrink: 0;
  }
  .profile-identity h2 {
    font-size: 22px;
  }
  .profile-identity .eyebrow {
    font-size: 8px;
  }
  .profile-identity p:last-child {
    font-size: 10px;
    line-height: 1.9;
  }
  .profile-stats .stat strong {
    font-size: 21px;
  }
  .profile-stats .stat span {
    font-size: 9px;
  }
  .profile-links {
    gap: 0 25px;
  }
  .profile-links a {
    font-size: 11px;
    gap: 8px;
  }
  .fairy-dialog {
    max-height: 91svh;
    width: calc(100% - 28px);
    max-width: none;
  }
  .dialog-inner,
  .diary-dialog .dialog-inner {
    padding: 35px 23px;
  }
  .dialog-inner > h2 {
    font-size: 21px;
    margin-bottom: 18px;
  }
  .diary-dialog .eyebrow {
    font-size: 8px;
  }
  .diary-prose {
    font-size: 14px;
    line-height: 2.2;
  }
  .letter-dialog .dialog-inner {
    padding: 45px 28px;
  }
  .letter-dialog blockquote {
    font-size: 17px;
  }
  .letter-signature {
    font-size: 23px;
  }
  .state-panel {
    min-height: 220px;
    padding: 35px 20px;
  }
  .state-panel > h3 {
    font-size: 17px;
  }
  .state-panel > p {
    font-size: 10px;
  }
  .notice-toast {
    top: 90px;
    font-size: 11px;
    padding: 13px 16px;
    width: max-content;
    max-width: 90vw;
  }
  .legacy-admin {
    padding: 20px 15px;
  }
  .legacy-admin [role="tablist"] {
    gap: 5px;
  }
  .legacy-admin [role="tab"] {
    font-size: 10px;
  }
  .legacy-admin .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 380px) {
  .hero-title {
    font-size: 74px;
  }
  .hero-content {
    margin-left: 24px;
    margin-right: 24px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-actions .button {
    padding: 12px 11px;
    font-size: 9px;
  }
  .love-clock {
    padding-left: 12px;
    padding-right: 12px;
  }
  .clock-digits {
    gap: 23px;
  }
  .chapter-image {
    height: 170px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .mood-choices {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .mood-choices button {
    flex-direction: row;
    border-radius: 5px;
  }
  .gift-grid {
    grid-template-columns: 1fr;
  }
  .memory-gallery {
    gap: 20px 12px;
  }
  .memory-cover {
    height: 145px;
  }
  .hero-description span {
    font-size: 8px;
  }
  .hero-actions .quiet-link {
    font-size: 8px;
  }
  .shop-banner h2 {
    font-size: 18px;
  }
  .shop-banner {
    padding: 20px;
  }
  .profile-links {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-landscape {
    transform: none !important;
  }
  .atmosphere {
    opacity: 0.4;
  }
}
[data-quiet="true"] *,
[data-quiet="true"] *:before,
[data-quiet="true"] *:after {
  animation: none !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
[data-quiet="true"] .hero-landscape {
  transform: none !important;
}
