:root {
  --paper: #f0eee5;
  --paper-warm: #f8f4ea;
  --paper-light: #fcfaf4;
  --ink: #26352c;
  --ink-soft: #5f6c62;
  --moss: #64795f;
  --sage: #93a18b;
  --line: rgba(51, 67, 55, 0.15);
  --gold: #c9a35e;
  --gold-soft: #e5d1a5;
  --coral: #b86f5a;
  --shadow: 0 22px 60px rgba(53, 62, 48, 0.08);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Times New Roman", serif;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(252, 250, 244, 0.84), rgba(240, 238, 229, 0.92)),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(91, 116, 83, 0.68);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.sun-halo {
  position: absolute;
  top: -230px;
  left: 50%;
  width: 880px;
  height: 880px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(226, 199, 128, 0.24), rgba(226, 199, 128, 0.08) 42%, transparent 69%);
  transform: translateX(-50%);
}

.hill {
  position: absolute;
  right: -8vw;
  bottom: -220px;
  left: -8vw;
  height: 470px;
  border-radius: 50% 50% 0 0;
  filter: blur(2px);
}

.hill-back {
  bottom: -300px;
  background: rgba(158, 170, 143, 0.18);
  transform: rotate(-2deg);
}

.hill-front {
  bottom: -355px;
  left: -18vw;
  width: 130vw;
  background: rgba(107, 126, 96, 0.12);
  transform: rotate(3deg);
}

.floating-seed {
  position: absolute;
  width: 5px;
  height: 9px;
  border-radius: 80% 20% 80% 20%;
  background: rgba(126, 138, 105, 0.34);
  animation: drift 9s ease-in-out infinite;
}

.seed-a {
  top: 17%;
  left: 8%;
  transform: rotate(28deg);
}

.seed-b {
  top: 33%;
  right: 8%;
  animation-delay: -4s;
}

.seed-c {
  top: 69%;
  left: 19%;
  animation-delay: -7s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(20deg);
  }
  50% {
    transform: translate(24px, -32px) rotate(210deg);
  }
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(53, 68, 56, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-right: 9px;
  border: 1px solid rgba(61, 79, 63, 0.22);
  border-radius: 50%;
}

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

.brand-mark path,
.tiny-sprout path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.brand-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.together-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid rgba(66, 84, 69, 0.13);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(252, 250, 244, 0.58);
  font-size: 12px;
}

.live-dot {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #7f9c70;
  box-shadow: 0 0 0 4px rgba(127, 156, 112, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.presence {
  display: flex;
  align-items: center;
}

.presence-avatar {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  margin-left: -7px;
  border: 2px solid var(--paper-warm);
  border-radius: 50%;
  color: #faf8f1;
  background: var(--avatar-color, var(--moss));
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
}

.presence-avatar::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper-warm);
  border-radius: 50%;
  background: #a4a99c;
  content: "";
}

.presence-avatar.online::after {
  background: #789c68;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.app-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(244px, 286px) minmax(450px, 1fr) minmax(226px, 268px);
  gap: clamp(18px, 2.2vw, 36px);
  min-height: calc(100vh - 77px);
  max-width: 1570px;
  margin: 0 auto;
  padding: 26px clamp(20px, 2.8vw, 42px) 30px;
}

.left-rail,
.right-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding-top: 7px;
}

.paper-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(55, 72, 58, 0.12);
  border-radius: 6px 20px 6px 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.52), transparent 54%),
    rgba(249, 246, 237, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.paper-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(114, 131, 102, 0.4), transparent);
  content: "";
}

.date-card {
  min-height: 143px;
  padding: 18px 21px;
  background:
    radial-gradient(circle at 110% -20%, rgba(216, 189, 125, 0.32), transparent 55%),
    rgba(249, 247, 239, 0.8);
}

.date-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.weather-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-width: 1.2;
}

.date-main {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.date-main > strong {
  margin-right: 12px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}

.date-main > div {
  display: flex;
  flex-direction: column;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.date-main small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.date-card > p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
}

.ritual-card {
  padding: 21px 18px 17px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--moss);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.4;
}

