* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: 'Noto Serif SC', serif;
  color: #6b3f47;
  background: #fff6f6;
}

button,
input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-login {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 190, 207, 0.78), transparent 31%),
    radial-gradient(circle at 82% 16%, rgba(232, 199, 132, 0.4), transparent 29%),
    linear-gradient(135deg, #fff7f4 0%, #ffe3eb 48%, #fff8ee 100%);
}

.site-login::before,
.site-login::after {
  content: '';
  position: absolute;
  inset: clamp(18px, 5vmin, 54px);
  border: 1px solid rgba(196, 139, 116, 0.24);
  border-radius: 38px;
  pointer-events: none;
}

.site-login::after {
  inset: clamp(34px, 7vmin, 78px);
  border-style: dashed;
  opacity: 0.5;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(196, 139, 116, 0.28);
  border-radius: 34px;
  background: rgba(255, 250, 246, 0.78);
  box-shadow: 0 28px 70px rgba(137, 78, 72, 0.16);
  text-align: center;
  backdrop-filter: blur(18px);
}

.login-kicker {
  margin: 0 0 10px;
  color: #b67876;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(2.25rem, 7vw, 4.2rem);
  color: #7b3646;
  line-height: 1;
  white-space: nowrap;
}

.login-copy {
  max-width: 360px;
  margin: 18px auto 26px;
  color: #8c6061;
  line-height: 1.75;
}

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

.login-choice,
.account-login-form button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(157, 78, 99, 0.18);
}

.guest-choice {
  background: linear-gradient(135deg, #b88375, #d3a177);
}

.account-choice,
.account-login-form button {
  background: linear-gradient(135deg, #9d4e63, #c17484);
}

.login-choice:disabled,
.account-login-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-text-button {
  margin-top: 14px;
  border: 0;
  color: #9d4e63;
  background: transparent;
  cursor: pointer;
}

.account-login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.account-login-form label {
  display: grid;
  gap: 7px;
  color: #86585c;
  font-size: 0.92rem;
}

.account-login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(196, 139, 116, 0.28);
  border-radius: 18px;
  padding: 0 15px;
  color: #6b3f47;
  background: rgba(255, 255, 255, 0.72);
  outline: 0;
}

.account-login-form input:focus {
  border-color: rgba(157, 78, 99, 0.58);
  box-shadow: 0 0 0 4px rgba(157, 78, 99, 0.1);
}

.verify-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.verify-code-row button {
  min-height: 46px;
  border: 0;
  border-radius: 18px;
  padding: 0 13px;
  color: #fff;
  background: linear-gradient(135deg, #9d4e63, #c17484);
  cursor: pointer;
  white-space: nowrap;
}

.verify-code-row button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-error {
  min-height: 1.4em;
  margin: 0;
  color: #b24656;
  text-align: center;
  font-size: 0.92rem;
}

.site-locked .rose-stage {
  filter: blur(8px);
  pointer-events: none;
}

.site-guest .garden-controls,
.site-guest .secret-garden,
.site-guest .modal-backdrop,
.site-user .garden-controls,
.site-user .secret-garden,
.site-user .modal-backdrop {
  display: none !important;
}

.site-topbar {
  position: fixed;
  top: clamp(12px, 2.6vw, 24px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 clamp(22px, 5vmin, 56px);
  pointer-events: none;
}

.site-topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(980px, 100%);
  min-height: 42px;
  border: 1px solid rgba(196, 139, 116, 0.18);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  background:
    linear-gradient(90deg, rgba(255, 247, 244, 0.42), rgba(255, 239, 242, 0.26), rgba(255, 248, 238, 0.38)),
    rgba(255, 250, 246, 0.18);
  box-shadow:
    0 12px 30px rgba(137, 78, 72, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(12px) saturate(1.06);
  pointer-events: auto;
}

.site-brand {
  justify-self: start;
  color: rgba(123, 54, 70, 0.6);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav-button,
.site-session-button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(123, 54, 70, 0.72);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav-button {
  justify-self: center;
}

.site-session-button {
  justify-self: end;
}

.site-nav-button:hover,
.site-nav-button:focus-visible,
.site-session-button:hover,
.site-session-button:focus-visible {
  color: #9d4e63;
  background: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
  outline: 0;
}

.site-session-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.rose-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 196, 210, 0.75), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(232, 199, 132, 0.34), transparent 28%),
    linear-gradient(135deg, #fff7f4 0%, #ffe6ec 44%, #fff8ee 100%);
  isolation: isolate;
  transition: background 0.7s ease;
}

.rose-stage.garden-open {
  background:
    radial-gradient(circle at 50% 64%, rgba(255, 238, 214, 0.58), transparent 22%),
    radial-gradient(circle at 15% 15%, rgba(255, 196, 210, 0.86), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(232, 199, 132, 0.48), transparent 28%),
    radial-gradient(circle at 50% 86%, rgba(255, 223, 232, 0.82), transparent 26%),
    linear-gradient(135deg, #fff7f4 0%, #ffe3eb 44%, #fff5e9 100%);
}

.home-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
  will-change: opacity, transform;
}

.common-sites-page {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(1040px, calc(100vw - clamp(28px, 8vw, 92px)));
  max-height: min(78vh, 760px);
  overflow: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 139, 116, 0.22) transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, calc(-50% + 18px), 0) scale(0.985);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
  will-change: opacity, transform;
  contain: layout paint;
}

.view-home .home-view {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s, 0s, 0s;
}

.view-home .common-sites-page {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, calc(-50% + 18px), 0) scale(0.985);
  transition-delay: 0s, 0s, 0.42s;
}

.view-common-sites .home-view {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -14px, 0) scale(0.985);
  transition-delay: 0s, 0s, 0.42s;
}

.view-common-sites .common-sites-page {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition-delay: 0s, 0s, 0s;
}

.view-switching .home-view,
.view-switching .common-sites-page {
  pointer-events: none;
}

.common-sites-page-card {
  min-height: min(70vh, 680px);
  padding: clamp(26px, 4.5vw, 48px);
  border: 1px solid rgba(196, 139, 116, 0.2);
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 214, 223, 0.48), transparent 35%),
    radial-gradient(circle at 82% 8%, rgba(237, 207, 143, 0.28), transparent 32%),
    rgba(255, 250, 246, 0.6);
  box-shadow: 0 28px 78px rgba(137, 78, 72, 0.12);
  backdrop-filter: blur(18px);
}

.common-sites-page-header {
  max-width: 620px;
  margin: 0 auto 20px;
  text-align: center;
}

.common-sites-page-header p {
  margin: 0 0 5px;
  color: #bf9274;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.common-sites-page-header h2 {
  margin: 0;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  color: #8b4052;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
}

