:root {
  --ink: #fff8ec;
  --muted: rgba(255, 248, 236, 0.72);
  --night: #07110f;
  --moss: #132a21;
  --gold: #ffd166;
  --rose: #ff7a90;
  --aqua: #4d96ff;
  --violet: #9b5de5;
  --line: rgba(255, 248, 236, 0.18);
  --glass: rgba(9, 24, 20, 0.56);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --panel: rgba(255, 248, 236, 0.07);
  --hero-image: url("assets/secret-garden-hero.png");
  --hero-ink: #fff8ec;
  --theme-flower-petal: #fff7e8;
  --theme-flower-center: #e5b35b;
  --theme-flower-stem: #8fa780;
  --tooltip-bg: rgba(255, 248, 236, 0.92);
  --tooltip-ink: #102019;
  --theme-wash-a: rgba(255, 209, 102, 0.22);
  --theme-wash-b: rgba(78, 205, 196, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: "Inter", "Noto Serif TC", system-ui, sans-serif;
  overflow-x: hidden;
  transition: background 360ms ease, color 360ms ease;
}

html.custom-cursor-enabled,
html.custom-cursor-enabled *,
html.custom-cursor-enabled *::before,
html.custom-cursor-enabled *::after {
  cursor: none !important;
}

html.windows-custom-cursor,
html.windows-custom-cursor *,
html.windows-custom-cursor *::before,
html.windows-custom-cursor *::after {
  cursor: var(--windows-cursor, auto) !important;
}

html.windows-custom-cursor.cursor-interactive,
html.windows-custom-cursor.cursor-interactive *,
html.windows-custom-cursor.cursor-interactive *::before,
html.windows-custom-cursor.cursor-interactive *::after {
  cursor: var(--windows-cursor-sprout, var(--windows-cursor, auto)) !important;
}

html.windows-custom-cursor.cursor-pressing,
html.windows-custom-cursor.cursor-pressing *,
html.windows-custom-cursor.cursor-pressing *::before,
html.windows-custom-cursor.cursor-pressing *::after {
  cursor: var(--windows-cursor-press, var(--windows-cursor, auto)) !important;
}

body.theme-shifting::before,
body.theme-shifting::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 72;
  pointer-events: none;
}

body.theme-shifting::before {
  background:
    radial-gradient(circle at 32% 42%, var(--theme-wash-a), transparent 34%),
    radial-gradient(circle at 68% 58%, var(--theme-wash-b), transparent 38%),
    rgba(255, 255, 255, 0.12);
  animation: theme-wash-in 680ms ease both;
}

body.theme-shifting::after {
  background:
    radial-gradient(circle at 70% 48%, rgba(7, 17, 15, 0.22), transparent 34%),
    radial-gradient(circle at 28% 62%, rgba(255, 248, 236, 0.2), transparent 42%);
  mix-blend-mode: soft-light;
  animation: theme-wash-out 680ms ease both;
}

html.performance-lite body.theme-shifting::before {
  background: color-mix(in srgb, var(--night), transparent 62%);
  animation: theme-lite-fade 360ms ease both;
  transform: translateZ(0);
}

html.performance-lite body.theme-shifting::after {
  content: none;
}

body[data-theme="light"] {
  --ink: #2f382f;
  --muted: rgba(63, 70, 58, 0.72);
  --night: #fbf4ea;
  --moss: #eff1df;
  --gold: #c88619;
  --rose: #d7797f;
  --aqua: #699a86;
  --violet: #8a74b9;
  --line: rgba(71, 83, 63, 0.2);
  --glass: rgba(255, 250, 243, 0.72);
  --shadow: 0 18px 56px rgba(95, 79, 55, 0.18);
  --panel: rgba(255, 255, 255, 0.58);
  --hero-image: url("assets/light-garden-bg.jpg");
  --hero-ink: #2b352c;
  --theme-flower-petal: #0c1713;
  --theme-flower-center: #ffd166;
  --theme-flower-stem: #253d34;
  --tooltip-bg: rgba(255, 251, 246, 0.86);
  --tooltip-ink: #263328;
  --theme-wash-a: rgba(255, 249, 241, 0.84);
  --theme-wash-b: rgba(215, 121, 127, 0.18);
}

body.sound-on .sound-bars i {
  animation-play-state: running;
}

@keyframes theme-wash-in {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  38% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes theme-wash-out {
  0% {
    opacity: 0.62;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes theme-lite-fade {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 0.48;
  }
  100% {
    opacity: 0;
  }
}

@keyframes theme-flower-native-spin {
  to {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

@keyframes theme-flower-native-boost {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  18% {
    transform: translate3d(0, 0, 0) rotate(46deg);
  }
  58% {
    transform: translate3d(0, 0, 0) rotate(330deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(540deg);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

#petal-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cursor-orb {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.72), transparent 0 18%, transparent 36%),
    var(--cursor-color, rgba(255, 209, 102, 0.78));
  border: 2px solid rgba(255, 255, 255, 0.68);
  opacity: 0;
  transform: translate3d(calc(var(--cursor-x, -80px) - 50%), calc(var(--cursor-y, -80px) - 50%), 0) scale(var(--cursor-scale, 0));
  transition:
    opacity 160ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease;
  mix-blend-mode: normal;
  will-change: transform, opacity;
}

.cursor-orb::before,
.cursor-orb::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 72%;
  opacity: 0;
  transform-origin: 50% 100%;
  transition: opacity 180ms ease, transform 190ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.cursor-orb::before {
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #93d47f, #407d47);
  transform: translateX(-50%) scaleY(0);
}

.cursor-orb::after {
  width: 13px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: #8ed77e;
  transform: translate(0, -9px) rotate(-34deg) scale(0);
}

body.custom-cursor-active .cursor-orb,
html.custom-cursor-active > .cursor-orb {
  --cursor-scale: 1;
  opacity: 1;
}

body.cursor-pressing .cursor-orb,
html.cursor-pressing > .cursor-orb {
  --cursor-scale: 0.72;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.44), transparent 0 16%, transparent 36%),
    color-mix(in srgb, var(--cursor-color, #ffd166), #07110f 38%);
}

body.cursor-interactive .cursor-orb::before,
html.cursor-interactive > .cursor-orb::before,
body:has(a:hover, button:hover, input:hover, [role="button"]:hover, .track:hover, .flower-card:hover, .seed:hover, .bloom-seed:hover, .gate-flower:hover, .sound-cluster:hover, .theme-toggle-button:hover, .garden-stage:hover, .living-garden:hover) .cursor-orb::before {
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
}

body.cursor-interactive .cursor-orb::after,
html.cursor-interactive > .cursor-orb::after,
body:has(a:hover, button:hover, input:hover, [role="button"]:hover, .track:hover, .flower-card:hover, .seed:hover, .bloom-seed:hover, .gate-flower:hover, .sound-cluster:hover, .theme-toggle-button:hover, .garden-stage:hover, .living-garden:hover) .cursor-orb::after {
  opacity: 1;
  transform: translate(0, -9px) rotate(-34deg) scale(1);
}

body[data-theme="light"] .cursor-orb {
  border-color: rgba(255, 255, 255, 0.86);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(4, 12, 11, 0.82), rgba(4, 12, 11, 0));
}

body[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.92), rgba(255, 249, 241, 0));
}

.brand,
.sound-toggle,
.nav-links {
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 34px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.16));
}

.brand-label {
  display: inline-block;
  min-width: 116px;
  transform-origin: left center;
  transition: opacity 240ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-label.is-changing {
  opacity: 0;
  transform: translateY(5px) scale(0.96);
}

.nav-links {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 24, 20, 0.38);
}

body[data-theme="light"] .nav-links {
  background: rgba(255, 251, 246, 0.62);
  box-shadow: 0 12px 34px rgba(95, 79, 55, 0.1);
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 248, 236, 0.74);
  font-size: 13px;
  transition: color 220ms ease, background 220ms ease;
}

body[data-theme="light"] .nav-links a {
  color: rgba(47, 56, 47, 0.68);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(255, 248, 236, 0.11);
}

body[data-theme="light"] .nav-links a:hover,
body[data-theme="light"] .nav-links a.active {
  background: rgba(200, 134, 25, 0.16);
}

.sound-cluster {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: fit-content;
  z-index: 61;
}

.sound-cluster.is-open::before,
.sound-cluster:not(.is-click-collapsed):hover::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: min(368px, calc(100vw - 24px));
  height: 236px;
  pointer-events: auto;
}

.sound-cluster.is-long-title.is-open::before,
.sound-cluster.is-long-title:not(.is-click-collapsed):hover::before {
  width: min(460px, calc(100vw - 24px));
}

.sound-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  max-width: 272px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 40%);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(9, 24, 20, 0.26);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 72%),
    0 0 28px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 64%),
    0 16px 42px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px) saturate(1.18);
  cursor: pointer;
  transition: opacity 220ms ease, transform 280ms ease, background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.sound-cluster.is-long-title .sound-toggle {
  max-width: min(420px, calc(100vw - 180px));
}

body[data-theme="light"] .sound-toggle {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18)),
    rgba(255, 251, 246, 0.34);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 76%),
    0 0 30px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 74%),
    0 14px 42px rgba(95, 79, 55, 0.13);
  color: rgba(28, 36, 30, 0.96);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.78);
}

.mini-track-title {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 360ms ease, opacity 260ms ease;
}

.mini-track-title span {
  display: inline-block;
}

.mini-track-title {
  max-width: 190px;
  opacity: 0.96;
}

.sound-cluster.is-long-title .mini-track-title {
  max-width: min(340px, calc(100vw - 242px));
}

body.music-in-view .sound-cluster {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.sound-cluster {
  transition: opacity 320ms ease, transform 320ms ease;
}

.music-touch-hint {
  position: absolute;
  top: calc(100% + 46px);
  left: 50%;
  right: auto;
  z-index: 0;
  padding: 14px 22px 15px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -6px);
  animation: music-touch-hint 4.2s ease forwards 520ms;
}