.section-heading h2,
.all-memories-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.progress-fraction {
  margin-top: 5px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
}

.section-copy {
  margin: 10px 0 16px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.ritual-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ritual {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 10px;
  overflow: hidden;
  border: 1px solid rgba(59, 74, 61, 0.1);
  border-radius: 11px;
  text-align: left;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.ritual:hover {
  border-color: rgba(83, 107, 76, 0.25);
  background: rgba(255, 255, 255, 0.54);
  transform: translateX(2px);
}

.ritual.is-mine-done {
  border-color: rgba(98, 127, 87, 0.24);
  background: rgba(143, 164, 129, 0.12);
}

.ritual.is-fully-done {
  border-color: rgba(111, 138, 96, 0.38);
  background: rgba(132, 157, 117, 0.16);
}

.ritual.is-fully-done::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: radial-gradient(circle at 100% 0, rgba(207, 181, 111, 0.28), transparent 68%);
  content: "";
}

.ritual:disabled {
  cursor: default;
  opacity: 0.63;
  transform: none;
}

.ritual-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(219, 209, 185, 0.42);
}

.ritual-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--moss);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.heart-icon {
  background: rgba(189, 125, 102, 0.12);
}

.heart-icon svg {
  stroke: var(--coral);
}

.spark-icon {
  background: rgba(202, 171, 103, 0.13);
}

.spark-icon svg {
  stroke: #ae8641;
}

.ritual-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ritual-copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ritual-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-dots {
  display: flex;
  gap: 4px;
}

.member-dot {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(65, 84, 68, 0.17);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--serif);
  font-size: 8px;
  transition: 180ms ease;
}

.member-dot.done {
  border-color: transparent;
  color: #fff;
  background: var(--dot-color, var(--moss));
}

.member-dot.done::after {
  font-size: 8px;
  content: "✓";
}

.member-dot.done > span {
  display: none;
}

.midnight-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed rgba(73, 91, 75, 0.18);
  color: var(--ink-soft);
  font-size: 9px;
}

.midnight-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.midnight-note strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tree-scene {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.scene-heading {
  position: relative;
  z-index: 5;
  max-width: 570px;
  padding-top: 6px;
  text-align: center;
}

.scene-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 38px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.35;
}

.scene-heading p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11px;
}

.tree-canvas {
  position: relative;
  width: min(100%, 730px);
  min-height: 470px;
  flex: 1;
  margin-top: -10px;
  isolation: isolate;
}

