:root {
  color-scheme: light;
  --ink: #25211d;
  --muted: #6b6258;
  --paper: #fffaf0;
  --panel: rgba(255, 250, 240, 0.82);
  --line: rgba(64, 50, 37, 0.14);
  --rose: #d95f81;
  --coral: #ec7f62;
  --gold: #d8a23d;
  --sage: #6f9e66;
  --sky: #5f9fc6;
  --lavender: #8c73c9;
  --shadow: 0 24px 70px rgba(55, 43, 31, 0.16);
  --soft-shadow: 0 10px 36px rgba(55, 43, 31, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #bfdfee 0%, #f6e8bd 42%, #d6e6b6 43%, #7cad68 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 62%);
  mask-image: linear-gradient(180deg, black, transparent 62%);
}

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

button,
.button {
  align-items: center;
  background: #26201b;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(38, 32, 27, 0.16);
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 780;
  gap: 0.5rem;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

button:hover,
.button:hover {
  box-shadow: 0 16px 30px rgba(38, 32, 27, 0.2);
  transform: translateY(-1px);
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(95, 159, 198, 0.42);
  outline-offset: 3px;
}

button.secondary,
.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(55, 43, 31, 0.09);
  color: var(--ink);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.shell::after {
  background: linear-gradient(180deg, transparent 0%, rgba(56, 81, 49, 0.13) 100%);
  bottom: 0;
  content: "";
  height: 36%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  left: 50%;
  max-width: 1180px;
  padding: 1rem;
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
}

.brand,
.nav {
  backdrop-filter: blur(20px);
  background: rgba(255, 250, 240, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 40px rgba(66, 49, 33, 0.1);
}

.brand {
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 850;
  gap: 0.62rem;
  min-height: 48px;
  padding: 0.48rem 1rem 0.48rem 0.55rem;
  text-decoration: none;
}

.brand-mark {
  background:
    radial-gradient(circle at 50% 46%, #f7d772 0 20%, transparent 21%),
    radial-gradient(circle at 50% 0%, #df688c 0 34%, transparent 35%),
    radial-gradient(circle at 100% 50%, #e77862 0 34%, transparent 35%),
    radial-gradient(circle at 50% 100%, #79a96c 0 34%, transparent 35%),
    radial-gradient(circle at 0% 50%, #6ba7cc 0 34%, transparent 35%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
  display: inline-block;
  height: 34px;
  width: 34px;
}

.nav {
  border-radius: 999px;
  display: flex;
  gap: 0.35rem;
  padding: 0.34rem;
}

.nav .button {
  box-shadow: none;
  min-height: 40px;
  padding: 0.58rem 0.92rem;
}

.nav .button.secondary {
  background: rgba(255, 255, 255, 0.58);
}

.nav-short {
  display: none;
}

.hero {
  display: grid;
  gap: clamp(1rem, 3vw, 3rem);
  grid-template-columns: minmax(18rem, 0.82fr) minmax(20rem, 1.18fr);
  min-height: 100vh;
  padding: 6.6rem clamp(1rem, 4vw, 4.5rem) 2rem;
}

.intro {
  align-self: center;
  max-width: 35rem;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: #6f4d35;
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.5vw, 6.15rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.88;
  margin: 0;
  text-wrap: balance;
}

h1 span {
  color: #533c2e;
  display: block;
  font-style: italic;
}

.intro p,
.panel > p,
.photo-card p,
.empty {
  color: #554b42;
  font-size: 1.04rem;
  line-height: 1.62;
}

.intro p {
  margin: 1.05rem 0 1.25rem;
  max-width: 31rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.garden {
  align-self: stretch;
  isolation: isolate;
  min-height: 40rem;
  overflow: visible;
  position: relative;
}

.garden-has-wishes .hero {
  display: block;
  min-height: 100vh;
  padding: 0;
}

.garden-has-wishes .intro {
  display: none;
}

.garden-has-wishes .garden {
  min-height: 100vh;
  overflow: hidden;
  width: 100%;
}

.garden-empty-page .water-scene {
  display: none;
}

.garden-plaque {
  backdrop-filter: blur(20px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 42%),
    rgba(255, 250, 240, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(55, 43, 31, 0.13);
  left: clamp(1rem, 4vw, 4rem);
  max-width: 23rem;
  padding: 0.78rem 0.95rem 0.88rem;
  position: absolute;
  right: auto;
  top: 5.75rem;
  z-index: 130;
}

.garden-plaque h1 {
  font-size: clamp(2.05rem, 4vw, 3.35rem);
}

.sun {
  animation: glow 6s ease-in-out infinite;
  background: #ffd56f;
  border-radius: 50%;
  box-shadow: 0 0 78px rgba(255, 209, 98, 0.78);
  height: 7.2rem;
  position: absolute;
  right: 10%;
  top: 8%;
  width: 7.2rem;
  z-index: 0;
}

.cloud {
  animation: drift 34s linear infinite;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(82, 108, 122, 0.08);
  height: 2.3rem;
  position: absolute;
  width: 8.4rem;
  z-index: 1;
}

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

.cloud::before {
  height: 3.5rem;
  left: 1rem;
  top: -1.45rem;
  width: 3.5rem;
}

.cloud::after {
  height: 4.3rem;
  right: 1.15rem;
  top: -2rem;
  width: 4.3rem;
}

.cloud.one {
  left: 4%;
  top: 20%;
}

.cloud.two {
  animation-duration: 42s;
  left: 40%;
  top: 13%;
  transform: scale(0.84);
}

.hill {
  bottom: -8%;
  left: -56%;
  position: absolute;
  right: -18%;
  z-index: 1;
}

.garden-has-wishes .hill {
  left: -12%;
  right: -12%;
}

.garden-has-wishes .hill-back {
  height: 62%;
}

.garden-has-wishes .hill-front {
  height: 47%;
}

.hill-back {
  background: linear-gradient(180deg, #b8d987 0%, #91bd70 72%, #77a763 100%);
  border-radius: 50% 50% 0 0 / 24% 24% 0 0;
  height: 53%;
  transform: translateY(-6%);
}

.hill-front {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(180deg, #8fc070 0%, #5f9a56 100%);
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
  height: 42%;
  left: -18%;
  right: -18%;
}

.water-scene {
  bottom: 0;
  height: auto;
  max-height: 70vh;
  max-width: 58rem;
  position: absolute;
  right: clamp(0.25rem, 2vw, 1.5rem);
  width: min(66vw, 58rem);
  z-index: 3;
}

.lake-bank {
  fill: rgba(139, 174, 105, 0.74);
}

.river-bank {
  fill: rgba(110, 154, 90, 0.34);
}

.lake-shadow,
.house-shadow {
  fill: rgba(54, 78, 51, 0.16);
}

.river-body {
  fill: url("#riverGradient");
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 3;
}

.lake-water {
  fill: rgba(91, 160, 176, 0.9);
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 2;
}

.lake-glow {
  fill: rgba(218, 247, 239, 0.34);
}

.river-shine,
.lake-ripple {
  animation: waterShimmer 4.4s ease-in-out infinite;
  fill: none;
  stroke: rgba(244, 255, 250, 0.54);
  stroke-linecap: round;
  stroke-width: 5;
}

.river-shine.r2,
.lake-ripple.r4 {
  animation-delay: -2s;
  opacity: 0.78;
}

.house-roof {
  fill: #b95458;
  stroke: rgba(90, 53, 43, 0.18);
  stroke-width: 2;
}

.house-wall {
  fill: #ffe7b9;
  stroke: rgba(111, 76, 45, 0.18);
  stroke-width: 2;
}

.house-trim {
  fill: none;
  stroke: #fff5da;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.house-door {
  fill: #744832;
}

.house-knob {
  fill: #ffd978;
}

.house-window {
  fill: #bfe8ee;
  stroke: #fff7df;
  stroke-width: 4;
}

.house-window-line {
  fill: none;
  stroke: rgba(69, 100, 114, 0.48);
  stroke-linecap: round;
  stroke-width: 2;
}

.chimney {
  fill: #8d4944;
}

.reed-svg {
  fill: none;
  stroke: #426f47;
  stroke-linecap: round;
  stroke-width: 6;
}

.reed-head {
  fill: #b8844e;
}

.petal,
.sparkle {
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.petal {
  animation: petalDrift 12s ease-in-out infinite;
  background: #df688c;
  border-radius: 80% 20% 80% 20%;
  height: 18px;
  opacity: 0.7;
  width: 11px;
}

.p1 {
  left: 24%;
  top: 22%;
}

.p2 {
  animation-delay: -4s;
  background: #e77862;
  left: 58%;
  top: 28%;
}

.p3 {
  animation-delay: -8s;
  background: #f6cf66;
  left: 78%;
  top: 38%;
}

.sparkle {
  animation: twinkle 3.5s ease-in-out infinite;
  background: #fff7bd;
  border-radius: 50%;
  box-shadow: 0 0 18px #fff0a4;
  height: 7px;
  width: 7px;
}

.s1 {
  bottom: 34%;
  left: 18%;
}

.s2 {
  animation-delay: -1.2s;
  bottom: 42%;
  left: 72%;
}

.s3 {
  animation-delay: -2.1s;
  bottom: 23%;
  left: 55%;
}

.wildflower {
  bottom: 10%;
  height: 4.5rem;
  pointer-events: none;
  position: absolute;
  width: 6rem;
  z-index: 4;
}

.wildflower::before,
.wildflower::after,
.wildflower span {
  background: #4c834d;
  border-radius: 999px;
  bottom: 0;
  content: "";
  position: absolute;
  width: 4px;
}

.wildflower::before {
  height: 4.2rem;
  left: 2rem;
  transform: rotate(-8deg);
}

.wildflower::after {
  height: 3.4rem;
  left: 3.3rem;
  transform: rotate(10deg);
}

.wildflower span {
  height: 3rem;
  left: 1rem;
  transform: rotate(-16deg);
}

.wildflower span::after,
.wildflower::before,
.wildflower::after {
  box-shadow:
    0 -4px 0 -1px #e66f8b,
    7px -12px 0 1px #f3c85c,
    -8px -18px 0 0 #f2a468;
}

.wf1 {
  left: 8%;
}

.wf2 {
  bottom: 16%;
  left: 28%;
  transform: scale(0.76);
}

.wf3 {
  bottom: 8%;
  right: 25%;
  transform: scale(0.88);
}

.grass {
  background:
    linear-gradient(82deg, transparent 43%, #4d874d 44% 47%, transparent 48%),
    linear-gradient(102deg, transparent 52%, #609b58 53% 56%, transparent 57%),
    linear-gradient(72deg, transparent 47%, #3e7443 48% 51%, transparent 52%);
  bottom: 0;
  height: 7.5rem;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
  width: 18rem;
  z-index: 6;
}

.g1 {
  left: 2%;
}

.g2 {
  left: 38%;
  transform: scaleX(-1);
}

.g3 {
  right: 2%;
  transform: scale(0.85);
}

.garden-empty {
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 240, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  bottom: 24%;
  box-shadow: var(--soft-shadow);
  color: #604c3e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  left: 58%;
  padding: 0.7rem 1rem;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 5;
}

.garden-item {
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  height: 74px;
  left: var(--x);
  min-height: 0;
  padding: 0;
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%) scale(var(--scale));
  transform-origin: 50% 100%;
  width: 74px;
  z-index: var(--layer);
}

.garden-item:hover,
.garden-item:focus-visible {
  box-shadow: none;
  transform: translate(-50%, -56%) scale(calc(var(--scale) * 1.08));
}

.garden-item:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

.garden-item.active .bloom {
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--item-color), white 12%));
}

.garden-item.active .core {
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22);
}

.garden-item .ground-shadow {
  background: rgba(42, 75, 42, 0.18);
  border-radius: 50%;
  bottom: -2px;
  filter: blur(1px);
  height: 12px;
  left: 15px;
  position: absolute;
  width: 44px;
}

.garden-item .tap-ring {
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 999px;
  inset: -0.28rem;
  position: absolute;
}

.garden-item.active .tap-ring {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.16);
}

.garden-item .stem {
  background: linear-gradient(180deg, #5f9658, #386b3d);
  border-radius: 99px;
  bottom: 0;
  height: 42px;
  left: 35px;
  position: absolute;
  width: 4px;
}

.garden-item .stem::before,
.garden-item .stem::after {
  background: #6ea462;
  border-radius: 100% 0 100% 0;
  content: "";
  height: 15px;
  position: absolute;
  top: 16px;
  width: 24px;
}

.garden-item .stem::before {
  left: -20px;
  transform: rotate(15deg);
}

.garden-item .stem::after {
  right: -20px;
  transform: scaleX(-1) rotate(15deg);
}

.garden-item .bloom {
  animation: sway 3.6s ease-in-out infinite;
  background: var(--item-color);
  border-radius: 50% 50% 46% 46%;
  box-shadow:
    -16px 8px 0 color-mix(in srgb, var(--item-color), white 18%),
    16px 8px 0 color-mix(in srgb, var(--item-color), white 10%),
    0 22px 0 color-mix(in srgb, var(--item-color), #fff0ba 28%),
    0 13px 26px color-mix(in srgb, var(--item-color), transparent 46%);
  height: 34px;
  left: 20px;
  position: absolute;
  top: 3px;
  transform-origin: bottom center;
  width: 34px;
}

.garden-item .core {
  background: radial-gradient(circle, #fff4a6 0 28%, #d8a23d 29% 100%);
  border-radius: 50%;
  height: 13px;
  left: 30.5px;
  position: absolute;
  top: 18px;
  width: 13px;
}

.garden-item.lantern .stem,
.garden-item.firefly .stem {
  opacity: 0;
}

.garden-item.lantern .bloom,
.garden-item.firefly .bloom {
  border-radius: 45% 45% 55% 55%;
  box-shadow:
    0 0 20px color-mix(in srgb, var(--item-color), white 20%),
    0 16px 34px color-mix(in srgb, var(--item-color), transparent 40%);
  height: 40px;
  top: 10px;
}

.garden-item.butterfly .stem,
.garden-item.butterfly .core {
  display: none;
}

.garden-item.butterfly .bloom {
  animation: flutter 1.8s ease-in-out infinite;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  top: 18px;
}

.garden-item.butterfly .bloom::before,
.garden-item.butterfly .bloom::after {
  background:
    radial-gradient(circle at 54% 42%, rgba(255, 255, 255, 0.46), transparent 18%),
    var(--item-color);
  border-radius: 70% 30% 70% 30%;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--item-color), transparent 58%);
  content: "";
  height: 35px;
  position: absolute;
  top: 0;
  width: 28px;
}

.garden-item.butterfly .bloom::before {
  left: -8px;
  transform: rotate(-28deg);
}

.garden-item.butterfly .bloom::after {
  right: -8px;
  transform: scaleX(-1) rotate(-28deg);
}

.wish-preview {
  backdrop-filter: blur(20px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 42%),
    rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  bottom: 1rem;
  box-shadow: var(--soft-shadow);
  left: clamp(1rem, 4vw, 4rem);
  max-width: 19rem;
  padding: 0.8rem 0.9rem;
  position: absolute;
  z-index: 135;
}

.wish-modal,
.gallery-modal {
  align-items: center;
  background: rgba(32, 28, 24, 0.38);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 40;
}

.wish-modal.open,
.gallery-modal.open {
  display: flex;
}

.wish-card {
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(42, 32, 25, 0.28);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(12rem, 0.9fr) minmax(16rem, 1.1fr);
  max-height: calc(100vh - 2rem);
  max-width: min(48rem, calc(100vw - 2rem));
  overflow: auto;
  padding: 1rem;
  position: relative;
  width: 100%;
}

.wish-card-toolbar {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-bottom: -0.25rem;
}

.wish-card-media {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 44%),
    rgba(224, 235, 197, 0.62);
  border-radius: 8px;
  min-height: 16rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.wish-card-media img {
  display: block;
  height: 100%;
  max-height: 24rem;
  object-fit: contain;
  width: 100%;
}

.wish-card-placeholder {
  display: grid;
  height: 100%;
  min-height: 16rem;
  place-items: center;
}

.wish-card-placeholder span {
  background:
    radial-gradient(circle at 50% 50%, #f7d772 0 18%, transparent 19%),
    radial-gradient(circle at 50% 0, #e75d83 0 32%, transparent 33%),
    radial-gradient(circle at 100% 50%, #ec7f62 0 32%, transparent 33%),
    radial-gradient(circle at 50% 100%, #74a96d 0 32%, transparent 33%),
    radial-gradient(circle at 0 50%, #68a9d8 0 32%, transparent 33%);
  border-radius: 50%;
  height: 6rem;
  width: 6rem;
}

.photo-count,
.more-photos {
  align-items: center;
  background: rgba(38, 32, 27, 0.82);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.38rem 0.62rem;
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
}

.wish-card-copy {
  align-self: center;
  min-width: 0;
  padding: 0.6rem 0.45rem;
}

.wish-card-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.98;
  margin: 0;
}

.wish-card-copy p {
  color: #554b42;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.wish-relation {
  color: #7a5f45 !important;
  font-size: 0.9rem !important;
  font-weight: 780;
  text-transform: uppercase;
}

.modal-close {
  background: rgba(38, 32, 27, 0.92);
  box-shadow: 0 12px 28px rgba(38, 32, 27, 0.18);
  min-height: 38px;
  padding: 0.52rem 0.82rem;
  z-index: 20;
}

.text-close {
  appearance: none;
  background: #26201b !important;
  border: 0;
  border-radius: 999px;
  color: #fffaf0 !important;
  display: inline-flex !important;
  font-size: 0.86rem;
  font-weight: 850;
  min-height: 38px;
  opacity: 1 !important;
  padding: 0.5rem 0.85rem;
  position: static !important;
  transform: none !important;
  visibility: visible !important;
}

.wish-preview h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.08;
  margin: 0;
}

.wish-preview p {
  color: #554b42;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0.45rem 0 0;
}

.wish-preview .eyebrow {
  margin: 0 0 0.45rem;
}

.wish-preview img {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  display: block;
  margin-bottom: 0.85rem;
  object-fit: contain;
  width: 100%;
}

.panel-page {
  margin: 0 auto;
  max-width: 920px;
  min-height: 100vh;
  padding: 7.5rem 1rem 2.5rem;
  position: relative;
  z-index: 2;
}

.panel {
  backdrop-filter: blur(22px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.panel h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  font-weight: 760;
  gap: 0.5rem;
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(87, 68, 49, 0.16);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 0.82rem 0.9rem;
  width: 100%;
}

textarea {
  line-height: 1.5;
  min-height: 150px;
  resize: vertical;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-top: 1.2rem;
}

.gallery-page {
  max-width: 1180px;
}

.memory-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  margin-top: 1.2rem;
}

.memory-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.memory-photos {
  display: grid;
  gap: 0.28rem;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(3, 4.7rem);
  padding: 0.35rem;
}

.memory-photos.count-1 {
  display: block;
}

.memory-photos.count-1 .memory-photo {
  aspect-ratio: 16 / 10;
  height: auto;
}

.memory-photos.count-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 14.4rem;
}

.memory-photos.count-2 .memory-photo.featured {
  grid-row: auto;
}

.memory-photos.count-3 {
  grid-template-rows: repeat(2, 7rem);
}

.memory-photos.count-3 .memory-photo.featured {
  grid-row: 1 / 3;
}

.memory-photo {
  background: rgba(255, 250, 240, 0.5);
  border-radius: 6px;
  box-shadow: none;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.memory-photo:hover {
  box-shadow: none;
  transform: none;
}

.memory-photo.featured {
  grid-row: 1 / 4;
}

.memory-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.memory-copy {
  padding: 0.85rem 0.95rem 1rem;
}

.memory-copy strong {
  display: block;
  font-size: 1.02rem;
}

.memory-copy span {
  color: #7a5f45;
  display: block;
  font-size: 0.78rem;
  font-weight: 840;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.memory-copy p {
  color: #554b42;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.55rem 0 0;
}

.photo-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.gallery-photo {
  background: rgba(255, 250, 240, 0.58);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  min-height: 0;
  padding: 0;
  width: 100%;
}

.gallery-photo:hover {
  box-shadow: none;
  transform: none;
}

.photo-card img {
  aspect-ratio: 4 / 3;
  background: rgba(255, 250, 240, 0.72);
  display: block;
  object-fit: contain;
  padding: 0.4rem;
  width: 100%;
}

.photo-card div {
  padding: 0.9rem;
}

.photo-card strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
}

.photo-card p {
  font-size: 0.92rem;
  margin: 0;
}

.empty {
  color: var(--muted);
  padding: 1rem 0;
}

.gallery-modal-content {
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 2.5rem);
  max-width: min(48rem, calc(100vw - 2rem));
  overflow: auto;
  padding: 0.85rem;
  position: relative;
  width: 100%;
}

.gallery-modal-content img {
  background: rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  display: block;
  max-height: 60vh;
  object-fit: contain;
  width: 100%;
}

.gallery-modal-footer {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr auto;
  padding: 0.85rem 0.15rem 0.1rem;
}

.gallery-modal-footer p {
  color: #554b42;
  line-height: 1.35;
  margin: 0.25rem 0;
}

.gallery-modal-footer span {
  color: #7a5f45;
  font-size: 0.8rem;
  font-weight: 820;
}

.gallery-step {
  min-height: 38px;
  padding: 0.5rem 0.78rem;
}

.toast {
  background: rgba(38, 32, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  bottom: 1rem;
  box-shadow: var(--shadow);
  color: white;
  display: none;
  left: 50%;
  padding: 0.8rem 1rem;
  position: fixed;
  transform: translateX(-50%);
  z-index: 30;
}

.toast.show {
  display: block;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes flutter {
  0%,
  100% {
    transform: rotate(-4deg) scaleX(1);
  }
  50% {
    transform: rotate(5deg) scaleX(0.92);
  }
}

@keyframes drift {
  0% {
    transform: translateX(-14vw);
  }
  100% {
    transform: translateX(58vw);
  }
}

@keyframes glow {
  50% {
    transform: scale(1.035);
  }
}

@keyframes petalDrift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(2.4rem, 4.2rem) rotate(96deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes waterShimmer {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-0.4rem);
  }
  50% {
    opacity: 0.78;
    transform: translateX(0.55rem);
  }
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 8.5rem;
  }

  .intro {
    align-self: end;
  }

  .garden {
    min-height: 31rem;
  }

  .sun {
    height: 5.6rem;
    right: 8%;
    top: 6%;
    width: 5.6rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    left: 0;
    max-width: none;
    padding: 0.75rem;
    transform: none;
    width: 100vw;
  }

  .brand {
    justify-content: center;
  }

  .nav {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inline-size: min(360px, calc(100vw - 1.5rem));
    max-width: min(360px, calc(100vw - 1.5rem));
    overflow: visible;
    width: min(360px, calc(100vw - 1.5rem));
  }

  .nav .button {
    font-size: 0.72rem;
    min-width: 0;
    padding: 0.56rem 0.12rem;
    white-space: nowrap;
    width: 100%;
  }

  .nav-full {
    display: none;
  }

  .nav-short {
    display: inline;
  }

  .hero {
    padding: 9.2rem 1rem 1.5rem;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .actions .button,
  .actions button {
    flex: 1 1 10rem;
  }

  .garden {
    min-height: 29rem;
  }

  .garden-plaque {
    left: 1rem;
    max-width: none;
    right: 1rem;
    top: 9.6rem;
  }

  .garden-plaque h1 {
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    line-height: 0.92;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .garden-has-wishes .water-scene {
    bottom: 7.75rem;
    max-height: none;
    right: -2rem;
    width: min(27rem, 112vw);
  }

  .wish-preview {
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
    padding: 0.85rem;
    right: 0.75rem;
  }

  .garden-item {
    transform: translate(-50%, -50%) scale(calc(var(--scale) * 0.72));
  }

  .garden-item:hover,
  .garden-item:focus-visible {
    transform: translate(-50%, -56%) scale(calc(var(--scale) * 0.78));
  }

  .wish-preview h2 {
    font-size: 1.25rem;
  }

  .garden-empty {
    bottom: 25%;
    font-size: 0.95rem;
    max-width: calc(100vw - 2rem);
    white-space: normal;
  }

  .panel-page {
    padding-top: 10.2rem;
  }

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

  .wish-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 1.5rem);
    min-width: 0;
    overflow-x: hidden;
    padding: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .wish-card-media {
    min-height: 12rem;
  }

  .wish-card-media img {
    max-height: 38vh;
  }

  .wish-card-copy {
    min-width: 0;
    padding: 0.1rem 0.15rem 0.25rem;
  }

  .wish-card-copy p {
    max-width: calc(100vw - 4rem);
  }

  .wish-card-copy h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

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

  .memory-photos,
  .memory-photos.count-2,
  .memory-photos.count-3 {
    grid-template-rows: repeat(3, 4.9rem);
  }

  .photo-card img {
    aspect-ratio: 16 / 10;
  }

  .gallery-modal {
    padding: 0.75rem;
  }

  .gallery-modal-content {
    max-height: calc(100vh - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    padding: 0.75rem;
  }

  .gallery-modal-content img {
    max-height: 66vh;
  }

  .gallery-close {
    right: 1rem;
    top: 1rem;
  }
}