.music-touch-hint::before {
  content: "↓";
  position: absolute;
  left: 50%;
  top: -36px;
  transform: translateX(-50%);
  color: color-mix(in srgb, var(--current-track-color, var(--gold)), white 34%);
  font-size: 26px;
  text-shadow:
    0 0 18px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 28%),
    0 0 34px rgba(0, 0, 0, 0.32);
}

.music-touch-hint::after {
  content: "";
  position: absolute;
  inset: -18px -30px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(3, 14, 12, 0.6) 0 34%, rgba(3, 14, 12, 0.34) 52%, transparent 78%);
  filter: blur(10px);
  backdrop-filter: blur(14px);
}

body[data-theme="light"] .music-touch-hint {
  color: rgba(32, 39, 33, 0.9);
}

body[data-theme="light"] .music-touch-hint::after {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.78) 0 34%, rgba(255, 255, 255, 0.46) 52%, transparent 78%);
  filter: blur(12px);
}

body.music-in-view .music-touch-hint,
.sound-cluster.is-open .music-touch-hint,
.music-touch-hint.dismissed {
  opacity: 0;
  animation: none;
}

@keyframes music-touch-hint {
  0% {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  18%, 78% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 4px);
  }
}

.mini-player-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1;
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 36%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(9, 24, 20, 0.52);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 74%),
    0 0 48px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 66%),
    0 28px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(26px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.88);
  transform-origin: top right;
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body[data-theme="light"] .mini-player-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.24)),
    rgba(255, 251, 246, 0.48);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 78%),
    0 0 52px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 76%),
    0 24px 78px rgba(95, 79, 55, 0.16);
}

.sound-cluster.is-open .mini-player-panel,
.sound-cluster:not(.is-click-collapsed):hover .mini-player-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sound-cluster.is-open .sound-toggle,
.sound-cluster:not(.is-click-collapsed):hover .sound-toggle {
  border-color: color-mix(in srgb, var(--current-track-color, var(--gold)), white 18%);
  transform: translateY(-2px);
}

.mini-player-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.34);
  overflow: visible;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
}

body[data-theme="light"] .mini-player-title {
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.82);
}

.mini-title-viewport {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding-left: 5px;
  padding-right: 0;
  overflow: hidden;
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.mini-title-viewport span {
  display: inline-block;
  white-space: nowrap;
}

.mini-player-title.is-long .mini-title-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent -12px, #000 7px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent -12px, #000 7px, #000 calc(100% - 12px), transparent 100%);
}

.mini-title-jump-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  color: var(--current-track-color, var(--gold));
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
  transform: translateY(-1px);
  justify-self: end;
}

.mini-title-jump-icon::before {
  content: "↘";
}

.sound-cluster.is-open .mini-player-title.is-long .mini-title-viewport span {
  animation: title-marquee 12s linear infinite;
}

.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-player-controls .player-button {
  width: 40px;
  flex: 0 0 auto;
}

.player-button.album-jump {
  margin-left: auto;
}

.player-button.album-jump::before {
  content: "▦";
}

.mini-progress-wrap {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
}

body[data-theme="light"] .mini-progress-wrap {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.78);
}

.mini-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--current-track-color, var(--gold)) 0 var(--progress-ratio, 0%), rgba(255, 248, 236, 0.34) var(--progress-ratio, 0%) 100%);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

body[data-theme="light"] .mini-progress {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--current-track-color, var(--gold)), #d7797f 18%) 0 var(--progress-ratio, 0%), rgba(47, 56, 47, 0.18) var(--progress-ratio, 0%) 100%);
}

.mini-progress::-webkit-slider-runnable-track,
.album-progress::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: transparent;
}

.mini-progress::-webkit-slider-thumb,
.album-progress::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: var(--current-track-color, var(--gold));
  box-shadow:
    0 0 0 2px rgba(255, 248, 236, 0.78),
    0 0 18px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 46%);
  appearance: none;
  -webkit-appearance: none;
}

body[data-theme="light"] .mini-progress::-webkit-slider-thumb,
body[data-theme="light"] .album-progress::-webkit-slider-thumb {
  background: color-mix(in srgb, var(--current-track-color, var(--gold)), #d7797f 18%);
  box-shadow:
    0 0 0 2px rgba(255, 251, 246, 0.96),
    0 0 16px rgba(95, 79, 55, 0.16);
}

.mini-progress::-moz-range-track,
.album-progress::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: transparent;
}

.mini-progress::-moz-range-thumb,
.album-progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--current-track-color, var(--gold));
}

@keyframes title-marquee {
  0%, 16% {
    transform: translateX(0);
  }
  78%, 100% {
    transform: translateX(-42%);
  }
}

.sound-bars {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  height: 16px;
}

.sound-bars i {
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: var(--gold);
  animation: bars 800ms ease-in-out infinite alternate;
  animation-play-state: paused;
}

.sound-bars i:nth-child(2) {
  height: 14px;
  animation-delay: 120ms;
  background: var(--aqua);
}

.sound-bars i:nth-child(3) {
  height: 10px;
  animation-delay: 260ms;
  background: var(--rose);
}

@keyframes bars {
  to {
    transform: scaleY(0.38);
    opacity: 0.62;
  }
}

.section-panel {
  position: relative;
  isolation: isolate;
}

.hero {
  min-height: 96svh;
  display: grid;
  place-items: center;
  padding: 92px 24px 72px;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background: var(--hero-image) center / cover no-repeat;
  transform: scale(1.06);
  animation: slow-drift 24s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 12, 11, 0.25), rgba(4, 12, 11, 0.34) 45%, rgba(4, 12, 11, 0.92)),
    radial-gradient(circle at 50% 42%, rgba(255, 248, 236, 0.1), transparent 36%),
    radial-gradient(circle at 18% 74%, rgba(233, 69, 69, 0.24), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(78, 205, 196, 0.2), transparent 30%);
}

body[data-theme="light"] .hero-shade {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.34), rgba(255, 249, 241, 0.12) 44%, rgba(251, 244, 234, 0.84)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.34), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(216, 150, 77, 0.16), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(138, 116, 185, 0.12), transparent 30%);
}

@keyframes slow-drift {
  from {
    transform: scale(1.06) translate3d(-1%, -1%, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.2%, 0.8%, 0);
  }
}

.hero-content {
  width: min(880px, 100%);
  padding-bottom: 108px;
  text-align: center;
  transform-style: preserve-3d;
}

.hero-logo {
  width: clamp(190px, 18vw, 300px);
  height: auto;
  display: block;
  margin: 0 auto 8px;
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 22px rgba(255, 248, 236, 0.18));
}

body[data-theme="light"] .hero-logo {
  filter:
    drop-shadow(0 14px 26px rgba(95, 79, 55, 0.14))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.58));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.album-art strong {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
}

h1 {
  margin: 0;
  font-size: clamp(70px, 11vw, 148px);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] h1,
body[data-theme="light"] .hero-kicker,
body[data-theme="light"] .hero-copy {
  color: var(--hero-ink);
  text-shadow: 0 10px 42px rgba(255, 255, 255, 0.78);
}

.hero-kicker {
  margin: 22px 0 0;
  font-size: clamp(20px, 3vw, 36px);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 18px auto 0;
  color: rgba(255, 248, 236, 0.83);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.9;
}

body[data-theme="light"] .hero-copy {
  color: rgba(47, 56, 47, 0.82);
}

.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-action,
.ghost-action,
.contact-links a,
.contact-links button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 236, 0.24);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.primary-action {
  color: #102019;
  background: linear-gradient(90deg, var(--gold), #ffafcc, #4ecdc4);
  border-color: transparent;
  font-weight: 800;
}

.ghost-action,
.contact-links a,
.contact-links button {
  background: rgba(255, 248, 236, 0.09);
  backdrop-filter: blur(18px);
}

body[data-theme="light"] .ghost-action,
body[data-theme="light"] .contact-links a,
body[data-theme="light"] .contact-links button {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(71, 83, 63, 0.22);
}

.primary-action:hover,
.ghost-action:hover,
.contact-links a:hover,
.contact-links button:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 248, 236, 0.5);
}

.color-gate {
  position: absolute;
  left: 50%;
  bottom: 54px;
  display: flex;
  gap: clamp(8px, 1.2vw, 15px);
  transform: translateX(-50%);
  z-index: 2;
}

.gate-flower {
  position: relative;
  width: clamp(38px, 5vw, 58px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff8ec 0 10%, transparent 11%),
    radial-gradient(circle at 50% 8%, var(--tone) 0 20%, transparent 21%),
    radial-gradient(circle at 92% 50%, var(--tone) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 92%, var(--tone) 0 20%, transparent 21%),
    radial-gradient(circle at 8% 50%, var(--tone) 0 20%, transparent 21%);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--tone), transparent 30%));
  cursor: pointer;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 320ms ease;
}

.gate-flower::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  min-width: 48px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--tone), var(--tooltip-bg) 58%);
  border-radius: 999px;
  color: var(--tooltip-ink);
  background: var(--tooltip-bg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-theme="light"] .gate-flower::after {
  box-shadow:
    0 10px 26px rgba(95, 79, 55, 0.14),
    0 0 18px color-mix(in srgb, var(--tone), transparent 78%);
}

.gate-flower:hover,
.gate-flower.blooming {
  transform: translateY(-10px) scale(1.18) rotate(18deg);
}

.gate-flower:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.scroll-note {
  position: absolute;
  left: 50%;
  bottom: 18px;
  color: rgba(255, 248, 236, 0.62);
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  transform: translateX(-50%);
  white-space: nowrap;
}

body[data-theme="light"] .scroll-note {
  color: rgba(47, 56, 47, 0.62);
}