.tree-canvas::before {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: -1;
  width: min(78%, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(103, 123, 93, 0.11);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.tree-canvas::after {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: -1;
  width: min(94%, 680px);
  aspect-ratio: 1;
  border: 1px dashed rgba(103, 123, 93, 0.07);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(111, 128, 100, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: 19%;
  left: 17%;
  width: 65%;
  aspect-ratio: 1;
}

.orbit-two {
  top: 8%;
  left: 9%;
  width: 82%;
  aspect-ratio: 1;
  border-style: dashed;
}

.tree-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tree-branches path,
.tree-backdrop path,
.tree-backdrop ellipse {
  vector-effect: non-scaling-stroke;
  transition:
    opacity 800ms ease,
    stroke-width 800ms ease;
}

.ghost-tree {
  opacity: 0.3;
  transition: opacity 900ms ease;
}

.ghost-tree path {
  stroke-dasharray: 3 7;
}

.tree-canvas.has-growth .ghost-tree {
  opacity: 0;
}

.tree-shadow-branch {
  opacity: 0.1;
}

.tree-leaf {
  transform-box: fill-box;
  transform-origin: center;
  animation: leafAppear 950ms cubic-bezier(0.18, 0.75, 0.22, 1) both;
}

@keyframes leafAppear {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(-12deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.leaf-vein {
  stroke: rgba(42, 70, 42, 0.18);
  stroke-width: 0.8;
}

.falling-leaf {
  transform-box: fill-box;
  transform-origin: center;
  animation: fallingLeaf 8s linear infinite;
}

@keyframes fallingLeaf {
  0% {
    opacity: 0;
    transform: translate(0, -20px) rotate(0);
  }
  12% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate(35px, 180px) rotate(300deg);
  }
}

.seed-group {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 500ms ease;
}

.seed-aura {
  animation: seedBreathe 3.2s ease-in-out infinite;
}

@keyframes seedBreathe {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.9);
    transform-origin: center;
  }
  50% {
    opacity: 0.27;
    transform: scale(1.16);
    transform-origin: center;
  }
}

.sprout-group {
  opacity: 0;
  transform: translateY(8px);
  transform-box: fill-box;
  transform-origin: bottom;
  transition:
    opacity 600ms ease,
    transform 700ms ease;
}

.tree-canvas.has-progress .sprout-group {
  opacity: 1;
  transform: translateY(0);
}

.tree-canvas.has-growth .seed-group,
.tree-canvas.has-growth .sprout-group {
  opacity: 0;
}

.tree-canvas.is-dead .tree-svg {
  filter: grayscale(0.84) sepia(0.12);
  opacity: 0.72;
}

.tree-canvas.is-dead .tree-canopy .tree-leaf {
  opacity: 0.48 !important;
  animation: none !important;
}

.tree-canvas.is-dead .memory-ornament {
  filter: saturate(0.55);
}

.seed-caption {
  position: absolute;
  bottom: 9%;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78%;
  padding-top: 15px;
  text-align: center;
  transform: translateX(-50%);
  transition: 400ms ease;
}

.seed-caption::before {
  width: 1px;
  height: 24px;
  margin-bottom: 9px;
  background: linear-gradient(transparent, rgba(78, 94, 78, 0.25));
  content: "";
}

.seed-caption span {
  color: var(--moss);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.seed-caption strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 400;
}

.tree-canvas.has-growth .seed-caption {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}

.ornament-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.memory-ornament {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  transform-origin: 50% 0;
  animation: ornamentSwing 5s ease-in-out infinite;
}

.memory-ornament:nth-child(2n) {
  animation-delay: -1.6s;
}

.memory-ornament:nth-child(3n) {
  animation-delay: -3.1s;
}

@keyframes ornamentSwing {
  0%,
  100% {
    transform: rotate(var(--tilt, 0deg));
  }
  50% {
    transform: rotate(calc(var(--tilt, 0deg) + 2.5deg));
  }
}

.ornament-string {
  width: 1px;
  height: var(--string-height, 31px);
  background: linear-gradient(rgba(93, 77, 54, 0.2), rgba(93, 77, 54, 0.68));
}

.ornament-photo {
  position: relative;
  width: clamp(50px, 6vw, 72px);
  padding: 4px 4px 11px;
  border: 0;
  border-radius: 2px;
  background: #fcf8ee;
  box-shadow:
    0 8px 20px rgba(45, 57, 43, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.ornament-photo::before {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 10px;
  height: 5px;
  border-radius: 1px;
  background: #b58b59;
  content: "";
  transform: translateX(-50%);
}

.ornament-photo:hover {
  z-index: 10;
  box-shadow: 0 14px 30px rgba(45, 57, 43, 0.28);
  transform: scale(1.1);
}

.ornament-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
}

.ornament-photo span {
  position: absolute;
  right: 4px;
  bottom: 2px;
  left: 4px;
  overflow: hidden;
  color: #61705f;
  font-family: var(--serif);
  font-size: 6px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-ornament {
  position: absolute;
  top: 38%;
  right: 7%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 7px;
  border: 1px dashed rgba(88, 108, 84, 0.28);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(249, 247, 239, 0.42);
  font-family: var(--serif);
  font-size: 9px;
  cursor: pointer;
  pointer-events: auto;
}

.empty-ornament span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(213, 202, 176, 0.46);
}

.growth-burst {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: 14;
  width: 8px;
  height: 8px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.growth-burst.is-bursting::before,
.growth-burst.is-bursting::after {
  position: absolute;
  inset: 50%;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(191, 157, 83, 0.68);
  border-radius: 50%;
  content: "";
  animation: burstRing 1.6s ease-out both;
}

.growth-burst.is-bursting::after {
  animation-delay: 0.23s;
}

.growth-particle {
  position: absolute;
  width: 6px;
  height: 9px;
  border-radius: 80% 20%;
  background: #91a878;
  animation: burstLeaf 1.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes burstRing {
  from {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.4);
  }
}

@keyframes burstLeaf {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
  }
}

.tree-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 680px;
  min-height: 55px;
  margin-top: -6px;
  padding: 10px 12px 10px 15px;
  border-top: 1px solid rgba(61, 78, 62, 0.12);
}

.stage-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid rgba(63, 82, 66, 0.14);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
}

.stage-badge > span:last-child {
  display: flex;
  flex-direction: column;
}

.stage-badge small {
  color: var(--ink-soft);
  font-size: 8px;
}

.stage-badge strong {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
}

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

.ghost-button,
.text-button {
  padding: 8px 10px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.ghost-button:hover,
.text-button:hover {
  color: var(--ink);
}

.memory-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 99px;
  color: #f7f5ed;
  background: var(--ink);
  box-shadow: 0 10px 22px rgba(37, 53, 44, 0.18);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.memory-button {
  padding: 10px 15px;
  font-size: 10px;
}

.memory-button span {
  font-size: 15px;
  font-weight: 300;
  line-height: 0.7;
}

.memory-button:hover,
.primary-button:hover {
  background: #455a4b;
  box-shadow: 0 13px 28px rgba(37, 53, 44, 0.24);
  transform: translateY(-1px);
}

.right-rail {
  padding-top: 5px;
}

.compact-heading {
  align-items: center;
}

.compact-heading h2 {
  font-size: 15px;
}

.tiny-sprout {
  width: 29px;
  height: 29px;
  color: var(--moss);
}

.growth-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.growth-numbers > div {
  display: flex;
  align-items: baseline;
  padding: 13px 6px 12px;
  gap: 5px;
}

.growth-numbers > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.growth-numbers strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.growth-numbers span {
  color: var(--ink-soft);
  font-size: 8px;
}

.next-stage-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 8px;
}

.next-stage-label strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(69, 87, 71, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ca17d, #cfb065);
  transition: width 800ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.health-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 11px;
  border-radius: 9px;
  background: rgba(114, 139, 101, 0.1);
}

.health-row.is-danger {
  background: rgba(177, 111, 87, 0.1);
}

.health-row.is-dead {
  background: rgba(94, 89, 80, 0.1);
}

.health-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7b9a6d;
  box-shadow: 0 0 0 4px rgba(123, 154, 109, 0.12);
}