.rose-stage::before,
.rose-stage::after {
  content: '';
  position: absolute;
  inset: 4vmin;
  border: 1px solid rgba(196, 139, 116, 0.28);
  border-radius: 42px;
  pointer-events: none;
}

.rose-stage::after {
  inset: 6vmin;
  border-style: dashed;
  opacity: 0.45;
}

.ambient {
  position: absolute;
  width: 34vmax;
  height: 34vmax;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.5;
  z-index: -1;
}

.ambient-one {
  left: -12vmax;
  bottom: -12vmax;
  background: #ffb6c9;
}

.ambient-two {
  right: -12vmax;
  top: -10vmax;
  background: #ecd49a;
}

.garden-atmosphere,
.garden-atmosphere span {
  pointer-events: none;
}

.garden-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.vine {
  position: absolute;
  width: 32vmin;
  height: 52vmin;
  border: 1px solid rgba(167, 119, 87, 0.18);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(0.2px);
}

.vine::before,
.vine::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 12px;
  border-radius: 100% 0 100% 0;
  background: rgba(185, 139, 100, 0.18);
}

.vine::before {
  top: 24%;
  right: 14%;
  rotate: -18deg;
}

.vine::after {
  top: 48%;
  right: 0;
  rotate: 28deg;
}

.vine-left {
  left: 3vw;
  top: 14vh;
  rotate: -16deg;
}

.vine-right {
  right: 4vw;
  bottom: 9vh;
  rotate: 164deg;
}

.ground-glow {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  width: 58vw;
  height: 16vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(220, 161, 133, 0.2), transparent 68%);
  transform: translateX(-50%);
  opacity: 0.62;
}

.petal-field,
.petal-field span {
  pointer-events: none;
}

.petal-field span {
  position: absolute;
  width: 18px;
  height: 28px;
  border-radius: 70% 20% 70% 20%;
  background: rgba(238, 132, 158, 0.24);
  animation: floatPetal 8s ease-in-out infinite;
}

.petal-field span:nth-child(1) { left: 12%; top: 20%; animation-delay: -1s; }
.petal-field span:nth-child(2) { left: 22%; bottom: 16%; animation-delay: -4s; }
.petal-field span:nth-child(3) { right: 14%; top: 18%; animation-delay: -2s; }
.petal-field span:nth-child(4) { right: 24%; bottom: 18%; animation-delay: -5s; }
.petal-field span:nth-child(5) { left: 50%; top: 9%; animation-delay: -3s; }
.petal-field span:nth-child(6) { right: 46%; bottom: 8%; animation-delay: -6s; }

@keyframes floatPetal {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(12deg); }
  50% { transform: translate3d(14px, -18px, 0) rotate(32deg); }
}