.intro-band {
  padding: 46px clamp(68px, 8vw, 132px);
  background: linear-gradient(90deg, #251617, #122d2b, #241a34, #2d2814);
  border-block: 1px solid var(--line);
}

body[data-theme="light"] .intro-band {
  background:
    linear-gradient(90deg, rgba(236, 183, 134, 0.34), rgba(190, 211, 169, 0.42), rgba(213, 197, 229, 0.36), rgba(245, 219, 158, 0.38)),
    #f8efe2;
}

.wide-copy {
  width: min(1500px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(14px, 3.2vw, 42px);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: clamp(25px, 4.15vw, 58px);
}

.wide-copy span {
  color: rgba(255, 248, 236, 0.44);
}

body[data-theme="light"] .wide-copy span {
  color: rgba(63, 70, 58, 0.44);
}

.wide-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.about,
.bloom-experience,
.music,
.flowers,
.gardeners,
.diary,
.contact {
  padding: clamp(68px, 8.5vw, 108px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 0.95;
}

.section-heading p:not(.eyebrow) {
  margin: 18px auto 0;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  line-height: 1.85;
}

.about {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 209, 102, 0.12), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(78, 205, 196, 0.13), transparent 32%),
    #091512;
}

body[data-theme="light"] .about {
  background:
    radial-gradient(circle at 14% 16%, rgba(233, 179, 94, 0.24), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(105, 154, 134, 0.22), transparent 32%),
    #fff8ee;
}

.about-grid,
.people-grid,
.card-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.origin-block,
.person,
.diary-feature,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.07);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .origin-block,
body[data-theme="light"] .person,
body[data-theme="light"] .diary-feature,
body[data-theme="light"] .timeline article {
  background: var(--panel);
}

.origin-block {
  padding: clamp(24px, 4vw, 40px);
}

.origin-block h3,
.person h3 {
  margin: 0 0 12px;
  font-size: 34px;
}

.origin-block p,
.person p,
.timeline p {
  margin: 0;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  line-height: 1.9;
  white-space: pre-line;
}

.world-map {
  width: min(1180px, 100%);
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.map-node {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.06);
  color: rgba(255, 248, 236, 0.78);
  text-align: center;
  font-weight: 700;
}

body[data-theme="light"] .map-node {
  color: rgba(47, 56, 47, 0.78);
  background: rgba(255, 255, 255, 0.44);
}

.map-node.active {
  color: #102019;
  background: var(--gold);
}

.map-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 236, 0.45), transparent);
}

body[data-theme="light"] .map-line {
  background: linear-gradient(90deg, transparent, rgba(71, 83, 63, 0.36), transparent);
}

.bloom-experience {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 22%, rgba(152, 216, 170, 0.18), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(198, 160, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #0a1511, #101912);
}

body[data-theme="light"] .bloom-experience {
  background:
    radial-gradient(circle at 16% 22%, rgba(152, 216, 170, 0.26), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(198, 160, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #fff7e8, #eef8ec 58%, #f8f0e6);
}

.bloom-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(74px);
  opacity: 0.42;
  z-index: -1;
}

.orb-one {
  width: 280px;
  aspect-ratio: 1;
  left: -86px;
  top: 18%;
  background: #98d8aa;
}

.orb-two {
  width: 240px;
  aspect-ratio: 1;
  right: -60px;
  bottom: 12%;
  background: #c6a0ff;
}

.bloom-lab {
  width: min(1180px, 100%);
  min-height: 620px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--bloom-color, #98d8aa), transparent 72%), transparent 34%),
    rgba(255, 248, 236, 0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: background 420ms ease, border-color 420ms ease;
}

body[data-theme="light"] .bloom-lab {
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--bloom-color, #98d8aa), transparent 74%), transparent 36%),
    rgba(255, 255, 255, 0.62);
}

.bloom-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 70%, color-mix(in srgb, var(--bloom-color, #98d8aa), transparent 82%), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 248, 236, 0.025) 0 1px, transparent 1px 92px);
  pointer-events: none;
}

body[data-theme="light"] .bloom-lab::before {
  background:
    radial-gradient(circle at 18% 70%, color-mix(in srgb, var(--bloom-color, #98d8aa), transparent 82%), transparent 28%),
    repeating-linear-gradient(90deg, rgba(71, 83, 63, 0.035) 0 1px, transparent 1px 92px);
}

.bloom-intro {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 248, 236, 0.12), transparent 26%),
    color-mix(in srgb, var(--night), transparent 10%);
  transition: opacity 480ms ease, transform 480ms ease, visibility 480ms ease;
}

body[data-theme="light"] .bloom-intro {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.7), transparent 26%),
    rgba(255, 248, 236, 0.88);
}

.bloom-lab.entered .bloom-intro {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
}

.bloom-intro h3 {
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.95;
}

.bloom-intro p:not(.eyebrow) {
  width: min(520px, 100%);
  margin: 0;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  line-height: 1.85;
}

.bloom-controls {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  padding-right: 84px;
  padding-left: 84px;
  border-bottom: 1px solid var(--line);
}

.bloom-seed {
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 248, 236, 0.5);
  border-radius: 50%;
  background: var(--seed-color);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    0 0 18px color-mix(in srgb, var(--seed-color), transparent 62%);
  cursor: pointer;
  padding: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, outline-color 180ms ease;
}

body[data-theme="light"] .bloom-seed {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 10px 24px rgba(95, 79, 55, 0.12),
    0 0 18px color-mix(in srgb, var(--seed-color), transparent 68%);
}

.bloom-seed:hover,
.bloom-seed.active,
.bloom-seed:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--seed-color), var(--ink) 26%);
  outline-offset: 4px;
  transform: translateY(-3px) scale(1.06);
}

.bloom-audio-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 48px;
  aspect-ratio: 1;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  padding: 0;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

body[data-theme="light"] .bloom-audio-toggle {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(95, 79, 55, 0.12);
}

