:root {
  --bg-1: #140912;
  --bg-2: #2a1220;
  --bg-3: #5b3142;
  --bg-4: #b98d7d;
  --accent: #e8cb97;
  --accent-soft: rgba(232, 203, 151, 0.18);
  --rose: #c88c8d;
  --ink: #fbf4ee;
  --muted: rgba(251, 244, 238, 0.72);
  --panel: rgba(24, 12, 19, 0.42);
  --panel-border: rgba(255, 245, 236, 0.14);
  --shadow: 0 32px 100px rgba(16, 5, 11, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 220, 187, 0.18), transparent 20%),
    radial-gradient(circle at 78% 16%, rgba(200, 140, 141, 0.12), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(255, 226, 193, 0.12), transparent 26%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 36%, var(--bg-3) 72%, var(--bg-4) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Aptos", "Segoe UI", sans-serif;
}

button,
input,
audio {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: max(48px, env(safe-area-inset-top)) 18px
    max(30px, env(safe-area-inset-bottom)) 18px;
  isolation: isolate;
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 50%;
  filter: blur(34px);
  pointer-events: none;
  z-index: -3;
  opacity: 0.58;
}

.orb-a {
  top: 4vh;
  left: -10vw;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(241, 220, 187, 0.24), transparent 66%);
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-b {
  right: -14vw;
  bottom: 10vh;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(200, 140, 141, 0.2), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 248, 244, 0.12) 1px, transparent 0),
    linear-gradient(135deg, rgba(255, 244, 238, 0.03), transparent 42%, rgba(255, 225, 203, 0.03) 100%);
  background-size: 32px 32px, 100% 100%;
  mask-image: radial-gradient(circle at center, black 46%, transparent 100%);
  opacity: 0.08;
  pointer-events: none;
  z-index: -2;
}

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

.decor-layer::before,
.decor-layer::after {
  content: "";
  position: absolute;
  inset: 0;
}

.decor-layer::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 240, 226, 0.12), transparent 16%),
    radial-gradient(circle at 74% 14%, rgba(232, 203, 151, 0.1), transparent 18%),
    radial-gradient(circle at 62% 78%, rgba(255, 236, 214, 0.1), transparent 18%),
    radial-gradient(circle at 12% 24%, rgba(255, 249, 241, 0.75) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 26% 12%, rgba(232, 203, 151, 0.45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 20%, rgba(255, 244, 238, 0.65) 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 84% 34%, rgba(232, 203, 151, 0.36) 0 1px, transparent 1.8px),
    radial-gradient(circle at 18% 78%, rgba(255, 249, 241, 0.5) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 66% 74%, rgba(255, 244, 238, 0.48) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 90% 68%, rgba(232, 203, 151, 0.42) 0 1px, transparent 1.7px);
  opacity: 0.44;
}

.decor-layer .mist {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(52px);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: mistDrift 18s ease-in-out infinite;
}

.mist-a {
  left: 10vw;
  top: 18vh;
  width: 340px;
  height: 164px;
  background: radial-gradient(circle, rgba(255, 239, 223, 0.28), transparent 76%);
}

.mist-b {
  right: 12vw;
  top: 22vh;
  width: 300px;
  height: 142px;
  background: radial-gradient(circle, rgba(232, 203, 151, 0.22), transparent 78%);
  animation-delay: -7s;
}

.mist-c {
  right: 22vw;
  bottom: 12vh;
  width: 280px;
  height: 132px;
  background: radial-gradient(circle, rgba(255, 240, 226, 0.2), transparent 78%);
  animation-delay: -12s;
}