.is-danger .health-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(184, 111, 90, 0.11);
}

.is-dead .health-dot {
  background: #77766f;
  box-shadow: 0 0 0 4px rgba(94, 89, 80, 0.1);
}

.health-row > div {
  display: flex;
  flex-direction: column;
}

.health-row strong {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 600;
}

.health-row small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 7px;
}

.memories-card {
  min-height: 242px;
}

.memory-count {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 10px;
}

.memory-copy {
  margin-bottom: 12px;
}

.memory-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  min-height: 79px;
}

.memory-thumb {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 4px 4px 11px;
  border: 0;
  background: #fcf9ef;
  box-shadow: 0 7px 16px rgba(50, 62, 47, 0.11);
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.memory-thumb:nth-child(2n) {
  transform: rotate(1.6deg);
}

.memory-thumb:nth-child(3n) {
  transform: rotate(-1.8deg);
}

.memory-thumb:hover {
  z-index: 2;
  box-shadow: 0 10px 21px rgba(50, 62, 47, 0.18);
  transform: translateY(-3px) rotate(0);
}

.memory-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.memory-thumb span {
  position: absolute;
  right: 5px;
  bottom: 3px;
  left: 5px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-thumb {
  display: grid;
  aspect-ratio: 1 / 1.24;
  place-items: center;
  border: 1px dashed rgba(80, 97, 83, 0.2);
  color: #8f9889;
  font-family: var(--serif);
  font-size: 7px;
  text-align: center;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.18);
}

.text-button {
  margin-top: 10px;
  padding: 3px 0;
  color: var(--moss);
  font-size: 8px;
}

.identity-note {
  display: flex;
  align-items: center;
  padding: 4px 3px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.4;
  margin-top: auto;
}

.identity-note strong {
  color: var(--ink);
  font-weight: 600;
}

.identity-swatch {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--moss);
}