.bloom-audio-toggle::before {
  content: "⏸";
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.bloom-audio-toggle.paused::before {
  content: "▶";
}

.bloom-audio-toggle:hover,
.bloom-audio-toggle:focus-visible {
  transform: translateY(calc(-50% - 3px)) scale(1.06);
  border-color: color-mix(in srgb, var(--bloom-color, #98d8aa), var(--ink) 24%);
  outline: none;
}

.bloom-scene {
  position: relative;
  z-index: 1;
  min-height: 540px;
  display: grid;
  place-items: center;
  padding: 34px clamp(20px, 4vw, 48px);
}

.bloom-message {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 3;
  max-width: min(720px, calc(100% - 40px));
  color: var(--ink);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(20px, 2.8vw, 32px);
  letter-spacing: 0;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transform: translate(-50%, 10px);
  animation: bloom-message-in 780ms ease forwards;
}

.bloom-empty {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: min(520px, calc(100% - 40px));
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 248, 236, 0.08);
  backdrop-filter: blur(18px);
  font-family: "Noto Serif TC", serif;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 0);
  transition: opacity 280ms ease;
  pointer-events: none;
}

body[data-theme="light"] .bloom-empty {
  background: rgba(255, 255, 255, 0.56);
}

.bloom-lab.entered:not(.has-bloom) .bloom-empty {
  opacity: 1;
}

.bloom-lab.entered:not(.has-bloom) .bloom-palette {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.bloom-lab:not(.has-bloom) .bloom-message {
  animation: none;
  opacity: 0;
}

@keyframes bloom-message-in {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.bloom-palette {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 360ms ease, transform 360ms ease;
  animation: paletteFloat 4s ease-in-out infinite;
}

.bloom-lab:not(.entered) .bloom-palette {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.bloom-lab.entered .bloom-palette {
  pointer-events: none;
}

.bloom-palette span,
.bloom-flower span {
  position: absolute;
  width: 50px;
  height: 92px;
  border-radius: 50%;
  background: var(--petal-color, var(--bloom-color, #98d8aa));
  transform-origin: 25px 66px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--petal-color, var(--bloom-color, #98d8aa)), transparent 62%);
}

.bloom-palette span {
  left: 65px;
  top: 24px;
}

.bloom-flower span {
  left: 75px;
  top: 34px;
}

.bloom-palette span {
  opacity: 0;
  transform: rotate(var(--angle)) translateY(-26px) scale(0);
  animation: palette-bloom 1.4s ease forwards;
}

.bloom-palette span:nth-child(1) { animation-delay: 0.08s; }
.bloom-palette span:nth-child(2) { animation-delay: 0.18s; }
.bloom-palette span:nth-child(3) { animation-delay: 0.28s; }
.bloom-palette span:nth-child(4) { animation-delay: 0.38s; }
.bloom-palette span:nth-child(5) { animation-delay: 0.48s; }
.bloom-palette span:nth-child(6) { animation-delay: 0.58s; }
.bloom-palette span:nth-child(7) { animation-delay: 0.68s; }
.bloom-palette span:nth-child(8) { animation-delay: 0.78s; }

.bloom-palette i,
.bloom-flower i {
  position: absolute;
  left: 69px;
  top: 69px;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: #ffeb85;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.bloom-flower i {
  left: 50%;
  top: 50%;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
}

@keyframes palette-bloom {
  to {
    opacity: 0.92;
    transform: rotate(var(--angle)) translateY(-32px) scale(1);
  }
}

@keyframes paletteFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.04);
  }
}

.bloom-plant {
  position: relative;
  width: 230px;
  display: grid;
  justify-items: center;
  margin-top: 44px;
  transform-origin: 50% 100%;
  opacity: 0;
  transition: opacity 320ms ease;
  animation: bloom-sway 5s ease-in-out infinite;
}

.bloom-lab.has-bloom .bloom-plant {
  opacity: 1;
}

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

.bloom-flower {
  position: relative;
  width: 200px;
  aspect-ratio: 1;
  animation: bloom-breathe 4.6s ease-in-out infinite;
}

@keyframes bloom-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.bloom-flower span {
  opacity: 0;
  transform: rotate(var(--rotate)) translateY(0) scale(0);
}

.bloom-plant.is-blooming .bloom-flower span {
  animation: bloom-petal-open 1.45s ease-out forwards;
}

.bloom-plant.is-blooming .bloom-flower span:nth-child(1) { animation-delay: 0.2s; }
.bloom-plant.is-blooming .bloom-flower span:nth-child(2) { animation-delay: 0.26s; }
.bloom-plant.is-blooming .bloom-flower span:nth-child(3) { animation-delay: 0.32s; }
.bloom-plant.is-blooming .bloom-flower span:nth-child(4) { animation-delay: 0.38s; }
.bloom-plant.is-blooming .bloom-flower span:nth-child(5) { animation-delay: 0.44s; }
.bloom-plant.is-blooming .bloom-flower span:nth-child(6) { animation-delay: 0.5s; }
.bloom-plant.is-blooming .bloom-flower span:nth-child(7) { animation-delay: 0.56s; }
.bloom-plant.is-blooming .bloom-flower span:nth-child(8) { animation-delay: 0.62s; }

@keyframes bloom-petal-open {
  to {
    opacity: 0.94;
    transform: rotate(var(--rotate)) translateY(-32px) scale(1);
  }
}

.bloom-plant.is-blooming .bloom-flower i {
  animation: bloom-center-pop 650ms ease-out 0.88s forwards;
}

@keyframes bloom-center-pop {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.bloom-stem {
  width: 8px;
  height: 0;
  margin-top: -30px;
  border-radius: 999px;
  background: linear-gradient(#9ad78d, #5f9e72);
}

.bloom-plant.is-blooming .bloom-stem {
  animation: bloom-stem-grow 1.12s ease-out forwards;
}

@keyframes bloom-stem-grow {
  to {
    height: 188px;
  }
}

.bloom-card {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(18px, 4vw, 42px);
  width: min(220px, 24vw);
  aspect-ratio: 2 / 3;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px) rotate(2deg);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: none;
}

.bloom-card.show {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  pointer-events: auto;
  cursor: pointer;
}

.bloom-card.show:hover,
.bloom-card.show:focus-visible {
  outline: none;
  transform: translateY(-4px) rotate(0deg) scale(1.02);
  box-shadow:
    var(--shadow),
    0 0 0 2px color-mix(in srgb, var(--bloom-color, #98d8aa), white 18%),
    0 0 34px color-mix(in srgb, var(--bloom-color, #98d8aa), transparent 48%);
}

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

.garden {
  min-height: 92svh;
  padding: clamp(70px, 8.5vw, 108px) clamp(18px, 5vw, 70px);
  background: #07110f;
  overflow: hidden;
}

body[data-theme="light"] .garden {
  background: #f7f0e3;
}

.garden-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 17, 15, 0.78), rgba(7, 17, 15, 0.95)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(0.9);
  opacity: 0.78;
}

body[data-theme="light"] .garden-backdrop {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.72), rgba(247, 240, 227, 0.9)),
    var(--hero-image) center / cover no-repeat;
  opacity: 0.82;
}

.garden-stage {
  width: min(1120px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 18, 14, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

body[data-theme="light"] .garden-stage {
  background: rgba(255, 251, 246, 0.66);
}

.garden-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.seed {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.08);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

body[data-theme="light"] .seed {
  background: rgba(255, 255, 255, 0.5);
}

.seed:hover,
.seed.active {
  background: color-mix(in srgb, var(--seed-color, #e94545), transparent 56%);
  transform: translateY(-2px);
}

.living-garden {
  position: relative;
  min-height: min(62vh, 560px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 248, 236, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(13, 35, 28, 0.2), rgba(3, 10, 8, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 248, 236, 0.02) 0 1px, transparent 1px 80px);
}

body[data-theme="light"] .living-garden {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(180deg, rgba(245, 218, 191, 0.35), rgba(198, 216, 187, 0.42)),
    repeating-linear-gradient(90deg, rgba(71, 83, 63, 0.04) 0 1px, transparent 1px 80px);
}

.garden-message {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  gap: 3px;
  z-index: 2;
}

.garden-message span {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(26px, 4vw, 44px);
}

.garden-message small,
.album-art span,
.track small,
.person small,
.diary-feature span,
.flower-card small {
  color: var(--muted);
}

.grown-flower {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  transform: translate(-50%, 50%) scale(0);
  transform-origin: 50% 100%;
  animation: sprout 900ms cubic-bezier(0.2, 1.15, 0.22, 1) forwards;
}

.grown-flower::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 115%;
  background: linear-gradient(#8bd998, transparent);
  transform: translateX(-50%);
}

.grown-flower::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff8ec 0 9%, transparent 10%),
    radial-gradient(circle at 50% 6%, var(--flower-color) 0 22%, transparent 23%),
    radial-gradient(circle at 88% 28%, var(--flower-color) 0 21%, transparent 22%),
    radial-gradient(circle at 78% 78%, var(--flower-color) 0 21%, transparent 22%),
    radial-gradient(circle at 22% 78%, var(--flower-color) 0 21%, transparent 22%),
    radial-gradient(circle at 12% 28%, var(--flower-color) 0 21%, transparent 22%);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--flower-color), transparent 20%));
  animation: flower-sway 3.6s ease-in-out infinite alternate;
}

@keyframes sprout {
  to {
    transform: translate(-50%, 50%) scale(1);
  }
}

@keyframes flower-sway {
  to {
    transform: rotate(7deg) translateY(-4px);
  }
}

.music {
  background:
    radial-gradient(circle at 26% 30%, rgba(233, 69, 69, 0.16), transparent 32%),
    radial-gradient(circle at 82% 64%, rgba(155, 93, 229, 0.18), transparent 34%),
    #0d121a;
}

body[data-theme="light"] .music {
  background:
    radial-gradient(circle at 26% 30%, rgba(215, 121, 127, 0.2), transparent 32%),
    radial-gradient(circle at 82% 64%, rgba(138, 116, 185, 0.18), transparent 34%),
    #f9f0e7;
}

.album-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(18px, 5vw, 54px);
  align-items: center;
}

.album-art {
  position: relative;
  min-height: 460px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 34px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 248, 236, 0.22), transparent 15%),
    conic-gradient(from 180deg, #e94545, #ffd166, #60d394, #4ecdc4, #4d96ff, #9b5de5, #ffafcc, #e94545);
  box-shadow: var(--shadow);
}

.album-art::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 38%, rgba(7, 17, 15, 0), rgba(7, 17, 15, 0.58) 46%, rgba(7, 17, 15, 0.9)),
    var(--hero-image) center / cover no-repeat;
}

body[data-theme="light"] .album-art::before {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08), rgba(255, 249, 241, 0.38) 48%, rgba(47, 56, 47, 0.2)),
    var(--hero-image) center / cover no-repeat;
}

.album-art span,
.album-art strong {
  position: relative;
  z-index: 1;
}

.album-art strong {
  font-size: clamp(58px, 8vw, 92px);
  line-height: 0.8;
}

.album-art i {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff8ec 0 10%, transparent 11%),
    repeating-conic-gradient(from 0deg, rgba(255, 248, 236, 0.9) 0 8deg, transparent 8deg 16deg);
  animation: rotate-disc 12s linear infinite;
  z-index: 1;
}

@keyframes rotate-disc {
  to {
    transform: rotate(360deg);
  }
}

.track-list {
  display: grid;
  gap: 12px;
}

.track {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 3px 16px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.07);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body[data-theme="light"] .track {
  background: rgba(255, 255, 255, 0.52);
}

.track:hover,
.track.active {
  transform: translateX(8px);
  border-color: color-mix(in srgb, var(--track-color, #ffd166), transparent 36%);
  background: color-mix(in srgb, var(--track-color, #ffd166), transparent 86%);
}

.track span {
  grid-row: span 2;
  color: var(--gold);
  font-weight: 800;
}

.track strong {
  font-size: 18px;
}

.album-player {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.album-console {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
}

.album-console .album-art {
  min-height: 290px;
}

.album-now {
  position: relative;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.07);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background 420ms ease, border-color 420ms ease;
}

body[data-theme="light"] .album-now {
  background: rgba(255, 255, 255, 0.56);
}

.album-now::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 82% 48%, color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 58%), transparent 34%),
    linear-gradient(90deg, transparent 0 48%, color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 80%) 100%);
  opacity: 0;
  transition: opacity 480ms ease;
}

.album-now::after {
  content: "";
  position: absolute;
  right: clamp(-62px, -4vw, -28px);
  bottom: -70px;
  z-index: 0;
  width: min(300px, 42%);
  aspect-ratio: 1;
  background: var(--current-track-flower) center / contain no-repeat;
  opacity: 0;
  transform: translate(22px, 18px) rotate(-30deg) scale(0.9);
  transform-origin: 60% 75%;
  filter: saturate(1.08) drop-shadow(0 24px 38px rgba(0, 0, 0, 0.2));
  -webkit-mask-image: radial-gradient(circle, #000 0 58%, rgba(0, 0, 0, 0.78) 68%, transparent 86%);
  mask-image: radial-gradient(circle, #000 0 58%, rgba(0, 0, 0, 0.78) 68%, transparent 86%);
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.18, 0.84, 0.22, 1);
}

.album-now.has-flower::before {
  opacity: 1;
}

.album-now.has-flower::after {
  opacity: 0.76;
  transform: translate(0, 0) rotate(-30deg) scale(1);
}

.album-title-row {
  width: min(720px, 72%);
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 54px);
}

.album-now.is-long-title .album-title-row {
  position: static;
  display: block;
  width: 100%;
}

.album-now h3 {
  margin: 0;
  max-width: none;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.98;
  flex: 0 0 auto;
}

.album-now.is-long-title h3 {
  max-width: min(100%, 980px);
}

.album-now > * {
  position: relative;
  z-index: 1;
}

.album-now p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
}

.album-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}