.decor-layer::after {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 248, 241, 0.42) 48%, rgba(255, 248, 241, 0.42) 52%, transparent 52%) 14% 30% / 20px 20px no-repeat,
    linear-gradient(transparent 48%, rgba(255, 248, 241, 0.42) 48%, rgba(255, 248, 241, 0.42) 52%, transparent 52%) 14% 30% / 20px 20px no-repeat,
    linear-gradient(90deg, transparent 48%, rgba(232, 203, 151, 0.32) 48%, rgba(232, 203, 151, 0.32) 52%, transparent 52%) 76% 18% / 16px 16px no-repeat,
    linear-gradient(transparent 48%, rgba(232, 203, 151, 0.32) 48%, rgba(232, 203, 151, 0.32) 52%, transparent 52%) 76% 18% / 16px 16px no-repeat,
    linear-gradient(90deg, transparent 48%, rgba(255, 248, 241, 0.28) 48%, rgba(255, 248, 241, 0.28) 52%, transparent 52%) 82% 62% / 14px 14px no-repeat,
    linear-gradient(transparent 48%, rgba(255, 248, 241, 0.28) 48%, rgba(255, 248, 241, 0.28) 52%, transparent 52%) 82% 62% / 14px 14px no-repeat;
  opacity: 0.3;
  animation: twinkleShift 9s ease-in-out infinite;
}

.balloon {
  position: absolute;
  display: block;
  border-radius: 50% 50% 46% 46%;
  opacity: 0.4;
  filter: blur(0.2px);
  box-shadow:
    inset -10px -16px 24px rgba(74, 28, 44, 0.24),
    inset 12px 12px 18px rgba(255, 248, 241, 0.18),
    0 18px 50px rgba(19, 8, 14, 0.14);
  animation: balloonFloat 14s ease-in-out infinite;
}

.balloon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 10px;
  height: 12px;
  transform: translateX(-50%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: rgba(232, 203, 151, 0.42);
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 1px;
  height: 110px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 244, 238, 0.28), transparent 85%);
  opacity: 0.7;
}

.balloon-a {
  --balloon-tilt: -9deg;
  left: 5vw;
  top: 16vh;
  width: 96px;
  height: 118px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 252, 248, 0.42), transparent 20%),
    radial-gradient(circle at 58% 68%, rgba(245, 214, 168, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(241, 220, 187, 0.72), rgba(167, 108, 103, 0.42));
  animation-delay: -3s;
}

.balloon-b {
  --balloon-tilt: 8deg;
  right: 9vw;
  top: 10vh;
  width: 84px;
  height: 104px;
  background:
    radial-gradient(circle at 38% 26%, rgba(255, 250, 244, 0.36), transparent 20%),
    radial-gradient(circle at 54% 70%, rgba(232, 203, 151, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(214, 155, 156, 0.62), rgba(113, 58, 77, 0.34));
  animation-delay: -7s;
}

.balloon-c {
  --balloon-tilt: 11deg;
  right: 18vw;
  bottom: 11vh;
  width: 72px;
  height: 92px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 251, 247, 0.34), transparent 20%),
    radial-gradient(circle at 58% 68%, rgba(245, 214, 168, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(206, 168, 132, 0.58), rgba(104, 61, 49, 0.3));
  animation-delay: -11s;
}

.hero {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 0 10px;
  text-align: left;
  display: grid;
  gap: 0;
  position: relative;
}

.hero-title {
  font-size: clamp(2.8rem, 8.8vw, 5rem);
  line-height: 1.02;
  margin: 4px 0 0;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.04em;
  position: relative;
  isolation: isolate;
  max-width: max-content;
  font-family: "STKaiti", "KaiTi", "Songti SC", "STSong", "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-title::before {
  content: "";
  position: absolute;
  left: 0.15em;
  right: 0.2em;
  bottom: 0.08em;
  height: 0.32em;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(232, 203, 151, 0.2), transparent 72%);
  filter: blur(18px);
  z-index: -1;
}