.hero-card {
  position: relative;
  z-index: 3;
  width: min(900px, 100%);
  max-height: calc(100svh - 28px);
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(198, 142, 112, 0.3);
  border-radius: clamp(26px, 5vw, 46px);
  background:
    linear-gradient(145deg, rgba(255, 255, 252, 0.9), rgba(255, 235, 240, 0.72)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 38%);
  box-shadow:
    0 34px 96px rgba(158, 83, 103, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -18px 48px rgba(255, 221, 229, 0.24);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: width 0.6s ease, padding 0.6s ease, transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(210, 166, 126, 0.16);
  border-radius: calc(clamp(26px, 5vw, 46px) - 10px);
  pointer-events: none;
}


.garden-prewarm .hero-card,
.garden-prewarm .secret-garden,
.garden-prewarm .garden-widget,
.garden-prewarm .garden-close {
  will-change: transform, opacity;
}

.garden-open .hero-card {
  width: min(680px, 46vw);
  padding: clamp(20px, 3vw, 36px);
  transform: translateY(-7px) scale(0.965);
  box-shadow: 0 28px 76px rgba(158, 83, 103, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: heroStepBack 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.garden-open h1 {
  font-size: clamp(3.2rem, 5.8vw, 5.4rem);
}

.clock-panel {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(213, 163, 128, 0.32);
}

.clock-time {
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9b5867;
}

.clock-date {
  font-size: 0.95rem;
  color: #9f7472;
}

.eyebrow {
  margin: 18px 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #bc8a6d;
}

h1 {
  margin: 0;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  font-weight: 400;
  color: #9d4e63;
  text-shadow: 0 12px 34px rgba(202, 107, 132, 0.18);
}

.subtitle {
  margin: 6px auto 18px;
  max-width: 620px;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.8;
  color: #876061;
}

.search-box {
  display: flex;
  width: min(680px, 100%);
  margin: 0 auto 18px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 143, 112, 0.34);
  box-shadow: 0 14px 42px rgba(156, 76, 98, 0.12);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 18px;
  color: #6f444c;
}

.search-box button {
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  color: #fffaf4;
  cursor: pointer;
  background: linear-gradient(135deg, #c97184, #d7ac74);
  box-shadow: 0 10px 22px rgba(188, 106, 125, 0.28);
}

.garden-controls {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 124px;
}

.rose-seal {
  position: relative;
  display: inline-grid;
  place-items: center;
  gap: 2px;
  min-width: 118px;
  min-height: 118px;
  margin-top: 6px;
  border: 1px solid rgba(190, 117, 126, 0.38);
  border-radius: 48% 52% 46% 54%;
  color: #9f5866;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.88), transparent 32%),
    radial-gradient(circle at 42% 58%, rgba(218, 115, 137, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 239, 239, 0.88), rgba(244, 210, 196, 0.7));
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.28),
    inset 0 -10px 24px rgba(188, 93, 116, 0.08),
    0 18px 42px rgba(168, 88, 104, 0.16);
  transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.4s ease;
}

.rose-seal::before,
.rose-seal::after {
  content: '';
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(185, 115, 121, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.rose-seal::after {
  inset: -8px;
  border-style: dashed;
  opacity: 0.42;
  animation: sealBreath 3.8s ease-in-out infinite;
}

.seal-bloom {
  font-size: 2rem;
  line-height: 1;
  color: #c27384;
}

.seal-text {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.rose-seal small {
  font-size: 0.7rem;
  color: #b88a7b;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rose-seal:hover,
.rose-seal:focus-visible {
  transform: translateY(-5px) scale(1.025) rotate(-2deg);
  border-color: rgba(195, 104, 124, 0.52);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.34),
    inset 0 -10px 24px rgba(188, 93, 116, 0.08),
    0 24px 56px rgba(168, 88, 104, 0.22);
}

.rose-seal:hover small,
.rose-seal:focus-visible small {
  opacity: 1;
  transform: translateY(0);
}

.rose-seal.blooming {
  animation: rosePress 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rose-seal.blooming::after {
  animation: roseRipple 0.9s ease-out forwards;
}

.garden-open .rose-seal,
.garden-closing .rose-seal {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.82);
}

@keyframes rosePress {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  20% { transform: translateY(3px) scale(0.96); opacity: 1; }
  52% { transform: translateY(-6px) scale(1.16) rotate(-4deg); opacity: 0.86; }
  100% { transform: translateY(-16px) scale(0.78); opacity: 0; }
}

@keyframes roseRipple {
  0% { transform: scale(0.9); opacity: 0.68; }
  100% { transform: scale(2.05); opacity: 0; }
}

@keyframes heroStepBack {
  0% { transform: translateY(0) scale(1); }
  70% { transform: translateY(-9px) scale(0.972); }
  100% { transform: translateY(-7px) scale(0.965); }
}

@keyframes gardenGlow {
  0% { opacity: 0.52; transform: translateX(-50%) scaleX(0.72); }
  55% { opacity: 0.9; transform: translateX(-50%) scaleX(1.08); }
  100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
}

.garden-open .ground-glow {
  animation: gardenGlow 0.72s ease-out both;
}

.secret-garden {
  position: absolute;
  inset: clamp(34px, 5vw, 76px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  filter: none;
  transition:
    opacity 0.56s ease,
    transform 0.64s cubic-bezier(0.22, 1, 0.36, 1);
}

.garden-open .secret-garden {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  filter: none;
}

.garden-close {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 11px;
  border: 1px solid rgba(195, 129, 132, 0.34);
  border-radius: 999px;
  color: #9f5866;
  cursor: pointer;
  background: rgba(255, 250, 246, 0.82);
  box-shadow: 0 12px 28px rgba(156, 76, 98, 0.12);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -38%) scale(0.92);
  transition:
    opacity 0.38s ease 0.36s,
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.36s,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.garden-close span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201, 113, 132, 0.12);
  font-size: 1.2rem;
  line-height: 1;
}

.garden-close small {
  color: #ad8079;
}

.garden-open .garden-close {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.garden-closing .garden-close {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%) scale(0.96);
  transition-delay: 0s;
}

.garden-close:hover,
.garden-close:focus-visible {
  border-color: rgba(195, 104, 124, 0.48);
  background: rgba(255, 252, 249, 0.92);
  box-shadow: 0 16px 34px rgba(156, 76, 98, 0.15);
  transform: translate(-50%, calc(-50% - 2px)) scale(1.01);
}

.garden-close:active {
  transform: translate(-50%, -50%) scale(0.98);
}

.garden-actions {
  display: contents;
}

.garden-widget {
  position: absolute;
  opacity: 0;
  will-change: auto;
}

.garden-widget::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 220, 230, 0.22), transparent 62%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.garden-open .garden-widget {
  opacity: 1;
  filter: none;
}

.garden-open .garden-widget::after {
  animation: widgetAura 0.62s ease-out both;
}

.memorial-card.garden-widget {
  left: 3vw;
  bottom: 2vh;
  transform: translate(-28px, 24px) scale(0.94) rotate(-4deg);
}

.garden-gate {
  left: 12vw;
  top: 10vh;
  transform-origin: left center;
  transform: translateX(-34px) scale(0.96) rotate(-3deg);
}

.garden-letter {
  right: 11vw;
  top: 13vh;
  transform: translate(36px, -28px) scale(0.94) rotate(8deg);
}

.garden-album {
  right: 9vw;
  bottom: 6vh;
  transform: translate(28px, 38px) scale(0.9) rotate(-6deg);
}

.garden-open .memorial-card.garden-widget {
  animation: notePinIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.garden-gate {
  left: 10vw;
  top: 19vh;
  transform-origin: left center;
  transform: translateX(-34px) scale(0.96) rotate(-3deg);
}

.garden-open .garden-gate {
  animation: gateOpenIn 0.54s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.garden-letter {
  right: 9vw;
  top: 23vh;
  transform: translate(36px, -28px) scale(0.94) rotate(8deg);
}

.garden-album {
  right: 7vw;
  bottom: 11vh;
  transform: translate(28px, 38px) scale(0.9) rotate(-6deg);
}

.garden-open .garden-letter {
  animation: letterDriftIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.garden-album {
  right: 6vw;
  bottom: 9vh;
  transform: translate(28px, 38px) scale(0.9) rotate(-6deg);
}

.garden-open .garden-album {
  animation: albumSettleIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.feature-card.blooming {
  animation: featureBloom 0.28s ease;
}

.garden-closing .garden-widget {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  animation: none;
  transition:
    opacity 0.34s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.garden-closing .secret-garden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.992);
  filter: none;
  transition:
    opacity 0.4s ease,
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.garden-closing .hero-card {
  animation: heroReturn 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroReturn {
  from { transform: translateY(-7px) scale(0.965); }
  to { transform: translateY(0) scale(1); }
}

@keyframes notePinIn {
  0% { opacity: 0; transform: translate(-24px, 20px) scale(0.95) rotate(-4deg); }
  72% { opacity: 1; transform: translate(2px, -2px) scale(1.01) rotate(0deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(-1deg); }
}

@keyframes gateOpenIn {
  0% { opacity: 0; transform: translateX(-30px) scale(0.96) rotate(-2deg); }
  72% { opacity: 1; transform: translateX(2px) scale(1.01) rotate(-1deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(-1deg); }
}

@keyframes letterDriftIn {
  0% { opacity: 0; transform: translate(30px, -24px) scale(0.95) rotate(6deg); }
  72% { opacity: 1; transform: translate(-2px, 2px) scale(1.01) rotate(2deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(3deg); }
}

@keyframes albumSettleIn {
  0% { opacity: 0; transform: translate(24px, 30px) scale(0.94) rotate(-5deg); }
  72% { opacity: 1; transform: translate(-2px, -2px) scale(1.01) rotate(-1deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(-2deg); }
}

@keyframes widgetAura {
  0% { opacity: 0; transform: scale(0.9); }
  45% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}

@keyframes featureBloom {
  0%, 100% { transform: translateY(-5px) scale(1); }
  50% { transform: translateY(-8px) scale(1.04) rotate(-1deg); }
}


@keyframes softShake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-6px); }
  70% { transform: translateX(6px); }
}

.memorial-card {
  width: min(540px, 100%);
  margin: 0 auto 22px;
  padding: 16px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 232, 0.72));
  border: 1px solid rgba(210, 160, 118, 0.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 16px 36px rgba(167, 88, 105, 0.13);
}

.secret-garden .memorial-card {
  width: min(360px, 24vw);
  margin: 0;
  text-align: left;
}

.secret-garden .memorial-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 34px;
  width: 64px;
  height: 18px;
  border-radius: 999px;
  background: rgba(218, 172, 116, 0.32);
  rotate: -4deg;
}

.memorial-kicker {
  display: block;
  color: #b98275;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.memorial-card strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #a74f65;
}

.memorial-card p {
  margin: 4px 0 8px;
  line-height: 1.6;
}

.memorial-card small {
  color: #ad827e;
}

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

.feature-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(205, 149, 119, 0.32);
  border-radius: 28px;
  background: rgba(255, 250, 246, 0.66);
  color: #744750;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(156, 76, 98, 0.1);
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.secret-garden .feature-card {
  width: min(240px, 18vw);
  min-height: 138px;
  overflow: hidden;
  background: rgba(255, 250, 246, 0.76);
  backdrop-filter: blur(6px);
}

.secret-garden .feature-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(210, 160, 118, 0.16);
  border-radius: 20px;
  pointer-events: none;
}

.garden-gate::after,
.garden-letter::after,
.garden-album::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.garden-gate::after {
  right: 18px;
  bottom: 16px;
  width: 42px;
  height: 54px;
  border: 1px solid rgba(176, 112, 101, 0.2);
  border-radius: 22px 22px 4px 4px;
}

.garden-letter::after {
  right: -18px;
  top: -18px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(215, 172, 116, 0.34), transparent 55%);
  rotate: 45deg;
}

.garden-album::after {
  display: none;
}

.garden-gate {
  rotate: -3deg;
}

.garden-letter {
  rotate: 3deg;
}

.garden-album {
  rotate: -2deg;
  background: linear-gradient(145deg, rgba(255, 246, 235, 0.94), rgba(250, 232, 218, 0.86));
  box-shadow: none;
}


.garden-open .feature-card:hover,
.garden-open .feature-card:focus-visible {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(195, 104, 124, 0.45);
  background: rgba(255, 252, 248, 0.9);
  box-shadow: 0 14px 30px rgba(156, 76, 98, 0.12);
}

.garden-open .feature-card:hover .feature-icon,
.garden-open .feature-card:focus-visible .feature-icon {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
}

.garden-open .garden-album:hover,
.garden-open .garden-album:focus-visible {
  box-shadow: none;
}

.feature-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 1.6rem;
  color: #c17484;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card strong,
.feature-card small {
  display: block;
}

.feature-card small {
  margin-top: 5px;
  line-height: 1.5;
  color: #9b7373;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(84, 45, 57, 0.24);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.common-site-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(84, 45, 57, 0.24);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 0.18s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.common-site-editor-backdrop[hidden] {
  display: none;
}

.common-site-editor-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.common-site-editor {
  position: relative;
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  max-height: min(88svh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(212, 165, 118, 0.44);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(255, 237, 243, 0.94));
  box-shadow: 0 32px 90px rgba(88, 43, 58, 0.24);
  transform: translateY(12px) scale(0.98);
}

.common-site-editor-backdrop.active .common-site-editor {
  animation: modalIn 0.2s ease forwards;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  display: none;
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  max-height: min(88svh, 860px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 34px;
  border: 1px solid rgba(212, 165, 118, 0.48);
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.96), rgba(255, 237, 243, 0.94));
  box-shadow: 0 32px 90px rgba(88, 43, 58, 0.24);
  transform: translateY(12px) scale(0.98);
}

.modal.active {
  display: block;
  animation: modalIn 0.2s ease forwards;
}

@keyframes modalIn {
  to { transform: translateY(0) scale(1); }
}

.large-modal {
  width: min(1120px, 100%);
}

.album-modal {
  width: min(1120px, 100%);
  max-height: min(92svh, 900px);
}

.large-modal {
  min-height: min(82vh, 820px);
}

.album-modal {
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
  box-shadow: none;
}

.album-modal.active {
  display: grid;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #a45c6c;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 250, 247, 0.96);
  transform: translateY(-2px) scale(1.04);
}

.modal-header p {
  margin: 0 0 4px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #bf9274;
  font-size: 0.75rem;
}

.modal-header h2 {
  margin: 0 0 20px;
  font-size: 2rem;
  color: #9d4e63;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.common-sites-toolbar {
  display: flex;
  gap: 10px;
  width: min(620px, 100%);
  margin: 0 auto 22px;
}

.common-sites-toolbar input,
.common-site-form input,
.common-site-form select {
  width: 100%;
  border: 1px solid rgba(209, 155, 117, 0.24);
  border-radius: 999px;
  padding: 12px 17px;
  color: #744750;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  outline: 0;
}

.common-site-form input,
.common-site-form select {
  border-radius: 16px;
}

.soft-action,
.common-site-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #9d4e63, #c17484);
  cursor: pointer;
  white-space: nowrap;
}

.ghost-action {
  color: #8c6061;
  background: rgba(255, 255, 255, 0.66);
}

.common-site-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.common-site-form label {
  display: grid;
  gap: 7px;
  color: #86585c;
  font-size: 0.9rem;
}

.common-site-icon-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(209, 155, 117, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
}

.common-site-icon-preview .common-site-icon {
  flex: 0 0 auto;
  margin: 0;
}

.common-site-icon-preview strong,
.common-site-icon-preview small {
  display: block;
}

.common-site-icon-preview strong {
  color: #744750;
}

.common-site-icon-preview small {
  margin-top: 3px;
  color: #9b7373;
}

.common-site-form .wide,
.common-site-form-actions {
  grid-column: 1 / -1;
}

.common-site-form-actions {
  display: flex;
  gap: 10px;
}

.common-site-form-actions button:last-child {
  color: #8c6061;
  background: rgba(255, 255, 255, 0.66);
}

.common-sites-hint {
  display: block;
  margin-top: 12px;
  color: #9b7373;
}

.common-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.common-site-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 138px;
  border: 1px solid rgba(209, 155, 117, 0.18);
  border-radius: 28px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.44);
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  will-change: transform, opacity;
}

.common-sites-grid.editing .common-site-card {
  animation: editTileIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.common-sites-grid.editing .common-site-card:nth-child(2n) {
  animation-delay: 0.025s;
}

.common-sites-grid.editing .common-site-card:nth-child(3n) {
  animation-delay: 0.05s;
}

.common-sites-grid.leaving-edit .common-site-card {
  animation: editTileSettle 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.common-site-card:hover {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 32px rgba(137, 78, 72, 0.1);
  transform: translateY(-3px);
}

.common-site-card a {
  display: grid;
  place-items: center;
  grid-row: 1;
  align-self: stretch;
  justify-self: stretch;
  color: inherit;
  text-decoration: none;
}

.common-site-card a:focus-visible {
  outline: 2px solid #c17484;
  outline-offset: 2px;
}

.common-site-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 238, 243, 0.92), rgba(255, 250, 246, 0.72));
  color: #c17386;
  font-size: 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 20px rgba(157, 78, 99, 0.1);
}