.album-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.player-button {
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

body[data-theme="light"] .player-button {
  background: rgba(255, 255, 255, 0.62);
}

.player-button::before {
  color: var(--ink);
  font-size: 18px;
}

.player-button.prev::before {
  content: "⏮";
}

.player-button.next::before {
  content: "⏭";
}

.player-button.play::before {
  content: "⏸";
}

.player-button.play.paused::before {
  content: "▶";
}

.player-button:hover,
.player-button:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--current-track-color, var(--gold)), var(--ink) 24%);
  outline: none;
}

.album-progress-wrap {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.album-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--current-track-color, var(--gold)) 0 var(--progress-ratio, 0%), rgba(255, 248, 236, 0.34) var(--progress-ratio, 0%) 100%);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

body[data-theme="light"] .album-progress {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--current-track-color, var(--gold)), #d7797f 18%) 0 var(--progress-ratio, 0%), rgba(47, 56, 47, 0.18) var(--progress-ratio, 0%) 100%);
}

.album-player .track-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.album-player .track {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.32 / 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  gap: 8px;
  padding: 18px;
  overflow: hidden;
  transform: none;
}

.album-player .track::before {
  content: none;
}

.album-player .track::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  z-index: 0;
  width: 176px;
  aspect-ratio: 1;
  background-image: var(--track-flower);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: saturate(1.08) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22));
  -webkit-mask-image: radial-gradient(circle, #000 0 58%, rgba(0, 0, 0, 0.72) 68%, transparent 86%);
  mask-image: radial-gradient(circle, #000 0 58%, rgba(0, 0, 0, 0.72) 68%, transparent 86%);
  opacity: 0;
  transform: translate(22px, 16px) rotate(-30deg) scale(0.88);
  transform-origin: 60% 75%;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.18, 0.84, 0.22, 1);
}

body[data-theme="light"] .album-player .track::after {
  filter: saturate(1.05) drop-shadow(0 16px 24px rgba(95, 79, 55, 0.16));
}

.album-player .track:hover,
.album-player .track.active {
  transform: translateY(-4px);
}

.album-player .track:hover::after,
.album-player .track.active::after {
  opacity: 0.88;
  transform: translate(0, 0) rotate(-30deg) scale(1);
}

.album-player .track[style*="--track-flower"]:hover::after,
.album-player .track[style*="--track-flower"].active::after {
  opacity: 0.86;
}

.album-player .track.active,
.album-player .track.is-playing {
  border-color: color-mix(in srgb, var(--track-color), white 24%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--track-color), transparent 68%), rgba(255, 248, 236, 0.08)),
    rgba(255, 248, 236, 0.07);
}

body[data-theme="light"] .album-player .track.active,
body[data-theme="light"] .album-player .track.is-playing {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--track-color), transparent 76%), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.56);
}

.track-number {
  position: relative;
  z-index: 2;
  color: color-mix(in srgb, var(--track-color), var(--ink) 28%);
  font-size: 24px;
  font-weight: 900;
}

.album-player .track .track-composer {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  grid-row: auto;
  max-width: calc(100% - 88px);
  color: rgba(255, 248, 236, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.album-player .track strong,
.album-player .track small,
.album-player .track em {
  position: relative;
  z-index: 2;
  max-width: none;
  width: fit-content;
  padding: 0;
  margin-left: 0;
  background: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
  transition: text-shadow 320ms ease;
}

.album-player .track[data-track="0"] strong {
  white-space: normal;
  line-height: 1.15;
}

body[data-theme="light"] .album-player .track strong,
body[data-theme="light"] .album-player .track small,
body[data-theme="light"] .album-player .track em {
  background: transparent;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.86);
}

body[data-theme="light"] .album-player .track .track-composer {
  color: rgba(63, 70, 58, 0.72);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.86);
}

.album-player .track small {
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
}

.album-player .track em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}

.petal-wave {
  position: absolute;
  right: 14px;
  top: 44px;
  z-index: 3;
  display: inline-flex;
  align-items: end;
  gap: 2px;
  width: 76px;
  height: 34px;
  padding: 2px 5px;
  border-radius: 7px;
  background: transparent;
  filter:
    drop-shadow(0 0 4px color-mix(in srgb, var(--track-color), white 14%))
    drop-shadow(0 0 12px color-mix(in srgb, var(--track-color), transparent 26%));
  opacity: 0;
  transition: opacity 180ms ease;
}

.petal-wave b {
  width: 4px;
  height: var(--bar-height, 6px);
  border-radius: 99px;
  background: color-mix(in srgb, var(--track-color), white 30%);
  opacity: var(--bar-opacity, 0.5);
  transform-origin: 50% 100%;
  transition: height 90ms linear, opacity 90ms linear;
}

.track.is-playing .petal-wave {
  opacity: 0.92;
}

.album-eq.petal-wave {
  position: relative;
  top: auto;
  right: auto;
  z-index: 2;
  flex: 0 0 auto;
  width: clamp(132px, 13vw, 172px);
  height: clamp(48px, 5vw, 62px);
  padding: 5px 6px;
  gap: 2px;
  opacity: 0.92;
  transform: none;
  filter:
    drop-shadow(0 0 5px color-mix(in srgb, var(--current-track-color, var(--gold)), white 18%))
    drop-shadow(0 0 16px color-mix(in srgb, var(--current-track-color, var(--gold)), transparent 18%));
}

.album-eq.petal-wave b {
  width: 5px;
  background: color-mix(in srgb, var(--current-track-color, var(--gold)), white 30%);
}

.album-eq-meta.petal-wave {
  display: none;
  position: relative;
  top: auto;
  right: auto;
  width: clamp(96px, 9vw, 124px);
  height: clamp(34px, 3.6vw, 46px);
  padding: 4px 5px;
}

.album-now.is-long-title .album-eq-title.petal-wave {
  display: none;
}

.album-now.is-long-title .album-eq-meta.petal-wave {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: 2px;
}

body.album-paused .album-eq.petal-wave {
  opacity: 0.48;
}

body.album-paused .sound-bars i {
  animation-play-state: paused;
}

.flowers {
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 175, 204, 0.16), transparent 28%),
    radial-gradient(circle at 80% 74%, rgba(78, 205, 196, 0.12), transparent 32%),
    #10130e;
}

body[data-theme="light"] .flowers {
  background:
    radial-gradient(circle at 12% 24%, rgba(215, 121, 127, 0.2), transparent 28%),
    radial-gradient(circle at 80% 74%, rgba(105, 154, 134, 0.18), transparent 32%),
    #fff7ed;
}

.flower-actions {
  width: min(1180px, 100%);
  margin: -92px auto 38px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 45;
  pointer-events: none;
}

.flip-all-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(78, 205, 196, 0.1)),
    rgba(9, 24, 20, 0.64);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-weight: 800;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body[data-theme="light"] .flip-all-button {
  border-color: rgba(71, 83, 63, 0.22);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(200, 134, 25, 0.14), rgba(105, 154, 134, 0.12)),
    rgba(255, 251, 246, 0.76);
  box-shadow: 0 14px 38px rgba(95, 79, 55, 0.16);
}

.flip-all-button::before {
  content: "";
  position: absolute;
  inset: -14px -18px;
  border-radius: 999px;
}

.flip-all-button:hover,
.flip-all-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.28), rgba(255, 175, 204, 0.14)),
    rgba(9, 24, 20, 0.78);
  outline: none;
}

body[data-theme="light"] .flip-all-button:hover,
body[data-theme="light"] .flip-all-button:focus-visible {
  border-color: rgba(200, 134, 25, 0.56);
  background:
    linear-gradient(135deg, rgba(200, 134, 25, 0.22), rgba(215, 121, 127, 0.12)),
    rgba(255, 251, 246, 0.92);
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.flower-card {
  position: relative;
  aspect-ratio: 2 / 3;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  perspective: 1000px;
  cursor: pointer;
}

.flower-card::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid color-mix(in srgb, var(--card-color), white 28%);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card-color), transparent 42%),
    0 0 34px color-mix(in srgb, var(--card-color), transparent 42%);
  opacity: 0;
  transform: scale(0.975);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.flower-card:hover::after,
.flower-card:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.flower-card:focus-visible {
  outline: none;
}

.flower-card.flipped .front {
  transform: rotateY(180deg);
}

.flower-card.flipped .back {
  transform: rotateY(360deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--card-color), transparent 55%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-color), transparent 72%), rgba(255, 248, 236, 0.07)),
    rgba(13, 22, 18, 0.8);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

body[data-theme="light"] .card-face {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-color), transparent 78%), rgba(255, 255, 255, 0.46)),
    rgba(255, 251, 246, 0.82);
}

.card-face i {
  width: clamp(110px, 42%, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff8ec 0 10%, transparent 11%),
    radial-gradient(circle at 50% 6%, var(--card-color) 0 22%, transparent 23%),
    radial-gradient(circle at 90% 50%, var(--card-color) 0 22%, transparent 23%),
    radial-gradient(circle at 50% 94%, var(--card-color) 0 22%, transparent 23%),
    radial-gradient(circle at 10% 50%, var(--card-color) 0 22%, transparent 23%);
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--card-color), transparent 24%));
}

.card-face strong {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: clamp(26px, 3vw, 40px);
  text-align: center;
  color: color-mix(in srgb, var(--card-color), white 38%);
  text-shadow: 0 0 24px color-mix(in srgb, var(--card-color), transparent 42%);
}

body[data-theme="light"] .card-face strong {
  color: color-mix(in srgb, var(--card-color), #2f382f 18%);
  text-shadow: 0 8px 24px rgba(255, 255, 255, 0.7);
}

.back {
  transform: rotateY(180deg);
  padding: 0;
  background: #f8efe2;
}

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

.gardeners {
  background:
    radial-gradient(circle at 72% 12%, rgba(255, 209, 102, 0.13), transparent 28%),
    #081714;
}

body[data-theme="light"] .gardeners {
  background:
    radial-gradient(circle at 72% 12%, rgba(233, 179, 94, 0.22), transparent 28%),
    #f5efe5;
}

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

.person {
  padding: 24px;
}

.avatar {
  width: 92px;
  aspect-ratio: 1;
  display: block;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--gold), var(--line) 60%);
  background: linear-gradient(135deg, var(--gold), var(--aqua), var(--rose));
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--gold), transparent 88%),
    0 18px 42px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  object-position: center;
}