.hero-title span {
  display: inline-block;
  background:
    linear-gradient(180deg, #fffaf5 0%, #e8cb97 52%, #fbf4ee 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.8px rgba(255, 247, 239, 0.12);
  text-shadow:
    0 10px 24px rgba(10, 5, 11, 0.28),
    0 0 12px rgba(232, 203, 151, 0.08);
}

.tip {
  color: var(--muted);
  line-height: 1.6;
}

.stage-wrap {
  width: min(100%, 1120px);
  margin: 8px auto 0;
  display: grid;
  gap: 14px;
}

.stage-panel,
.control-panel {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 247, 242, 0.12), rgba(255, 243, 238, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.stage-panel {
  min-height: 64vh;
  padding: 34px 16px 40px;
}

.spotlight {
  position: absolute;
  inset: 4% 8% auto;
  height: 30%;
  background: radial-gradient(circle, rgba(232, 203, 151, 0.1), transparent 70%);
  filter: blur(42px);
}

.gallery-shell {
  position: relative;
  height: 58vh;
  min-height: 460px;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82vw, 760px);
  height: min(82vw, 760px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 244, 238, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(232, 203, 151, 0.03),
    0 0 42px rgba(200, 140, 141, 0.04);
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 244, 238, 0.04);
  opacity: 0.28;
}

.orbit-ring::after {
  inset: 22%;
  opacity: 0.16;
}

.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(34vw, 180px);
  aspect-ratio: 3 / 4;
  transform-origin: center center;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 242, 0.26);
  box-shadow:
    0 18px 36px rgba(18, 7, 13, 0.22),
    0 0 14px rgba(232, 203, 151, 0.05);
  background: rgba(42, 16, 28, 0.88);
  cursor: pointer;
  transition:
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms ease,
    opacity 300ms ease,
    border-color 300ms ease;
}

.orbit-card::after,
.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.14) 58%, transparent 76%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.orbit-card img,
.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orbit-card.is-active {
  border-color: rgba(232, 203, 151, 0.34);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(232, 203, 151, 0.12);
  opacity: 1;
}

.orbit-card:not(.is-active) {
  opacity: 0.82;
}

.photo-index {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 10, 16, 0.42);
  border: 1px solid rgba(255, 247, 242, 0.1);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.orbit-card.is-active .photo-index,
.orbit-card:hover .photo-index {
  opacity: 1;
  transform: translateY(0);
}

.featured-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(42vw, 320px);
  aspect-ratio: 3 / 4.2;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 242, 0.28);
  background: rgba(43, 16, 29, 0.92);
  box-shadow:
    0 32px 78px rgba(16, 5, 11, 0.4),
    0 0 42px rgba(232, 203, 151, 0.12);
  animation: featuredBreath 5.4s ease-in-out infinite;
}

.featured-image {
  position: absolute;
  inset: 0;
}

.featured-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 90px 20px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 10, 16, 0.14) 26%, rgba(20, 10, 16, 0.9) 76%);
}

.featured-kicker {
  margin: 0;
  color: rgba(232, 203, 151, 0.9);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.featured-label {
  margin: 8px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 600;
}

.featured-caption {
  margin: 10px 0 0;
  color: rgba(251, 244, 238, 0.6);
  font-size: 0.84rem;
  line-height: 1.7;
}

.center-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(58vw, 400px);
  height: min(58vw, 400px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(232, 203, 151, 0.08), transparent 42%),
    radial-gradient(circle, rgba(200, 140, 141, 0.07), transparent 60%);
  filter: blur(42px);
  animation: pulse 4.8s ease-in-out infinite;
}

.floor-reflection {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18px;
  height: 24%;
  background: radial-gradient(circle, rgba(255, 241, 232, 0.05), transparent 68%);
  filter: blur(30px);
}

.control-panel {
  min-height: 160px;
  padding: 16px 16px 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: end;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 247, 242, 0.06), rgba(255, 243, 238, 0.015)),
    rgba(24, 12, 19, 0.22);
  border-color: rgba(255, 245, 236, 0.08);
  box-shadow: 0 18px 56px rgba(16, 5, 11, 0.16);
}

.control-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(232, 203, 151, 0.54), rgba(200, 140, 141, 0.08));
}

.side-note {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.tip {
  margin: 0;
  max-width: none;
  font-size: 0.68rem;
  line-height: 1;
  color: rgba(232, 203, 151, 0.82);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: right;
}

.album-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(232, 203, 151, 0.035), transparent 42%),
    rgba(255, 248, 244, 0.015);
  border: 1px solid rgba(255, 247, 242, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 248, 244, 0.025);
  justify-items: end;
}

.album-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  width: min(100%, 186px);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 248, 244, 0.05), transparent 22%),
    rgba(42, 16, 28, 0.9);
  box-shadow:
    0 20px 40px rgba(16, 5, 11, 0.18),
    inset 0 1px 0 rgba(255, 248, 244, 0.05);
}

.album-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 700ms ease,
    transform 900ms ease;
}