.identity-note button {
  margin-left: 5px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--moss);
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 24px;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 46, 38, 0.45);
  backdrop-filter: blur(9px);
  animation: fadeIn 240ms ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.welcome-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  width: min(900px, 94vw);
  min-height: 530px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px 30px 8px 30px;
  background: var(--paper-warm);
  box-shadow: 0 36px 110px rgba(25, 38, 30, 0.34);
  animation: cardRise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-art {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  background:
    radial-gradient(circle at 50% 30%, rgba(235, 211, 151, 0.6), transparent 40%),
    linear-gradient(180deg, #d7dcc9, #b4bea5);
}

.welcome-art::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(64, 82, 64, 0.4) 0.6px, transparent 0.8px);
  background-size: 5px 5px;
  content: "";
}

.welcome-art svg {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 92%;
  height: 84%;
}

.welcome-sun {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(245, 225, 165, 0.46);
  filter: blur(1px);
  transform: translateX(-50%);
}

.welcome-soil {
  position: absolute;
  right: -20%;
  bottom: -31%;
  left: -20%;
  height: 58%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #819078, #5e6c5b);
}

.welcome-seed {
  position: absolute;
  bottom: 23%;
  left: 50%;
  z-index: 3;
  width: 28px;
  height: 38px;
  border-radius: 55% 45% 55% 45%;
  background: linear-gradient(135deg, #d8b875, #72503a);
  box-shadow: 0 0 45px rgba(239, 211, 126, 0.6);
  transform: translateX(-50%) rotate(-12deg);
}

.welcome-seed span {
  position: absolute;
  top: 7px;
  left: 14px;
  width: 1px;
  height: 20px;
  background: rgba(255, 238, 187, 0.45);
  transform: rotate(28deg);
}

.welcome-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 62px);
}

.welcome-content h2,
.identity-card h2,
.memory-form-card h2,
.memory-viewer h2,
.death-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.welcome-content > p {
  margin: 18px 0 26px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.9;
}

.field-label {
  display: block;
  margin: 13px 0 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.welcome-content input,
.memory-form-card input,
.memory-form-card textarea {
  width: 100%;
  border: 1px solid rgba(61, 78, 63, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.43);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.welcome-content input {
  height: 43px;
  padding: 0 13px;
  font-family: var(--serif);
  font-size: 13px;
}

.welcome-content input:focus,
.memory-form-card input:focus,
.memory-form-card textarea:focus {
  border-color: rgba(86, 110, 82, 0.5);
  outline: none;
  background: rgba(255, 255, 255, 0.68);
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}

.name-fields label span {
  display: block;
  margin: 12px 0 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.name-amp {
  padding-bottom: 13px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}

.primary-button {
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.welcome-footnote {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 8px;
  text-align: center;
}

.identity-card,
.memory-form-card,
.death-card {
  position: relative;
  z-index: 2;
  width: min(430px, 94vw);
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px 25px 7px 25px;
  background: var(--paper-warm);
  box-shadow: 0 32px 90px rgba(27, 39, 31, 0.32);
  animation: cardRise 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.identity-card h2,
.memory-form-card h2 {
  font-size: 29px;
}

.identity-card > p,
.memory-form-card > p {
  margin: 12px 0 22px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
}

.identity-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}

.identity-option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(60, 80, 64, 0.13);
  border-radius: 11px;
  text-align: left;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 180ms ease;
}

.identity-option:hover {
  border-color: rgba(80, 104, 76, 0.32);
  background: rgba(255, 255, 255, 0.68);
  transform: translateX(2px);
}

.identity-option-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--member-color);
  font-family: var(--serif);
  font-size: 15px;
}

.identity-option-copy {
  display: flex;
  flex-direction: column;
}

.identity-option-copy strong {
  font-family: var(--serif);
  font-size: 13px;
}

.identity-option-copy small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.identity-card > small {
  color: var(--ink-soft);
  font-size: 8px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(58, 77, 61, 0.13);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.upload-zone {
  position: relative;
  display: grid;
  width: 100%;
  height: 190px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed rgba(78, 100, 77, 0.3);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(224, 212, 181, 0.24), transparent 48%),
    rgba(255, 255, 255, 0.27);
  cursor: pointer;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink-soft);
}