body[data-theme="light"] .avatar {
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.62),
    0 16px 36px rgba(95, 79, 55, 0.18);
}

.person h3 {
  line-height: 1.15;
}

.person p {
  max-width: 28ch;
}

.person small {
  display: block;
  margin-top: 18px;
  font-family: "Noto Serif TC", serif;
  line-height: 1.8;
}

.diary {
  background:
    radial-gradient(circle at 20% 70%, rgba(77, 150, 255, 0.16), transparent 30%),
    #11131b;
}

body[data-theme="light"] .diary {
  background:
    radial-gradient(circle at 20% 70%, rgba(138, 116, 185, 0.18), transparent 30%),
    #fbf4ea;
}

.diary-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 18px;
}

.diary-feature {
  height: 348px;
  min-height: 0;
  margin-top: 40px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 12px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.08), rgba(255, 175, 204, 0.08)),
    var(--hero-image) center / cover no-repeat;
}

.diary-feature span {
  color: rgba(255, 248, 236, 0.62);
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-theme="light"] .diary-feature {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.18), rgba(47, 56, 47, 0.18)),
    var(--hero-image) center / cover no-repeat;
}

body[data-theme="light"] .diary-feature span {
  color: rgba(47, 56, 47, 0.72);
}

.diary-feature strong {
  display: -webkit-box;
  align-self: center;
  height: 2.7em;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

.diary-feature strong.is-single-line {
  align-self: center;
  height: 1.35em;
  -webkit-line-clamp: 1;
}

body[data-theme="light"] .diary-feature strong {
  color: #fffaf3;
  text-shadow: 0 10px 34px rgba(47, 56, 47, 0.58);
}

.diary-feature strong.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.daily-phrase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.daily-phrase-button {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.daily-phrase-button::before {
  content: "↻";
  display: block;
  color: currentColor;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
}

.daily-phrase-button:hover,
.daily-phrase-button:focus-visible {
  outline: none;
  transform: rotate(26deg) scale(1.06);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.44));
}

body[data-theme="light"] .daily-phrase-button {
  color: #fff;
  text-shadow: 0 0 18px rgba(47, 56, 47, 0.28);
}

.timeline {
  --diary-record-height: 108px;
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}

.timeline article {
  padding: 24px;
}

.timeline article.timeline-entry {
  position: relative;
  display: block;
  height: var(--diary-record-height);
  padding: 0;
  overflow: hidden;
  transition:
    height 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
  will-change: height;
}

.timeline-entry[hidden] {
  display: none !important;
}

.timeline-entry:not(.is-open) {
  height: var(--diary-record-height);
}

.timeline.is-sliding-next .timeline-entry.is-page-visible {
  animation: timeline-slide-in-next 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.timeline.is-sliding-prev .timeline-entry.is-page-visible {
  animation: timeline-slide-in-prev 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.timeline.is-sliding-next .timeline-empty-note:not([hidden]) {
  animation: timeline-slide-in-next 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.timeline.is-sliding-prev .timeline-empty-note:not([hidden]) {
  animation: timeline-slide-in-prev 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes timeline-slide-in-next {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes timeline-slide-in-prev {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-entry-toggle {
  position: absolute;
  top: 13px;
  right: 17px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.timeline-entry-toggle:hover,
.timeline-entry-toggle:focus-visible {
  color: var(--gold);
  outline: none;
}

body[data-theme="light"] .timeline-entry-toggle:hover,
body[data-theme="light"] .timeline-entry-toggle:focus-visible {
  color: #be8129;
}

.timeline-entry-heading {
  min-width: 0;
  padding: 18px 72px 0 24px;
}

.timeline-entry-title {
  display: block;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.2;
}

.timeline-entry-arrow {
  width: 10px;
  height: 10px;
  display: block;
  margin: 0;
  color: var(--gold);
  transform: rotate(-45deg);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-entry-arrow::before {
  display: block;
  width: 100%;
  height: 100%;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  content: "";
}

.timeline-entry.is-open .timeline-entry-arrow {
  transform: rotate(45deg);
}

.timeline-entry-body {
  padding: 24px 56px 16px 24px;
}

.timeline-entry-summary {
  margin: 0;
  max-height: 2.1em;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.9;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-entry.is-open .timeline-entry-summary {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
}

.timeline-entry-content {
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-entry.is-open .timeline-entry-content {
  opacity: 1;
  transform: translateY(0);
}

.timeline-entry-content-inner {
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.timeline-entry-content-inner p {
  margin: 0;
  white-space: pre-line;
}

.timeline-meta {
  position: static;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 28px;
  color: rgba(226, 225, 214, 0.72);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  pointer-events: auto;
}

body[data-theme="light"] .timeline-meta {
  color: rgba(83, 92, 77, 0.72);
}

.timeline-range {
  max-width: min(260px, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-sort-toggle {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 206, 99, 0.34);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.06);
  color: var(--gold);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.timeline-sort-toggle:hover,
.timeline-sort-toggle:focus-visible {
  background: rgba(255, 206, 99, 0.1);
  border-color: rgba(255, 206, 99, 0.58);
  outline: none;
}

.timeline-empty-note {
  min-height: var(--empty-note-height, var(--diary-record-height));
  display: grid;
  place-items: center;
  padding: 22px 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  font-size: inherit;
  line-height: 1.9;
  text-align: center;
  white-space: pre-line;
}

.timeline-empty-note[hidden] {
  display: none !important;
}

body[data-theme="light"] .timeline-empty-note {
  background: transparent;
  color: var(--muted);
}

.timeline-pager {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.timeline-page-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease;
}

.timeline-page-button:hover,
.timeline-page-button:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}

.timeline-page-button:disabled {
  cursor: default;
  opacity: 0.28;
  transform: none;
}

.timeline-page-button span {
  width: 12px;
  height: 12px;
  display: block;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
}

.timeline-page-prev span {
  transform: rotate(135deg);
}

.timeline-page-next span {
  transform: rotate(-45deg);
}

.timeline-page-current {
  min-width: 44px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.timeline time {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 800;
}

.version-archive {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.07);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow-anchor: none;
}

body[data-theme="light"] .version-archive {
  background: var(--panel);
}

.version-toggle {
  width: 100%;
  min-height: var(--diary-record-height);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 220ms ease;
}

.version-toggle:hover,
.version-toggle:focus-within {
  background: rgba(255, 248, 236, 0.04);
  outline: none;
}

.version-summary {
  min-width: 0;
  display: block;
  padding: 24px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.version-summary:focus-visible,
.version-arrow:focus-visible,
.version-item-toggle:focus-visible {
  outline: 1px solid rgba(255, 206, 99, 0.72);
  outline-offset: -4px;
}

.version-toggle span {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.version-toggle strong {
  display: block;
  color: var(--gold);
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  line-height: 1.2;
}

.version-toggle small {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.9;
}

.version-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 38px 24px 18px;
}

.version-arrow {
  width: 28px;
  height: 28px;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
}

.version-arrow i,
.version-item-arrow {
  width: 13px;
  height: 13px;
  display: block;
  color: var(--gold);
  font-style: normal;
  transform: rotate(-45deg);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.version-all-toggle i {
  position: static;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.version-all-toggle i:first-child {
  transform: rotate(-45deg);
}

.version-all-toggle i + i {
  margin-left: -5px;
  transform: rotate(-45deg);
}

.version-archive.is-all-open .version-all-toggle i:first-child {
  transform: rotate(45deg);
}

.version-archive.is-all-open .version-all-toggle i + i {
  transform: rotate(45deg);
}

.version-arrow i::before,
.version-item-arrow::before {
  display: block;
  width: 100%;
  height: 100%;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  content: "";
}

.version-archive.is-open:not(.is-all-open) .version-list-toggle i,
.version-item.is-open .version-item-arrow {
  transform: rotate(45deg);
}

.version-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}

.version-archive.is-open .version-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.version-panel-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
  padding: 0 24px;
  border-top: 1px solid transparent;
  transition: padding 360ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease;
}

.version-archive.is-open .version-panel-inner {
  padding: 20px 24px 24px;
  border-color: var(--line);
}

.timeline .version-item {
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.timeline .version-item:first-child {
  border-top: 0;
}

.version-item-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 18px 20px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  overflow-anchor: none;
}

.version-item-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.version-item h3 {
  margin: 0;
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.timeline .version-item-date {
  display: inline;
  margin: 0;
  color: rgba(180, 184, 178, 0.72);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

body[data-theme="light"] .timeline .version-item-date {
  color: rgba(104, 111, 101, 0.68);
}

.version-item p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.version-item-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.version-item.is-open .version-item-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.version-item-content-inner {
  min-height: 0;
  overflow: hidden;
  padding-right: 42px;
  overflow-anchor: none;
}

.version-item.is-open .version-item-content-inner {
  padding-bottom: 22px;
}

.contact {
  min-height: 74svh;
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(7, 17, 15, 0.72), rgba(7, 17, 15, 0.95)),
    var(--hero-image) center bottom / cover no-repeat;
}

body[data-theme="light"] .contact {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.68), rgba(251, 244, 234, 0.92)),
    var(--hero-image) center bottom / cover no-repeat;
}

.coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.coming-soon-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.coming-soon-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 209, 102, 0.12), transparent 34%),
    rgba(5, 12, 10, 0.58);
  backdrop-filter: blur(14px);
}

body[data-theme="light"] .coming-soon-backdrop {
  background:
    radial-gradient(circle at 50% 50%, rgba(215, 121, 127, 0.16), transparent 34%),
    rgba(255, 248, 238, 0.56);
}

.coming-soon-card {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 34px 34px;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.11), rgba(78, 205, 196, 0.06)),
    rgba(9, 24, 20, 0.78);
  box-shadow:
    0 0 54px rgba(255, 209, 102, 0.16),
    0 28px 90px rgba(0, 0, 0, 0.36);
  text-align: center;
  transform: translateY(14px) scale(0.94);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.coming-soon-modal.is-open .coming-soon-card {
  transform: translateY(0) scale(1);
}

body[data-theme="light"] .coming-soon-card {
  color: #263229;
  border-color: rgba(71, 83, 63, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 231, 214, 0.62)),
    rgba(255, 251, 246, 0.86);
  box-shadow:
    0 0 58px rgba(215, 121, 127, 0.2),
    0 26px 80px rgba(95, 79, 55, 0.18);
}

.coming-soon-card h3 {
  margin: 8px 0 10px;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 0.95;
}

.coming-soon-card p:not(.eyebrow) {
  margin: 0 auto;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  font-size: 16px;
  line-height: 1.75;
}

.coming-soon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.08);
  color: var(--ink);
}

.coming-soon-close::before,
.coming-soon-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.coming-soon-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.coming-soon-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body[data-theme="light"] .coming-soon-close {
  border-color: rgba(71, 83, 63, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

.theme-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.theme-toggle-button {
  position: relative;
  width: 58px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform-origin: center;
  transition: transform 320ms ease;
}

.theme-toggle-button::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}

.theme-toggle-button::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--theme-flower-center), transparent 42%) 0 28%, transparent 72%);
  filter: blur(10px);
  opacity: 0.72;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 260ms ease, background 260ms ease;
}

.theme-flower-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--theme-flower-center) 0 11%, transparent 12%),
    radial-gradient(circle at 50% 8%, var(--theme-flower-petal) 0 22%, transparent 23%),
    radial-gradient(circle at 92% 50%, var(--theme-flower-petal) 0 22%, transparent 23%),
    radial-gradient(circle at 50% 92%, var(--theme-flower-petal) 0 22%, transparent 23%),
    radial-gradient(circle at 8% 50%, var(--theme-flower-petal) 0 22%, transparent 23%);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
  transition: background 260ms ease;
}