.common-site-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.common-site-card strong,
.common-site-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.common-site-card strong {
  color: #744750;
  font-size: 0.98rem;
}

.common-site-card small {
  color: #9b7373;
  font-size: 0.78rem;
}

.common-site-add-tile {
  border-style: dashed;
  cursor: pointer;
  animation: addTileIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.common-site-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  align-self: end;
  animation: actionsIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.common-site-actions button {
  border: 1px solid rgba(209, 155, 117, 0.28);
  border-radius: 999px;
  padding: 6px 11px;
  color: #8c6061;
  background: rgba(255, 250, 247, 0.72);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.common-site-actions button:hover,
.common-site-actions button:focus-visible {
  border-color: rgba(157, 78, 99, 0.32);
  color: #9d4e63;
  background: rgba(255, 239, 243, 0.92);
  box-shadow: 0 8px 18px rgba(157, 78, 99, 0.12);
  transform: translateY(-2px);
  outline: 0;
}

.common-site-actions button:last-child:hover,
.common-site-actions button:last-child:focus-visible {
  border-color: rgba(190, 64, 83, 0.36);
  color: #b7334a;
  background: rgba(255, 231, 235, 0.96);
  box-shadow: 0 8px 18px rgba(190, 64, 83, 0.13);
}

@keyframes editTileIn {
  from {
    opacity: 0.72;
    transform: translate3d(0, 8px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes addTileIn {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes actionsIn {
  from {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes editTileSettle {
  from {
    opacity: 0.86;
    transform: translate3d(0, -5px, 0) scale(1.012);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.link-card {
  display: block;
  min-height: 138px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(209, 155, 117, 0.34);
  background: rgba(255, 255, 255, 0.56);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
}

.link-card span {
  display: block;
  font-size: 1.8rem;
  color: #c17386;
}

.link-card strong,
.link-card small {
  display: block;
  margin-top: 8px;
}

.letters-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(320px, 1.5fr);
  gap: 18px;
}

.letter-list {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 68vh;
  overflow: auto;
  padding-right: 4px;
}

.letter-item {
  padding: 14px;
  border: 1px solid rgba(209, 155, 117, 0.3);
  border-radius: 20px;
  background: rgba(255,255,255,0.58);
  text-align: left;
  color: #744750;
  cursor: pointer;
}

.letter-item.active {
  background: #fff8f4;
  border-color: rgba(193, 104, 125, 0.48);
  box-shadow: 0 12px 24px rgba(160, 82, 101, 0.12);
}

.letter-item small,
.letter-item strong,
.letter-item span {
  display: block;
}

.letter-item small,
.letter-item span {
  color: #a47b78;
}

.letter-paper {
  min-height: min(68vh, 620px);
  padding: clamp(22px, 4vw, 42px);
  border-radius: 24px;
  border: 1px solid rgba(224, 156, 172, 0.45);
  background:
    linear-gradient(rgba(255,255,255,0.58), rgba(255,255,255,0.58)),
    repeating-linear-gradient(#fffaf6 0, #fffaf6 31px, #f4d9df 32px);
  box-shadow: inset 0 0 0 8px rgba(255, 245, 246, 0.58), 0 18px 46px rgba(140, 76, 88, 0.13);
}

.letter-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ad8079;
  font-size: 0.92rem;
}

.letter-paper h3 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 2.1rem;
  color: #9d4e63;
}

.letter-paper p {
  white-space: pre-wrap;
  line-height: 2.05;
  font-size: 1.05rem;
}

.album-shell {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 0;
}


.album-control {
  width: 42px;
  height: 34px;
  border: 1px solid rgba(196, 133, 116, 0.24);
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.72);
  color: #a85d6d;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(138, 82, 68, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.album-control:hover,
.album-control:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.album-control:disabled {
  cursor: default;
  opacity: 0.36;
  transform: none;
}

.album-spread {
  display: grid;
  grid-template-columns: 1fr;
  height: min(62svh, 620px);
  min-height: 280px;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff7ee, #f7dfca);
  box-shadow: none;
  overflow: hidden;
}

.album-spread.turning .album-wall-page {
  animation: albumPageIn 0.18s ease both;
}

@keyframes albumPageIn {
  from { opacity: 0; transform: translateX(10px) scale(0.995); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.album-wall-page {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(190, 139, 95, 0.24);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffaf2, #fff2e4);
  box-shadow: none;
}

.album-wall-page::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(214, 173, 127, 0.16);
  border-radius: 16px;
  pointer-events: none;
}

.album-wall-item {
  position: absolute;
  overflow: hidden;
  transform-origin: center;
}

.album-wall-item.photo-item {
  border: 6px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  background: #f2dfcf;
  box-shadow: none;
}

.album-wall-item.photo-item img {
  width: 115%;
  height: 115%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: center;
}

.album-wall-item.text-item {
  display: grid;
  place-items: center;
  padding: 10px 14px;
  white-space: pre-wrap;
  line-height: 1.55;
  text-align: center;
  border: 1px solid rgba(202, 140, 116, 0.2);
  border-radius: 16px;
  background: rgba(255, 250, 246, 0.78);
  box-shadow: none;
}

.album-wall-item.icon-item {
  display: grid;
  place-items: center;
  color: #c17484;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(153, 82, 98, 0.08));
}

.album-wall-item.icon-item .wall-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.album-wall-item.icon-item svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.album-wall-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  color: #825b5c;
  text-align: center;
  line-height: 1.7;
}

.album-photo-page {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: min(62vh, 580px);
  padding: 20px;
  background:
    linear-gradient(rgba(255, 250, 241, 0.9), rgba(255, 250, 241, 0.9)),
    repeating-linear-gradient(90deg, rgba(214, 173, 127, 0.12) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(190, 139, 95, 0.28);
  box-shadow: inset 0 0 0 8px rgba(255, 244, 232, 0.58);
}

.album-photo-page:first-child {
  border-radius: 20px 4px 4px 20px;
}

.album-photo-page:last-child {
  border-radius: 4px 20px 20px 4px;
}

.album-photo-page::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(214, 173, 127, 0.2);
  border-radius: 14px;
  pointer-events: none;
}

.album-photo-page::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(220, 177, 132, 0.4), transparent 50%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.album-image-frame {
  width: min(100%, 480px);
  height: min(48vh, 430px);
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(92, 61, 55, 0.2);
  background: #f2dfcf;
}

.album-image-frame img {
  width: 115%;
  height: 115%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: center;
  will-change: transform;
}

.album-photo-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-photo-page p,
.album-empty {
  margin: 12px 0 0;
  line-height: 1.55;
  color: #825b5c;
  text-align: center;
}

.album-page {
  min-width: 0;
  margin: 0;
  text-align: center;
  color: #a47b78;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-pager {
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(201, 145, 123, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.62);
  box-shadow: 0 12px 28px rgba(137, 78, 72, 0.09);
  backdrop-filter: blur(12px);
}

.site-footer {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 6;
  transform: translateX(-50%);
  font-size: 0.78rem;
  line-height: 1;
}

.icp-link {
  color: rgba(125, 82, 84, 0.66);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  margin-right: 12px;
}

.icp-link img {
  vertical-align: text-bottom;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: rgba(157, 78, 99, 0.9);
  text-decoration: underline;
}

html.is-tablet-view .garden-open .hero-card {
  transform: translateY(-3px) scale(0.6);
  animation: none;
}

html.is-tablet-view .memorial-card.garden-widget {
  transform: translate(-28px, 24px) scale(0.66) rotate(-4deg);
}

html.is-tablet-view .garden-open .memorial-card.garden-widget {
  opacity: 1;
  animation: none;
}

html.is-tablet-short .garden-open .hero-card {
  transform: translateY(-2px) scale(0.57);
}

html.is-tablet-short .memorial-card.garden-widget {
  transform: translate(-28px, 24px) scale(0.63) rotate(-4deg);
}

html.is-tablet-view .garden-open .garden-widget::after,
html.is-mobile-view .garden-open .garden-widget::after {
  animation-duration: 0.38s;
}

@media (min-width: 761px) and (max-width: 1024px) {
  .rose-stage {
    padding: 20px;
  }

  .rose-stage::before {
    inset: 22px;
  }

  .rose-stage::after {
    inset: 34px;
  }

  .ambient {
    filter: blur(24px);
    opacity: 0.42;
  }

  .hero-card {
    width: min(820px, calc(100vw - 44px));
    padding: 30px;
    backdrop-filter: blur(6px);
  }

  .garden-open .hero-card {
    width: min(600px, 58vw);
    padding: 24px 28px;
    transform: translateY(-3px) scale(0.96);
  }

  .garden-open h1 {
    font-size: clamp(3.5rem, 6.6vw, 5rem);
  }

  .clock-time {
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  }

  .secret-garden {
    position: absolute;
    inset: 28px;
    display: block;
    width: auto;
    margin: 0;
    filter: none;
    transform: scale(0.992);
  }

  .garden-open .secret-garden {
    transform: scale(1);
    filter: none;
  }

  .garden-widget {
    position: absolute;
    filter: none;
    will-change: transform, opacity;
    transition: opacity 0.42s ease, transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .secret-garden .memorial-card {
    width: min(310px, 31vw);
    padding: 13px 16px;
  }

  .memorial-card.garden-widget {
    left: 1vw;
    bottom: 4vh;
    transform: translate(-18px, 16px) scale(0.96) rotate(-2deg);
  }

  .secret-garden .feature-card {
    width: min(205px, 22vw);
    min-height: 118px;
    padding: 14px;
    backdrop-filter: none;
  }

  .garden-gate {
    left: 3vw;
    top: 12vh;
    transform: translateX(-20px) scale(0.97) rotate(-2deg);
  }

  .garden-letter {
    right: 3vw;
    top: 13vh;
    transform: translate(22px, -16px) scale(0.97) rotate(3deg);
  }

  .garden-album {
    right: 3vw;
    bottom: 5vh;
    transform: translate(20px, 22px) scale(0.96) rotate(-2deg);
  }

  .garden-open .memorial-card.garden-widget,
  .garden-open .garden-gate,
  .garden-open .garden-letter,
  .garden-open .garden-album {
    animation-duration: 0.62s;
    filter: none;
  }

  .garden-close {
    backdrop-filter: none;
    box-shadow: 0 10px 22px rgba(156, 76, 98, 0.1);
  }

  .garden-controls {
    min-height: 106px;
  }

  .rose-seal {
    min-width: 100px;
    min-height: 100px;
  }

  h1 {
    font-size: clamp(4.2rem, 8vw, 5.8rem);
  }

  .modal-backdrop {
    padding: 18px;
    backdrop-filter: blur(4px);
  }

  .modal {
    width: min(900px, calc(100vw - 36px));
    max-height: calc(100svh - 36px);
    padding: 24px;
  }

  .large-modal {
    width: min(930px, calc(100vw - 36px));
  }

  .album-modal {
    width: min(960px, calc(100vw - 28px));
    min-height: 0;
  }

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

  .letters-layout {
    grid-template-columns: minmax(210px, 0.75fr) minmax(300px, 1.4fr);
  }

  .letter-list {
    max-height: min(58svh, 520px);
  }

  .letter-paper {
    min-height: min(58svh, 560px);
  }

  .album-control {
    width: 40px;
    height: 32px;
    font-size: 1.45rem;
  }

  .album-shell {
    padding: 0;
  }

  .album-spread {
    height: min(58svh, 560px);
    min-height: 260px;
    padding: 12px;
  }

  .album-wall-page {
    min-height: 0;
  }

  .album-photo-page {
    min-height: 360px;
    padding: 16px;
  }

  .album-image-frame {
    height: min(42svh, 330px);
  }
}

@media (min-width: 761px) and (max-width: 900px) and (orientation: portrait) {
  .garden-open .hero-card {
    width: min(560px, calc(100vw - 88px));
    transform: translateY(-8vh) scale(0.94);
  }

  .secret-garden {
    inset: 24px 22px;
  }

  .secret-garden .feature-card {
    width: min(215px, 28vw);
    min-height: 116px;
  }

  .secret-garden .memorial-card {
    width: min(300px, 36vw);
  }

  .garden-gate {
    left: 4vw;
    top: 21vh;
  }

  .garden-letter {
    right: 4vw;
    top: 21vh;
  }

  .memorial-card.garden-widget {
    left: 5vw;
    bottom: 7vh;
  }

  .garden-album {
    right: 5vw;
    bottom: 7vh;
  }
}

@media (min-width: 761px) and (max-width: 1024px) and (max-height: 760px) {
  .rose-stage {
    padding: 16px;
  }

  .hero-card {
    padding: 20px 28px;
  }

  .garden-open .hero-card {
    width: min(520px, 50vw);
    padding: 18px 24px;
    transform: translateY(-2px) scale(0.94);
  }

  .clock-panel {
    padding: 6px 14px;
  }

  .clock-time {
    font-size: 1.6rem;
  }

  h1,
  .garden-open h1 {
    font-size: clamp(3.2rem, 6.2vw, 4.4rem);
  }

  .subtitle {
    margin-bottom: 12px;
    line-height: 1.55;
  }

  .garden-controls {
    min-height: 84px;
  }

  .rose-seal {
    min-width: 82px;
    min-height: 82px;
  }

  .rose-seal small {
    display: none;
  }

  .secret-garden {
    inset: 18px;
  }

  .secret-garden .feature-card {
    width: min(190px, 20vw);
    min-height: 102px;
    padding: 12px;
  }

  .secret-garden .memorial-card {
    width: min(285px, 29vw);
    padding: 11px 14px;
  }

  .memorial-card strong {
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  }

  .memorial-card p,
  .feature-card small {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .garden-gate {
    left: 2vw;
    top: 10vh;
  }

  .garden-letter {
    right: 2vw;
    top: 10vh;
  }

  .memorial-card.garden-widget {
    left: 2vw;
    bottom: 3vh;
  }

  .garden-album {
    right: 2vw;
    bottom: 3vh;
  }
}


@media (max-width: 760px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-topbar {
    top: max(8px, env(safe-area-inset-top));
    padding: 0 8px;
  }

  .site-topbar-inner {
    grid-template-columns: minmax(0, 0.78fr) auto minmax(0, 0.9fr);
    gap: 4px;
    width: 100%;
    min-height: 38px;
    padding: 3px 4px;
  }

  .site-brand {
    min-width: 0;
    max-width: none;
    overflow: hidden;
    padding-left: 8px;
    font-size: clamp(0.62rem, 2.7vw, 0.74rem);
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
  }

  .site-nav-button,
  .site-session-button {
    min-width: 0;
    min-height: 32px;
    padding: 0 clamp(7px, 2.3vw, 10px);
    overflow: hidden;
    font-size: clamp(0.76rem, 3.2vw, 0.86rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav-button {
    justify-self: center;
  }

  .common-sites-toolbar,
  .common-site-form-actions {
    flex-direction: column;
  }

  .common-site-form {
    grid-template-columns: 1fr;
  }

  .site-login {
    padding: 14px;
  }

  .site-login::before {
    inset: 14px;
    border-radius: 28px;
  }

  .site-login::after {
    display: none;
  }

  .login-card {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .login-card h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    letter-spacing: -0.03em;
  }

  .login-copy {
    margin: 14px auto 20px;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .login-actions {
    grid-template-columns: 1fr;
  }

  .rose-stage {
    --mobile-gap: clamp(8px, 2.6vw, 12px);
    --mobile-card-padding: clamp(14px, 4vw, 18px);
    --mobile-feature-padding: clamp(9px, 3.2vw, 13px);
    --mobile-modal-padding: clamp(16px, 4.8vw, 22px);
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    place-items: stretch;
    gap: var(--mobile-gap);
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: calc(52px + var(--mobile-gap) + env(safe-area-inset-top)) clamp(8px, 3.2vw, 14px) calc(16px + env(safe-area-inset-bottom));
  }

  .rose-stage::before {
    inset: calc(52px + var(--mobile-gap)) 8px 18px;
    border-radius: 28px;
  }

  .rose-stage::after {
    inset: calc(60px + var(--mobile-gap)) 16px 28px;
    border-radius: 24px;
    opacity: 0.26;
  }

  .site-footer {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 0 4px;
    overflow-wrap: anywhere;
    transform: none;
    text-align: center;
    font-size: clamp(0.68rem, 2.8vw, 0.76rem);
    line-height: 1.35;
  }

  .icp-link {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-right: 0;
    overflow-wrap: anywhere;
    letter-spacing: 0;
    white-space: normal;
  }

  .icp-link img {
    flex: 0 0 auto;
  }

  .hero-card,
  .garden-open .hero-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-height: 0;
    max-height: none;
    padding: var(--mobile-card-padding);
    border-radius: 22px;
    transform: none;
    animation: none;
  }

  .hero-card::before {
    inset: 8px;
    border-radius: 16px;
  }

  .home-view {
    position: relative;
    inset: auto;
    display: grid;
    place-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .common-sites-page {
    width: 100%;
    max-height: none;
    position: relative;
    left: auto;
    top: auto;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }

  .view-home .home-view {
    max-height: none;
    overflow: visible;
  }

  .view-common-sites .home-view {
    max-height: 0;
    overflow: hidden;
    transform: translate3d(0, -8px, 0) scale(0.985);
  }

  .view-home .common-sites-page {
    max-height: 0;
    overflow: hidden;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }

  .view-common-sites .common-sites-page {
    max-height: none;
    overflow: visible;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .common-site-editor-backdrop {
    padding: 14px;
  }

  .common-site-editor {
    border-radius: 24px;
    padding: 18px;
  }

.common-sites-page::-webkit-scrollbar {
  width: 6px;
}

.common-sites-page::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.common-sites-page::-webkit-scrollbar-thumb {
  background: rgba(196, 139, 116, 0.28);
  border-radius: 8px;
}

.common-sites-page::-webkit-scrollbar-thumb:hover {
  background: rgba(157, 78, 99, 0.38);
}

.common-sites-page-card {
    padding: 18px 14px;
    border-radius: 24px;
  }

  .common-sites-page-header {
    margin-bottom: 14px;
  }

  .secret-garden {
    position: static;
    display: none;
    width: 100%;
    max-width: 100%;
    margin-top: var(--mobile-gap);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    filter: none;
  }

  .garden-open .secret-garden {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--mobile-gap);
  }

  .garden-widget,
  .memorial-card.garden-widget,
  .garden-gate,
  .garden-letter,
  .garden-album {
    box-sizing: border-box;
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
    rotate: 0deg;
    animation: none;
    opacity: 1;
    filter: none;
    will-change: auto;
  }

  .garden-open .garden-widget,
  .garden-open .memorial-card.garden-widget,
  .garden-open .garden-gate,
  .garden-open .garden-letter,
  .garden-open .garden-album {
    animation: none;
  }

  .garden-close {
    position: static;
    justify-self: center;
    order: 3;
    margin: 2px 0 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  }

  .garden-open .garden-close,
  .garden-closing .garden-close,
  .garden-close:hover,
  .garden-close:focus-visible,
  .garden-close:active {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .garden-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--mobile-gap);
    margin-top: 0;
  }

  .garden-controls {
    min-height: clamp(66px, 18svh, 78px);
  }

  .rose-seal {
    min-width: 76px;
    min-height: 76px;
    margin-top: 0;
  }

  .seal-bloom {
    font-size: 1.45rem;
  }

  .seal-text {
    font-size: 0.76rem;
  }

  .rose-seal small {
    display: none;
  }

  .clock-panel {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 6px 12px;
    border-radius: 18px;
  }

  .clock-time {
    font-size: clamp(1.32rem, 6.4vw, 1.72rem);
    letter-spacing: 0.05em;
  }

  .clock-date {
    font-size: clamp(0.72rem, 3.1vw, 0.82rem);
  }

  .eyebrow {
    margin: 10px 0 4px;
    font-size: clamp(0.6rem, 2.7vw, 0.68rem);
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: clamp(2rem, 9.4vw, 2.65rem);
    line-height: 1.08;
  }

  .subtitle {
    margin: 4px auto var(--mobile-gap);
    max-width: 100%;
    font-size: clamp(0.82rem, 3.4vw, 0.92rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--mobile-gap);
    padding: 5px;
    overflow: hidden;
    border-radius: 22px;
  }

  .search-box input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    font-size: clamp(0.86rem, 3.4vw, 0.98rem);
  }

  .search-box button {
    min-width: clamp(58px, 17vw, 74px);
    padding: 8px 12px;
    font-size: clamp(0.86rem, 3.4vw, 0.98rem);
    white-space: nowrap;
  }

  .memorial-card {
    margin-bottom: var(--mobile-gap);
    padding: var(--mobile-feature-padding) 14px;
    border-radius: 22px;
  }

  .secret-garden .memorial-card {
    width: 100%;
    margin: 0;
    text-align: left;
  }

  .secret-garden .memorial-card::before {
    top: -8px;
    left: 24px;
    width: 52px;
    height: 14px;
  }

  .memorial-card strong {
    font-size: clamp(1.35rem, 6vw, 1.55rem);
  }

  .memorial-card p {
    margin: 2px 0 4px;
    line-height: 1.35;
    font-size: 0.88rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .feature-card {
    min-height: auto;
    padding: var(--mobile-feature-padding) 12px;
    border-radius: 20px;
  }

  .secret-garden .feature-card {
    display: grid;
    min-height: 120px;
    width: 100%;
    padding: 12px 10px;
    overflow: hidden;
    text-align: center;
    backdrop-filter: none;
  }

  .secret-garden .feature-card::before {
    inset: 8px;
    border-radius: 16px;
  }

  .garden-gate::after,
  .garden-letter::after,
  .garden-album::after {
    display: none;
  }

  .feature-card strong {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .feature-icon {
    margin-bottom: 3px;
    font-size: 1.25rem;
  }

  .feature-card small {
    margin-top: 2px;
    line-height: 1.3;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
  }

  .modal-backdrop {
    align-items: start;
    padding: 8px;
    overflow-y: auto;
  }

  .modal {
    width: 100%;
    max-height: calc(100svh - 16px);
    padding: var(--mobile-modal-padding);
    border-radius: 24px;
    overflow: auto;
  }

  .album-modal {
    overflow: hidden;
  }

  .modal-header h2 {
    margin-bottom: 14px;
    font-size: 1.6rem;
  }

  .letters-layout {
    grid-template-columns: 1fr;
  }

  .letter-list {
    max-height: min(28svh, 170px);
  }

  .letter-paper {
    min-height: min(48svh, 320px);
    padding: 22px;
  }

  .album-shell {
    padding: 0;
  }

  .album-control {
    width: 36px;
    height: 30px;
    font-size: 1.35rem;
  }

  .album-spread {
    height: min(54svh, 420px);
    min-height: 230px;
    padding: 10px;
  }

  .album-pager {
    width: 100%;
    gap: 8px;
  }

  .album-wall-page {
    min-height: 0;
  }

  .album-photo-page {
    min-height: min(48svh, 320px);
    padding: 12px;
  }

  .album-image-frame {
    height: min(34svh, 225px);
  }

  .album-photo-page:nth-child(2) {
    display: none;
  }
}

html.is-mobile-short .rose-stage {
  --mobile-gap: 6px;
  --mobile-card-padding: 10px;
  --mobile-feature-padding: 7px;
  --mobile-modal-padding: 14px;
}

html.is-mobile-short .clock-time {
  font-size: 1.25rem;
}

html.is-mobile-short h1 {
  font-size: clamp(1.8rem, 8.8vw, 2.35rem);
}

html.is-mobile-short .subtitle,
html.is-mobile-short .feature-card small,
html.is-mobile-short .memorial-card p,
html.is-mobile-short .memorial-card small {
  font-size: 0.8rem;
}

html.is-mobile-short .garden-controls {
  min-height: 62px;
}

html.is-mobile-short .modal {
  max-height: calc(100svh - 12px);
}

html.is-mobile-short .secret-garden .feature-card {
  min-height: 104px;
}

html.is-mobile-narrow .site-topbar-inner {
  grid-template-columns: minmax(0, 0.62fr) auto minmax(0, 0.82fr);
}

html.is-mobile-narrow .site-brand {
  padding-left: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

html.is-mobile-narrow .site-nav-button,
html.is-mobile-narrow .site-session-button {
  padding: 0 6px;
  font-size: 0.74rem;
}

html.is-mobile-narrow .rose-stage {
  --mobile-card-padding: 12px;
  padding-right: 8px;
  padding-left: 8px;
}

html.is-mobile-narrow .hero-card::before {
  display: none;
}

html.is-mobile-narrow h1 {
  font-size: clamp(1.75rem, 8.8vw, 2.2rem);
}

html.is-mobile-narrow .search-box {
  grid-template-columns: 1fr;
  border-radius: 20px;
}

html.is-mobile-narrow .search-box input {
  padding: 7px 8px;
  text-align: center;
}

html.is-mobile-narrow .search-box button {
  width: 100%;
  padding: 7px 11px;
}

html.is-mobile-narrow .site-footer {
  font-size: 0.66rem;
}

html.is-mobile-narrow .garden-actions {
  grid-template-columns: 1fr;
}

html.is-mobile-narrow .feature-card {
  padding: 7px 10px;
}

html.is-mobile-narrow .secret-garden .feature-card {
  min-height: 0;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  text-align: left;
}

html.is-mobile-narrow .feature-icon {
  margin: 0;
}

html.is-mobile-narrow .memorial-card {
  padding: 8px 12px;
}

html.is-mobile-narrow .clock-date {
  font-size: 0.72rem;
}

@media (min-width: 761px) and (max-width: 1024px) {
  @keyframes notePinIn {
    0% { opacity: 0; transform: translate(-18px, 16px) scale(0.96) rotate(-2deg); }
    68% { opacity: 1; transform: translate(3px, -2px) scale(1.01) rotate(0deg); }
    100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(-1deg); }
  }

  @keyframes gateOpenIn {
    0% { opacity: 0; transform: translateX(-20px) scale(0.97) rotate(-2deg); }
    68% { opacity: 1; transform: translateX(3px) scale(1.01) rotate(-1deg); }
    100% { opacity: 1; transform: translateX(0) scale(1) rotate(-1deg); }
  }

  @keyframes letterDriftIn {
    0% { opacity: 0; transform: translate(22px, -16px) scale(0.97) rotate(3deg); }
    68% { opacity: 1; transform: translate(-2px, 2px) scale(1.01) rotate(2deg); }
    100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(2deg); }
  }

  @keyframes albumSettleIn {
    0% { opacity: 0; transform: translate(20px, 22px) scale(0.96) rotate(-2deg); }
    68% { opacity: 1; transform: translate(-2px, -3px) scale(1.01) rotate(-1deg); }
    100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(-1deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