.upload-placeholder svg {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--moss);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.upload-placeholder strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
}

.upload-placeholder small {
  margin-top: 4px;
  font-size: 8px;
}

.memory-form-card input {
  height: 42px;
  padding: 0 12px;
  font-family: var(--serif);
  font-size: 11px;
}

.memory-form-card textarea {
  min-height: 74px;
  padding: 11px 12px;
  resize: vertical;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.6;
}

.memory-form-card .primary-button {
  margin-top: 19px;
}

.memory-viewer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(230px, 0.9fr);
  width: min(760px, 94vw);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px 28px 7px 28px;
  background: var(--paper-warm);
  box-shadow: 0 32px 90px rgba(27, 39, 31, 0.34);
  animation: cardRise 440ms ease both;
}

.viewer-photo-wrap {
  min-height: 430px;
  background: #d6d1c1;
}

.viewer-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.viewer-content h2 {
  font-size: 30px;
}

.viewer-content > p {
  margin: 16px 0 23px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.viewer-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.viewer-author::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--author-color, var(--moss));
  content: "";
}

.danger-text {
  align-self: flex-start;
  margin-top: 28px;
  color: var(--coral);
}

.all-memories-card {
  position: relative;
  z-index: 2;
  width: min(940px, 94vw);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: 33px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px 28px 7px 28px;
  background: var(--paper-warm);
  box-shadow: 0 32px 90px rgba(27, 39, 31, 0.34);
  animation: cardRise 450ms ease both;
}

.all-memories-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.all-memories-heading h2 {
  font-size: 25px;
}

.small-memory-button {
  flex: 0 0 auto;
  padding: 9px 13px;
}

.all-memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 17px;
}

.all-memory-item {
  padding: 6px 6px 13px;
  border: 0;
  text-align: left;
  background: #fcf9ef;
  box-shadow: 0 8px 20px rgba(50, 61, 47, 0.12);
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.all-memory-item:hover {
  box-shadow: 0 13px 27px rgba(50, 61, 47, 0.18);
  transform: translateY(-3px) rotate(-0.5deg);
}

.all-memory-item img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
}