.theme-toggle-button:hover,
.theme-toggle-button:focus-visible {
  outline: none;
  transform: translateY(-3px) scale(1.04);
}

.theme-toggle-button:hover::after,
.theme-toggle-button:focus-visible::after {
  opacity: 0.98;
}

.theme-toggle-label {
  min-width: 54px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--glass);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

body[data-theme="light"] .theme-toggle-label {
  box-shadow: 0 10px 28px rgba(95, 79, 55, 0.14);
}

html.performance-lite .theme-toggle-button::after {
  filter: none;
  opacity: 0.58;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--theme-flower-center), transparent 56%) 0 30%, transparent 74%);
}

html.performance-lite .theme-flower-visual {
  animation: theme-flower-native-spin 18s linear infinite;
  contain: paint;
  transform: translate3d(0, 0, 0);
}

html.performance-lite .theme-toggle-button.is-boosting {
  animation: theme-flower-native-boost 560ms cubic-bezier(0.2, 0.86, 0.18, 1) 1;
  transform-origin: center;
}

html.performance-lite .sound-toggle,
html.performance-lite .mini-player-panel,
html.performance-lite .site-header {
  transform: translateZ(0);
}

html.performance-lite body.scroll-optimizing .site-header,
html.performance-lite body.scroll-optimizing .sound-toggle,
html.performance-lite body.scroll-optimizing .mini-player-panel,
html.performance-lite body.scroll-optimizing .flip-all-button,
html.performance-lite body.scroll-optimizing .theme-toggle-label,
html.performance-lite body.scroll-optimizing .bloom-toast {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.performance-lite body.scroll-optimizing .album-eq.petal-wave,
html.performance-lite body.scroll-optimizing .petal-wave,
html.performance-lite body.scroll-optimizing .theme-toggle-button::after {
  filter: none !important;
}

@media (min-width: 981px) {
  body {
    zoom: 0.88;
  }

  .hero {
    min-height: 92svh;
    padding-top: 78px;
    padding-bottom: 58px;
  }

  .hero-content {
    transform: scale(0.88);
    transform-origin: center;
    padding-bottom: 76px;
  }

  .hero-logo {
    width: clamp(190px, 18vw, 300px);
  }

  h1 {
    font-size: clamp(64px, 8.8vw, 122px);
  }

  .hero-kicker {
    font-size: clamp(19px, 2.45vw, 30px);
  }

  .about,
  .bloom-experience,
  .music,
  .flowers,
  .gardeners,
  .diary,
  .contact {
    padding-top: clamp(56px, 6.6vw, 88px);
    padding-bottom: clamp(56px, 6.6vw, 88px);
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: clamp(38px, 5vw, 66px);
  }

  .section-heading p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.7;
  }

  .album-player,
  .about-grid,
  .people-grid,
  .card-grid,
  .world-map {
    width: min(1060px, 100%);
  }

  .album-console .album-art {
    min-height: 250px;
  }

  .album-now {
    padding: 26px;
  }

  .album-now h3 {
    font-size: clamp(30px, 3.7vw, 52px);
  }

  .album-player .track {
    min-height: 0;
    padding: 15px;
  }

  .track-number {
    font-size: 21px;
  }

  .album-player .track .track-composer {
    top: 15px;
    right: 15px;
    max-width: calc(100% - 78px);
    font-size: 11px;
  }

  .track strong {
    font-size: 16px;
  }

  .album-player .track em {
    font-size: 11px;
  }

  .petal-wave {
    top: 42px;
    right: 12px;
  }

  .album-eq.petal-wave {
    top: auto;
    right: auto;
  }

  .garden {
    min-height: 86svh;
    padding-top: clamp(58px, 7vw, 90px);
    padding-bottom: clamp(58px, 7vw, 90px);
  }
}