.album-photo.is-visible {
  opacity: 1;
  transform: scale(1);
}

.album-photo.fade-out {
  opacity: 0;
  transform: scale(1.06);
}

.album-glow {
  position: absolute;
  inset: auto 10% 10% 10%;
  height: 30%;
  background: radial-gradient(circle, rgba(232, 203, 151, 0.1), transparent 72%);
  filter: blur(34px);
  pointer-events: none;
}

.album-meta {
  display: grid;
  gap: 4px;
  width: min(100%, 186px);
  padding: 0 2px;
  justify-items: end;
}

.album-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: right;
}

.album-caption {
  margin: 0;
  color: rgba(251, 244, 238, 0.52);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-align: right;
}

.particle-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

.particle {
  position: absolute;
  bottom: -10vh;
  border-radius: 999px;
  opacity: 0.4;
  animation: floatUp linear infinite;
  box-shadow: 0 0 12px currentColor;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(8vw, 3vh, 0) scale(1.15);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

@keyframes featuredBreath {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.985);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.015);
  }
}

@keyframes balloonFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--balloon-tilt, 0deg));
  }

  50% {
    transform: translate3d(0, -16px, 0) rotate(calc(var(--balloon-tilt, 0deg) + 2deg));
  }
}

@keyframes twinkleShift {
  0%,
  100% {
    opacity: 0.2;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.38;
    transform: translate3d(0, -4px, 0) scale(1.02);
  }
}

@keyframes mistDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.18;
  }

  50% {
    transform: translate3d(0, -14px, 0) scale(1.08);
    opacity: 0.34;
  }
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }

  15% {
    opacity: 0.7;
  }

  100% {
    transform: translate3d(var(--drift-x), -120vh, 0) scale(1.2);
    opacity: 0;
  }
}

@media (min-width: 860px) {
  .stage-wrap {
    grid-template-columns: minmax(0, 2.05fr) minmax(220px, 0.55fr);
    align-items: stretch;
  }

  .control-panel {
    min-height: 100%;
    align-self: end;
  }

  .album-stage,
  .album-meta {
    width: min(100%, 172px);
  }

  .hero {
    padding-top: 24px;
  }

  .featured-card {
    width: 330px;
  }
}

@media (max-height: 820px) {
  .app-shell {
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .hero {
    padding: 12px 0 8px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 6.4vw, 4.1rem);
  }

  .stage-wrap {
    margin-top: 14px;
  }

  .stage-panel {
    min-height: 56vh;
    padding-top: 28px;
  }

  .gallery-shell {
    height: 50vh;
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    text-align: left;
    padding: 14px 0 8px;
  }

  .stage-panel {
    min-height: 52vh;
    padding: 20px 8px 30px;
    border-radius: 24px;
  }

  .gallery-shell {
    min-height: 360px;
  }

  .orbit-ring {
    width: min(96vw, 460px);
    height: min(96vw, 460px);
  }

  .orbit-card {
    width: min(29vw, 124px);
    border-radius: 20px;
  }

  .featured-card {
    width: min(54vw, 250px);
    border-radius: 20px;
  }

  .featured-meta {
    padding: 64px 14px 14px;
  }

  .control-panel {
    min-height: auto;
    padding: 16px 16px 18px;
  }

  .tip {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
  }

  .album-title {
    font-size: 1.2rem;
  }

  .balloon-a {
    left: -4vw;
    top: 22vh;
    width: 74px;
    height: 94px;
  }

  .balloon-b {
    right: -2vw;
    top: 14vh;
    width: 68px;
    height: 86px;
  }

  .balloon-c {
    right: 6vw;
    bottom: 16vh;
    width: 58px;
    height: 74px;
  }

  .mist-a {
    left: -8vw;
    top: 24vh;
    width: 210px;
    height: 102px;
  }

  .mist-b {
    right: -8vw;
    top: 22vh;
    width: 188px;
    height: 90px;
  }

  .mist-c {
    right: 12vw;
    bottom: 18vh;
    width: 176px;
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .decor-layer::after,
  .mist,
  .balloon,
  .center-glow,
  .particle,
  .hero-title span {
    animation: none !important;
  }
}