.all-memory-item strong {
  display: block;
  overflow: hidden;
  margin: 8px 4px 2px;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-memory-item span {
  display: block;
  margin: 0 4px;
  color: var(--ink-soft);
  font-size: 7px;
}

.empty-memory-archive {
  grid-column: 1 / -1;
  padding: 50px 20px;
  border: 1px dashed rgba(80, 100, 80, 0.2);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11px;
  text-align: center;
}

.death-layer {
  background: rgba(34, 41, 35, 0.52);
}

.death-card {
  overflow: hidden;
  width: min(460px, 94vw);
  padding: 44px 40px 37px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    #e5e2d6;
}

.dead-branch {
  height: 150px;
  margin-top: -30px;
}

.dead-branch svg {
  width: 150px;
  height: 100%;
}

.dead-branch path {
  fill: none;
  stroke: #665f51;
  stroke-linecap: round;
  stroke-width: 4;
  opacity: 0.78;
}

.dead-branch path:nth-child(n + 2) {
  stroke-width: 2;
}

.death-card h2 {
  font-size: 34px;
}

.death-card > p {
  margin: 16px auto 25px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.9;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 200;
  max-width: min(420px, 88vw);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  color: #faf8f1;
  background: rgba(43, 60, 46, 0.93);
  box-shadow: 0 13px 34px rgba(31, 44, 32, 0.24);
  font-size: 10px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.connection-banner {
  position: fixed;
  top: 83px;
  left: 50%;
  z-index: 190;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(173, 135, 77, 0.2);
  border-radius: 99px;
  color: #765d36;
  background: rgba(248, 238, 213, 0.92);
  box-shadow: 0 7px 20px rgba(84, 67, 43, 0.1);
  font-size: 8px;
  transform: translateX(-50%);
}

.connection-banner span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b48b4d;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  to {
    opacity: 0.25;
  }
}

.tree-canvas.is-previewing::before {
  border-color: rgba(194, 159, 84, 0.35);
}

.previewing-label {
  position: absolute;
  top: 15%;
  left: 50%;
  z-index: 20;
  padding: 7px 12px;
  border: 1px solid rgba(142, 110, 54, 0.22);
  border-radius: 99px;
  color: #7b6238;
  background: rgba(249, 241, 219, 0.9);
  font-size: 8px;
  transform: translateX(-50%);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 250px minmax(410px, 1fr);
  }

  .right-rail {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr auto;
    align-items: stretch;
    padding-top: 0;
  }

  .identity-note {
    align-self: center;
  }

  .tree-canvas {
    min-height: 515px;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: 68px;
    padding: 0 18px;
  }

  .brand-name {
    font-size: 14px;
  }

  .together-pill {
    display: none;
  }

  .topbar-actions {
    gap: 7px;
  }

  .share-button span {
    display: none;
  }

  .app-shell {
    display: flex;
    min-height: auto;
    flex-direction: column;
    padding: 16px 15px 25px;
  }

  .tree-scene {
    order: 1;
  }

  .left-rail {
    order: 2;
  }

  .right-rail {
    display: flex;
    order: 3;
  }

  .scene-heading h1 {
    font-size: 26px;
  }

  .tree-canvas {
    width: calc(100% + 20px);
    min-height: 430px;
    margin-left: -10px;
  }

  .tree-bottom-bar {
    margin-top: -22px;
  }

  .date-card {
    display: none;
  }

  .ritual-card {
    min-height: auto;
  }

  .memory-strip {
    grid-template-columns: repeat(5, 1fr);
  }

  .empty-thumb:nth-child(n + 4) {
    display: none;
  }

  .welcome-card {
    display: block;
    max-height: calc(100vh - 36px);
    overflow: auto;
  }

  .welcome-art {
    display: none;
  }

  .welcome-content {
    min-height: 540px;
    padding: 34px 25px;
  }

  .memory-viewer {
    display: flex;
    max-height: 88vh;
    flex-direction: column;
    overflow: auto;
  }

  .viewer-photo-wrap {
    min-height: 280px;
    max-height: 48vh;
  }

  .viewer-content {
    padding: 28px;
  }
}

@media (max-width: 500px) {
  .modal-layer {
    padding: 12px;
  }

  .presence {
    display: none;
  }

  .scene-heading {
    padding: 2px 9px 0;
  }

  .scene-heading h1 {
    font-size: 23px;
  }

  .tree-canvas {
    min-height: 380px;
  }

  .tree-bottom-bar {
    align-items: flex-end;
    padding-right: 4px;
    padding-left: 4px;
  }

  .ghost-button {
    display: none;
  }

  .memory-button {
    padding: 9px 12px;
  }

  .memory-ornament {
    display: none;
  }

  .memory-ornament:nth-child(-n + 3) {
    display: flex;
  }

  .ornament-photo {
    width: 48px;
  }

  .name-fields {
    gap: 6px;
  }

  .welcome-content h2 {
    font-size: 28px;
  }

  .ritual-copy small {
    max-width: 170px;
  }

  .memory-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .empty-thumb:nth-child(n + 4) {
    display: none;
  }

  .all-memories-card {
    padding: 25px 16px;
  }

  .all-memories-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .all-memories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
}

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