.bloom-toast {
  position: fixed;
  right: 22px;
  bottom: 108px;
  z-index: 76;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 20, 16, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.bloom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .about-grid,
  .album-layout,
  .album-console,
  .diary-layout {
    grid-template-columns: 1fr;
  }

  .bloom-lab {
    min-height: 760px;
  }

  .bloom-scene {
    align-content: start;
    gap: 22px;
    min-height: 660px;
    padding-top: 94px;
  }

  .bloom-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(190px, 52vw);
    margin-top: 18px;
  }

  .world-map {
    grid-template-columns: 1fr;
  }

  .map-line {
    width: 1px;
    height: 26px;
    justify-self: center;
  }

  .card-grid,
  .people-grid,
  .album-player .track-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flower-actions {
    margin: -24px auto 26px;
    justify-content: center;
  }

  .theme-toggle {
    bottom: 76px;
  }

  .bloom-toast {
    bottom: 156px;
  }

  .hero {
    min-height: 92svh;
    padding-bottom: 126px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    place-items: center;
    min-height: 98svh;
    padding: 108px 18px 126px;
  }

  .hero-logo {
    width: clamp(150px, 48vw, 210px);
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(68px, 22vw, 118px);
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.75;
    margin-top: 12px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .color-gate {
    width: calc(100% - 24px);
    justify-content: center;
    flex-wrap: wrap;
    bottom: 54px;
  }

  .scroll-note {
    display: none;
  }

  .about,
  .bloom-experience,
  .music,
  .flowers,
  .gardeners,
  .diary,
  .contact,
  .garden {
    padding-inline: 16px;
  }

  .card-grid,
  .people-grid,
  .album-player .track-list {
    grid-template-columns: 1fr;
  }

  .album-console .album-art {
    min-height: 280px;
  }

  .album-progress-wrap {
    grid-template-columns: 40px 1fr 40px;
  }

  .flip-all-button {
    width: min(100%, 260px);
  }

  .bloom-lab {
    min-height: 820px;
  }

  .bloom-controls {
    gap: 10px;
    padding: 14px 66px;
  }

  .bloom-seed {
    width: 42px;
  }

  .bloom-scene {
    min-height: 700px;
    padding-inline: 14px;
  }

  .bloom-message {
    top: 24px;
    font-size: 20px;
  }

  .bloom-plant {
    margin-top: 58px;
    transform: scale(0.9);
  }

  .theme-toggle {
    right: 14px;
  }

  .album-art {
    min-height: 360px;
  }

  .flower-card {
    min-height: 0;
  }

  .contact-links a {
    width: 100%;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  html.custom-cursor-enabled,
  html.custom-cursor-enabled *,
  html.custom-cursor-enabled *::before,
  html.custom-cursor-enabled *::after {
    cursor: auto !important;
  }

  .cursor-orb {
    display: none;
  }

  .ambient-layer {
    z-index: 35;
  }

  .site-header {
    grid-template-columns: minmax(0, auto) minmax(112px, auto);
    gap: 10px;
    padding: 10px 12px 0;
    pointer-events: none;
  }

  .brand,
  .sound-cluster,
  .nav-links {
    pointer-events: auto;
  }

  .brand {
    gap: 6px;
    min-width: 0;
    padding: 4px 7px 4px 3px;
    border-radius: 999px;
    background: rgba(9, 24, 20, 0.12);
    backdrop-filter: blur(14px);
  }

  body[data-theme="light"] .brand {
    background: rgba(255, 251, 246, 0.44);
  }

  .brand-mark {
    width: 38px;
    height: 30px;
  }

  .brand-label {
    min-width: 0;
    max-width: 88px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sound-cluster {
    justify-self: end;
  }

  .sound-toggle {
    min-height: 36px;
    max-width: min(48vw, 178px);
    padding: 0 10px;
    gap: 7px;
  }

  .sound-cluster.is-long-title .sound-toggle {
    max-width: min(54vw, 210px);
  }

  .mini-track-title,
  .sound-cluster.is-long-title .mini-track-title {
    max-width: min(34vw, 142px);
    font-size: 13px;
  }

  .sound-bars {
    height: 14px;
    gap: 2px;
  }

  .sound-bars i {
    width: 3px;
  }

  .mini-player-panel {
    position: fixed;
    top: 58px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 14px;
    transform-origin: top right;
  }

  .mini-player-title {
    grid-template-columns: minmax(0, 1fr) 20px;
  }

  .mini-title-viewport {
    font-size: 16px;
  }

  .mini-player-controls {
    justify-content: center;
  }

  .mini-progress-wrap {
    grid-template-columns: 34px 1fr 34px;
  }

  .nav-links {
    top: auto;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: none;
    z-index: 78;
    justify-content: flex-start;
    gap: 2px;
    padding: 6px;
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-width: 58px;
    padding: 9px 11px;
    font-size: 12px;
    text-align: center;
  }

  .hero {
    min-height: 100svh;
    padding: 86px 18px 146px;
  }

  .hero-media {
    background-position: 36% center;
    animation: none;
    transform: scale(1.03);
  }

  body[data-theme="light"] .hero-media {
    background-position: 31% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 12, 11, 0.2), rgba(4, 12, 11, 0.28) 46%, rgba(4, 12, 11, 0.88)),
      radial-gradient(circle at 50% 42%, rgba(255, 248, 236, 0.12), transparent 40%);
  }

  body[data-theme="light"] .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 249, 241, 0.28), rgba(255, 249, 241, 0.15) 44%, rgba(251, 244, 234, 0.9)),
      radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.44), transparent 42%);
  }

  .hero-content {
    width: 100%;
    padding-bottom: 92px;
  }

  .hero-logo {
    width: clamp(120px, 38vw, 174px);
    margin-bottom: 8px;
  }

  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(58px, 17vw, 82px);
    line-height: 0.88;
  }

  .hero-kicker {
    margin-top: 16px;
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.08;
  }

  .hero-copy {
    width: min(330px, 100%);
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .primary-action,
  .ghost-action,
  .contact-links a,
  .contact-links button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .color-gate {
    bottom: 62px;
    width: min(330px, calc(100% - 34px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px 11px;
    justify-items: center;
  }

  .gate-flower {
    width: 44px;
  }

  .gate-flower::after {
    display: none;
  }

  .intro-band {
    padding: 32px 18px;
  }

  .wide-copy {
    justify-content: flex-start;
    gap: 14px 22px;
    font-size: clamp(31px, 12vw, 50px);
    line-height: 1;
  }

  .about,
  .bloom-experience,
  .music,
  .flowers,
  .gardeners,
  .diary,
  .contact,
  .garden {
    padding: 72px 16px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(46px, 14vw, 66px);
    line-height: 0.92;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.75;
  }

  .about-grid,
  .people-grid,
  .card-grid,
  .album-player .track-list,
  .album-console,
  .album-layout,
  .diary-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .origin-block,
  .person,
  .timeline article {
    padding: 22px;
  }

  .origin-block h3,
  .person h3 {
    font-size: 28px;
  }

  .origin-block p,
  .person p,
  .timeline p {
    font-size: 15px;
    line-height: 1.78;
  }

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

  .map-node {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
  }

  .map-line {
    width: 1px;
    height: 18px;
    justify-self: center;
  }

  .bloom-lab {
    min-height: 720px;
    border-radius: 8px;
  }

  .bloom-intro {
    padding: 24px;
  }

  .bloom-intro h3 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .bloom-intro p:not(.eyebrow) {
    font-size: 15px;
  }

  .bloom-controls {
    justify-content: center;
    gap: 9px;
    padding: 14px 60px 14px 14px;
  }

  .bloom-seed {
    width: 40px;
  }

  .bloom-audio-toggle {
    right: 12px;
    width: 40px;
  }

  .bloom-scene {
    min-height: 620px;
    padding: 24px 12px 28px;
  }

  .bloom-message {
    top: 22px;
    max-width: calc(100% - 28px);
    font-size: clamp(18px, 6vw, 25px);
  }

  .bloom-empty {
    bottom: 18px;
    width: calc(100% - 28px);
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
  }

  .bloom-palette {
    width: 150px;
  }

  .bloom-palette span,
  .bloom-flower span {
    width: 42px;
    height: 78px;
    transform-origin: 21px 56px;
  }

  .bloom-palette span {
    left: 54px;
    top: 20px;
  }

  .bloom-palette i,
  .bloom-flower i {
    left: 50%;
    top: 50%;
    width: 36px;
    transform: translate(-50%, -50%);
  }

  .bloom-plant {
    width: 188px;
    margin-top: 48px;
  }

  .bloom-flower {
    width: 172px;
  }

  .bloom-flower span {
    left: 65px;
    top: 31px;
  }

  .bloom-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(160px, 44vw);
    margin: 18px auto 0;
  }

  .garden {
    min-height: auto;
  }

  .garden-toolbar {
    padding: 10px;
  }

  .seed {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .living-garden {
    min-height: 480px;
  }

  .garden-message {
    top: 18px;
    left: 18px;
  }

  .album-player {
    gap: 18px;
  }

  .album-art {
    min-height: 220px;
    padding: 24px;
  }

  .album-console .album-art {
    min-height: 220px;
  }

  .album-art strong {
    font-size: clamp(48px, 16vw, 70px);
  }

  .album-art i {
    width: 62px;
  }

  .album-now {
    min-height: 360px;
    padding: 24px 18px;
  }

  .album-title-row,
  .album-now.is-long-title .album-title-row {
    width: 100%;
    display: grid;
    gap: 10px;
  }

  .album-now h3 {
    font-size: clamp(44px, 15vw, 66px);
  }

  .album-now.is-long-title h3 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .album-meta-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .album-controls {
    justify-content: center;
  }

  .player-button {
    width: 46px;
  }

  .album-progress-wrap {
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
  }

  .album-eq.petal-wave,
  .album-eq-meta.petal-wave,
  .album-now.is-long-title .album-eq-meta.petal-wave {
    width: 116px;
    height: 42px;
  }

  .album-player .track-list {
    gap: 10px;
  }

  .album-player .track {
    aspect-ratio: auto;
    min-height: 116px;
    padding: 16px;
  }

  .album-player .track::after {
    right: -18px;
    bottom: -54px;
    width: 150px;
  }

  .track-number {
    font-size: 24px;
  }

  .album-player .track .track-composer {
    top: 16px;
    right: 16px;
    max-width: calc(100% - 76px);
    font-size: 11px;
  }

  .album-player .track strong {
    font-size: 24px;
  }

  .album-player .track small,
  .album-player .track em {
    font-size: 13px;
  }

  .flower-actions {
    width: 100%;
    margin: -14px 0 20px;
    justify-content: center;
  }

  .flip-all-button {
    min-height: 48px;
    width: min(100%, 220px);
  }

  .card-grid {
    gap: 16px;
  }

  .flower-card {
    width: min(100%, 260px);
    justify-self: center;
  }

  .card-face {
    padding: 22px;
  }

  .card-face i {
    width: 128px;
  }

  .card-face strong {
    font-size: 30px;
  }

  .people-grid {
    gap: 14px;
  }

  .person {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px 16px;
    align-items: center;
  }

  .avatar {
    grid-row: span 3;
    width: 82px;
    margin: 0;
  }

  .person h3 {
    margin-bottom: 0;
    font-size: 28px;
  }

  .person p {
    max-width: none;
    font-size: 14px;
  }

  .person small {
    margin-top: 0;
    font-size: 13px;
  }

  .diary-layout {
    gap: 14px;
  }

  .diary-feature {
    height: 320px;
    margin-top: 0;
    padding: 24px;
  }

  .diary-feature strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .timeline {
    --diary-record-height: 118px;
  }

  .timeline-meta {
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
  }

  .timeline-range {
    max-width: 64%;
  }

  .timeline-entry-heading {
    padding: 18px 56px 0 18px;
  }

  .timeline-entry-body {
    padding: 22px 46px 16px 18px;
  }

  .timeline-entry-title {
    font-size: 17px;
  }

  .timeline-entry-summary,
  .timeline-entry-content-inner p {
    font-size: 14px;
    line-height: 1.78;
  }

  .timeline-entry-toggle {
    top: 12px;
    right: 10px;
  }

  .timeline-empty-note {
    padding: 18px;
    font-size: 14px;
  }

  .version-toggle {
    min-height: 118px;
  }

  .version-summary {
    padding: 20px 18px;
  }

  .version-actions {
    gap: 12px;
    padding: 20px 18px 20px 4px;
  }

  .version-panel-inner {
    padding-inline: 18px;
  }

  .version-archive.is-open .version-panel-inner {
    padding: 18px;
  }

  .version-item-toggle {
    padding: 18px 4px 18px 0;
  }

  .version-item-content-inner {
    padding-right: 20px;
  }

  .contact {
    min-height: 86svh;
  }

  .contact-links {
    width: min(320px, 100%);
    margin-inline: auto;
    gap: 10px;
  }

  .contact-links a,
  .contact-links button {
    width: 100%;
  }

  .theme-toggle {
    right: 14px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    transform: scale(0.86);
    transform-origin: bottom right;
  }

  .bloom-toast {
    right: 12px;
    bottom: calc(132px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 420px) {
  .section-heading h2 {
    font-size: clamp(40px, 15vw, 56px);
  }

  .hero {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 70px);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions a {
    flex: 1 1 136px;
  }

  .color-gate {
    width: min(300px, calc(100% - 28px));
    gap: 8px;
  }

  .gate-flower {
    width: 40px;
  }

  .wide-copy {
    font-size: clamp(28px, 11vw, 44px);
  }

  .bloom-controls {
    gap: 8px;
    padding-left: 10px;
  }

  .bloom-seed {
    width: 36px;
  }

  .album-now h3 {
    font-size: clamp(38px, 14vw, 56px);
  }

  .person {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .avatar {
    grid-row: auto;
    width: 92px;
  }
}

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