
:root {
  --ink: #f4f7ff;
  --muted: #9ca7bb;
  --line: rgba(172, 196, 255, 0.14);
  --surface: #090c13;
  --blue: #8bb2ff;
  --violet: #a782ff;
  --pointer-x: 50vw;
  --pointer-y: 45vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #05070b;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #05070b;
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: rgba(139, 178, 255, 0.26);
  color: white;
}

.cursor-glow {
  position: fixed;
  z-index: 50;
  left: var(--pointer-x);
  top: var(--pointer-y);
  width: 420px;
  height: 420px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 150, 255, 0.055), transparent 68%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(190, 210, 255, 0.09);
  animation: header-in 0.8s 0.1s ease-out both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-script {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  letter-spacing: -0.04em;
  color: #fff;
}

.brand-chip {
  padding: 4px 8px 3px;
  border: 1px solid rgba(197, 215, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #b7c8e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #aab3c5;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-header nav > a {
  transition: color 0.25s ease;
}

.site-header nav > a:hover {
  color: #fff;
}

.site-header .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(195, 213, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #e7ecf8;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid rgba(168, 194, 255, 0.12);
  background: #05070b;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, #05070b 95%);
  pointer-events: none;
}

.hero-background,
.motion-grid,
.grain {
  position: absolute;
  inset: 0;
}

.motion-grid {
  z-index: 2;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to bottom, transparent 1%, black 18%, black 72%, transparent 98%);
}

.grain {
  z-index: 3;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.aurora {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora-one {
  width: 56vw;
  height: 48vw;
  left: 48%;
  top: 0;
  background: radial-gradient(circle, rgba(72, 126, 255, 0.24), rgba(44, 82, 180, 0.08) 48%, transparent 72%);
  animation: drift-one 11s ease-in-out infinite alternate;
}

.aurora-two {
  width: 42vw;
  height: 42vw;
  right: -12%;
  bottom: -14%;
  background: radial-gradient(circle, rgba(139, 94, 255, 0.22), rgba(56, 88, 206, 0.06) 48%, transparent 72%);
  animation: drift-two 14s ease-in-out infinite alternate;
}

.halo {
  position: absolute;
  z-index: 1;
  width: 740px;
  height: 740px;
  top: 50%;
  right: 8%;
  border: 1px solid rgba(137, 175, 255, 0.1);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 120px rgba(73, 118, 244, 0.06), 0 0 120px rgba(73, 118, 244, 0.04);
}

.halo::before,
.halo::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(137, 175, 255, 0.08);
  border-radius: 50%;
}

.halo::before { inset: 12%; }
.halo::after { inset: 26%; }

.signal-node {
  position: absolute;
  z-index: 4;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(178, 205, 255, 0.8);
  background: rgba(107, 151, 255, 0.28);
  box-shadow: 0 0 12px rgba(130, 171, 255, 0.8);
  animation: signal-pulse 4.8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 148px 0 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.86fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.hero-copy {
  max-width: 670px;
}

.hero-kicker {
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa9c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8babff;
  box-shadow: 0 0 12px #7d9fff;
  animation: blink 2s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  color: #f7f9ff;
  font-size: clamp(54px, 6.2vw, 94px);
  font-weight: 420;
  letter-spacing: -0.075em;
  line-height: 1.03;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(105deg, #f8faff 8%, #afc9ff 45%, #9d82ff 92%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 28px rgba(102, 143, 255, 0.18));
}

.hero-description {
  max-width: 530px;
  margin: 31px 0 0;
  color: #9aa5b9;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.015em;
}

.personality-bubbles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  width: min(570px, 100%);
  min-height: 132px;
  margin-top: 22px;
}

.personality-bubble {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 116px;
  min-height: 58px;
  padding: 15px 25px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: #334260;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98), transparent 32%),
    linear-gradient(135deg, rgba(220, 235, 255, 0.83), rgba(241, 222, 255, 0.68));
  box-shadow:
    inset -8px -10px 20px rgba(108, 133, 230, 0.12),
    inset 7px 8px 18px rgba(255, 255, 255, 0.72),
    0 12px 32px rgba(84, 110, 190, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bubble-float 4.8s ease-in-out infinite;
  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
}

.personality-bubble::before {
  position: absolute;
  top: 10px;
  left: 20%;
  width: 30%;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  filter: blur(2px);
  content: "";
  transform: rotate(-8deg);
}

.personality-bubble:hover {
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset -8px -10px 20px rgba(108, 133, 230, 0.13),
    inset 7px 8px 18px rgba(255, 255, 255, 0.82),
    0 16px 38px rgba(84, 110, 190, 0.22);
}

.personality-bubble:focus-visible {
  outline: 2px solid #aac3ff;
  outline-offset: 4px;
}

.personality-bubble span {
  position: relative;
  z-index: 1;
}

.bubble-one {
  min-width: 150px;
  min-height: 68px;
  animation-delay: -0.8s;
}

.bubble-two {
  min-width: 132px;
  animation-delay: -2.6s;
}

.bubble-three {
  min-width: 100px;
  min-height: 52px;
  animation-delay: -1.7s;
}

.bubble-four {
  min-width: 138px;
  min-height: 64px;
  animation-delay: -3.5s;
}

.personality-bubble.is-popped {
  animation: bubble-pop 0.62s cubic-bezier(0.15, 0.72, 0.28, 1) forwards;
  pointer-events: none;
}

.bubble-particle {
  --particle-x: 0px;
  --particle-y: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  background: linear-gradient(135deg, #fff, #8faeff);
  box-shadow: 0 0 12px rgba(129, 159, 255, 0.9);
  pointer-events: none;
}

.personality-bubble.is-popped .bubble-particle {
  animation: particle-burst 0.72s 0.08s ease-out forwards;
}

.particle-one {
  --particle-x: -58px;
  --particle-y: -36px;
}

.particle-two {
  --particle-x: -64px;
  --particle-y: 22px;
}

.particle-three {
  --particle-x: -12px;
  --particle-y: 48px;
}

.particle-four {
  --particle-x: 56px;
  --particle-y: 32px;
}

.particle-five {
  --particle-x: 62px;
  --particle-y: -25px;
}

.particle-six {
  --particle-x: 10px;
  --particle-y: -50px;
}

@keyframes bubble-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.5deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(0.8deg);
  }
}

@keyframes bubble-pop {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  38% {
    opacity: 0.96;
    transform: scale(1.14);
  }
  72% {
    opacity: 0.18;
    transform: scale(1.34);
    filter: blur(1px);
  }
  100% {
    opacity: 0;
    transform: scale(1.48);
    filter: blur(5px);
  }
}

@keyframes particle-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--particle-x)),
        calc(-50% + var(--particle-y))
      )
      scale(0.15);
  }
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-button {
  min-width: 142px;
  padding: 14px 17px 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(211, 222, 255, 0.52);
  border-radius: 8px;
  background: rgba(228, 235, 255, 0.94);
  color: #11141c;
  font-size: 13px;
  font-weight: 580;
  box-shadow: 0 8px 38px rgba(87, 124, 230, 0.12);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 46px rgba(87, 124, 230, 0.24);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #69768d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.availability i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79d6ae;
  box-shadow: 0 0 10px rgba(121, 214, 174, 0.65);
}

.melody-console {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  border: 1px solid rgba(174, 199, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(21, 27, 42, 0.78), rgba(6, 8, 13, 0.66));
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
}

.melody-console:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg) translateY(-4px);
  border-color: rgba(174, 199, 255, 0.3);
}

.melody-console::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 8%, rgba(128, 171, 255, 0.35), transparent 46%, rgba(164, 113, 255, 0.2), transparent 86%);
  opacity: 0.42;
  filter: blur(13px);
}

.console-topbar {
  min-height: 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(174, 199, 255, 0.11);
}

.console-topbar p {
  margin: 0;
  color: #6e7b93;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #384056;
}

.window-dots span:first-child { background: #7d5166; }
.window-dots span:nth-child(2) { background: #796f4d; }
.window-dots span:last-child { background: #467061; }

.console-status {
  justify-self: end;
  color: #7ea58e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.console-body {
  position: relative;
  min-height: 448px;
  padding: 34px;
  display: grid;
  grid-template-columns: 144px 1fr;
  grid-template-rows: auto 98px auto;
  gap: 28px 30px;
  overflow: hidden;
}

.console-body::after {
  content: "SWEETJIAYI";
  position: absolute;
  right: -10px;
  bottom: -21px;
  color: rgba(194, 210, 255, 0.035);
  font-family: Didot, "Times New Roman", serif;
  font-size: 74px;
  font-style: italic;
  letter-spacing: -0.06em;
}

.disc {
  position: relative;
  width: 144px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(180, 202, 255, 0.15);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(152, 180, 255, 0.08) 0 1px, transparent 1px 8px), radial-gradient(circle at 36% 30%, #283457, #0a0d16 54%, #020306 76%);
  box-shadow: inset 0 0 28px rgba(119, 150, 255, 0.08), 0 0 42px rgba(52, 91, 203, 0.1);
  animation: spin 18s linear infinite;
}

.disc-ring {
  position: absolute;
  inset: 19%;
  border: 1px solid rgba(197, 216, 255, 0.15);
  border-radius: 50%;
}

.disc-label {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 234, 255, 0.18);
  border-radius: 50%;
  background: #101528;
  color: #dbe5ff;
  font-family: Didot, serif;
  font-size: 17px;
  font-style: italic;
}

.track-info {
  align-self: center;
}

.track-info span {
  color: #71809b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.17em;
}

.track-info strong {
  margin: 12px 0 7px;
  display: block;
  color: #edf2ff;
  font-family: Didot, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
}

.track-info p {
  margin: 0;
  color: #748098;
  font-size: 11px;
}

.equalizer {
  grid-column: 1 / -1;
  height: 98px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 17px 15px;
  border-top: 1px solid rgba(170, 196, 255, 0.1);
  border-bottom: 1px solid rgba(170, 196, 255, 0.1);
}

.equalizer i {
  flex: 1;
  min-width: 2px;
  border-radius: 3px;
  background: linear-gradient(to top, rgba(123, 159, 255, 0.2), rgba(181, 200, 255, 0.78));
  transform-origin: center;
  animation: equalize 1.7s ease-in-out infinite alternate;
}

.console-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
}

.console-note span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(165, 191, 255, 0.16);
  border-radius: 50%;
  color: #7585a5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.console-note p {
  margin: 2px 0 0;
  color: #768298;
  font-size: 12px;
  line-height: 1.75;
}

.enter {
  animation: enter-up 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}

.enter-one { animation-delay: 0.18s; }
.enter-two { animation-delay: 0.28s; }
.enter-three { animation-delay: 0.42s; }
.enter-four { animation-delay: 0.56s; }
.enter-five { animation-delay: 0.68s; animation-duration: 1.1s; }

.scroll-cue {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #58647a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 22px;
  overflow: hidden;
  background: rgba(176, 199, 255, 0.14);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 100%;
  height: 50%;
  background: #a8bded;
  animation: scroll-line 2s ease-in-out infinite;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-section {
  padding: 150px 0 164px;
  background: linear-gradient(180deg, #05070b, #070a10);
}

.section-index {
  margin: 0 0 50px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(171, 195, 247, 0.12);
  color: #627089;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
}

.intro-grid h2,
.section-heading h2,
.closing-content h2 {
  margin: 0;
  color: #edf2ff;
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 380;
  letter-spacing: -0.06em;
  line-height: 1.16;
}

.intro-copy {
  align-self: end;
}

.intro-copy p {
  margin: 0;
  color: #929db1;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
}

.intro-copy strong {
  color: #c8d7f5;
  font-family: Didot, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
}

.intro-copy .placeholder-note {
  margin-top: 24px;
  color: #5d687c;
  font-size: 12px;
}

.message-board-preview {
  display: grid;
  gap: 15px;
}

.message-board-preview label {
  display: grid;
  gap: 7px;
  color: #806e7d;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.message-board-preview input,
.message-board-preview textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(109, 76, 117, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: #382c3b;
  font: inherit;
  resize: vertical;
  backdrop-filter: blur(14px);
}

.message-board-preview button {
  justify-self: start;
  padding: 12px 18px;
  border: 1px solid rgba(206, 70, 128, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, #eb609d, #7267d1);
  color: white;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.cards-section {
  padding: 132px 0 160px;
  border-top: 1px solid rgba(169, 194, 255, 0.1);
  background: #070a10;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 76px;
}

.section-heading .section-index {
  width: 100%;
}

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

.story-card {
  position: relative;
  min-height: 480px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(172, 196, 255, 0.13);
  border-radius: 14px;
  background: #090c12;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.story-card:hover {
  transform: translateY(-8px);
  border-color: rgba(207, 220, 255, 0.34);
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.4);
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(0.82) contrast(1.02) brightness(0.82);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.card-1 .card-photo { object-position: center 42%; }
.card-2 .card-photo { object-position: center 34%; }
.card-3 .card-photo { object-position: center 32%; }

.story-card:hover .card-photo {
  transform: scale(1.055);
  filter: saturate(0.94) contrast(1.02) brightness(0.88);
}

.card-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 12, 0.05) 24%, rgba(4, 7, 12, 0.34) 58%, rgba(4, 7, 12, 0.92) 100%),
    linear-gradient(135deg, rgba(108, 147, 255, 0.08), transparent 44%);
  pointer-events: none;
}

.card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.card-number {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(223, 232, 255, 0.32);
  border-radius: 50%;
  background: rgba(4, 7, 13, 0.3);
  color: rgba(236, 242, 255, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  backdrop-filter: blur(10px);
}

.card-copy h3 {
  margin: 0;
  color: #f4f7ff;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(30px, 2.6vw, 40px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.closing-section {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(169, 194, 255, 0.1);
  background: #05070b;
  scroll-margin-top: 24px;
}

.closing-glow {
  position: absolute;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  border: 1px solid rgba(145, 178, 255, 0.09);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 126, 232, 0.13), rgba(78, 60, 180, 0.05) 38%, transparent 68%);
  box-shadow: inset 0 0 150px rgba(89, 125, 238, 0.05);
  animation: closing-breathe 7s ease-in-out infinite alternate;
}

.closing-glow::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(145, 178, 255, 0.08);
  border-radius: 50%;
}

.closing-content {
  position: relative;
  z-index: 2;
  padding: 90px 24px;
  text-align: center;
}

.closing-content > p {
  margin: 0 0 24px;
  color: #75839d;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.closing-content h2 {
  margin-bottom: 24px;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-style: italic;
}

.wechat-label {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(192, 211, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #b7c7e8;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
}

footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 108px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid rgba(169, 194, 255, 0.1);
  color: #566175;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

footer p { margin: 0; }
footer > span { justify-self: end; }

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(32px);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.card-2 { transition-delay: 0.1s; }
.card-3 { transition-delay: 0.2s; }

@keyframes header-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes enter-up {
  from { opacity: 0; filter: blur(10px); transform: translateY(26px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes drift-one {
  from { transform: translate3d(-8%, -5%, 0) scale(0.94); }
  to { transform: translate3d(8%, 8%, 0) scale(1.08); }
}

@keyframes drift-two {
  from { transform: translate3d(0, 8%, 0) scale(0.9); }
  to { transform: translate3d(-14%, -6%, 0) scale(1.08); }
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  48% { opacity: 1; transform: scale(1.45); }
}

@keyframes blink {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

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

@keyframes equalize {
  0% { transform: scaleY(0.3); opacity: 0.42; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes scroll-line {
  0% { transform: translateY(-130%); }
  70%, 100% { transform: translateY(230%); }
}

@keyframes closing-breathe {
  from { transform: scale(0.93); opacity: 0.65; }
  to { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 1040px) {
  .hero-content {
    grid-template-columns: 1fr 420px;
    gap: 46px;
  }

  .hero h1 { font-size: clamp(52px, 7vw, 76px); }
  .console-body { padding: 28px; grid-template-columns: 122px 1fr; }
  .disc { width: 122px; }
}

@media (max-width: 860px) {
  .site-header nav > a:not(.nav-cta) { display: none; }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 150px;
    padding-bottom: 140px;
  }

  .hero-copy { max-width: 680px; }
  .melody-console { max-width: 620px; justify-self: start; transform: none; }
  .melody-console:hover { transform: translateY(-4px); }
  .halo { width: 620px; height: 620px; right: -32%; top: 32%; }
  .scroll-cue { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 50px; }
  .intro-copy { max-width: 520px; }
  .card-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 400px; }
}

@media (max-width: 600px) {
  .site-header,
  .hero-content,
  .section-shell,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header { height: 72px; }
  .site-header .nav-cta { padding: 9px 11px 9px 13px; gap: 10px; font-size: 10px; }
  .brand-script { font-size: 21px; }
  .brand-chip { font-size: 8px; }

  .hero-content {
    padding-top: 126px;
    padding-bottom: 90px;
    gap: 66px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 66px);
    letter-spacing: -0.075em;
  }

  .hero-description { font-size: 14px; line-height: 1.8; }
  .personality-bubbles { gap: 10px; min-height: 122px; margin-top: 20px; }
  .personality-bubble { min-width: 104px; min-height: 52px; padding: 13px 19px; font-size: 11px; }
  .bubble-one { min-width: 130px; min-height: 60px; }
  .bubble-three { min-width: 88px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .melody-console { border-radius: 12px; }
  .console-topbar { padding: 0 13px; }
  .console-topbar p { display: none; }
  .console-body { min-height: 410px; padding: 24px; grid-template-columns: 92px 1fr; gap: 25px 22px; }
  .disc { width: 92px; }
  .track-info strong { font-size: 19px; }
  .equalizer { gap: 3px; }
  .console-body::after { font-size: 52px; }

  .intro-section,
  .cards-section { padding: 104px 0; }
  .section-index { margin-bottom: 38px; }
  .intro-grid h2,
  .section-heading h2,
  .closing-content h2 { font-size: 39px; }
  .section-heading { margin-bottom: 48px; }
  .story-card { min-height: 390px; padding: 25px; }
  .closing-section { min-height: 70vh; }

  footer {
    min-height: 144px;
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  footer p { display: none; }
}

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

/* Sketchbook theme */

:root {
  --ink: #281f2d;
  --muted: #6f6174;
  --line: rgba(104, 73, 119, 0.16);
  --surface: #fffdf9;
  --blue: #4f66c6;
  --violet: #984bb0;
}

html,
body {
  background: #fbf8f2;
  color: var(--ink);
}

body {
  background-image:
    radial-gradient(circle at 18% 10%, rgba(255, 191, 215, 0.22), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(182, 202, 255, 0.23), transparent 31%);
}

main {
  position: relative;
  isolation: isolate;
}

main::before {
  position: fixed;
  z-index: -2;
  inset: -5%;
  background:
    linear-gradient(rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0.91)),
    url("./assets/melody-sketchbook-wide.jpg") center top / cover no-repeat;
  content: "";
  animation: paper-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

::selection {
  background: rgba(246, 113, 170, 0.24);
  color: #241b28;
}

.cursor-glow {
  width: 470px;
  height: 470px;
  background:
    radial-gradient(circle at 42% 44%, rgba(255, 111, 175, 0.2), transparent 32%),
    radial-gradient(circle at 58% 56%, rgba(103, 135, 255, 0.18), transparent 52%);
  mix-blend-mode: multiply;
  filter: blur(8px);
}

.site-header {
  top: 14px;
  height: 66px;
  padding: 0 20px;
  border: 1px solid rgba(86, 61, 96, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 36px rgba(78, 52, 78, 0.1);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.brand-script {
  color: #2f2033;
  text-shadow: 2px 2px 0 rgba(248, 129, 178, 0.15);
}

.brand-chip {
  border-color: rgba(115, 82, 127, 0.2);
  background: rgba(246, 210, 227, 0.42);
  color: #7b3d64;
}

.site-header nav {
  color: #6d5d70;
}

.site-header nav > a:hover {
  color: #d33e79;
}

.site-header .nav-cta {
  border-color: rgba(217, 80, 138, 0.22);
  background: linear-gradient(135deg, rgba(255, 240, 247, 0.92), rgba(237, 242, 255, 0.92));
  color: #733554;
  box-shadow: 0 6px 18px rgba(214, 76, 134, 0.08);
}

.hero {
  border-bottom-color: rgba(102, 71, 112, 0.12);
  background: transparent;
}

.hero::after {
  z-index: 5;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(255, 253, 249, 0.96) 96%);
}

.hero-background {
  background-image:
    linear-gradient(90deg, rgba(255, 253, 249, 0.42), rgba(255, 253, 249, 0.12)),
    url("./assets/melody-sketchbook-wide.jpg");
  background-position: 48% center;
  background-size: cover;
  animation: sketchbook-pan 24s ease-in-out infinite alternate;
}

.hero-background::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 253, 249, 0.8) 0%,
    rgba(255, 253, 249, 0.61) 36%,
    rgba(255, 253, 249, 0.18) 64%,
    rgba(255, 253, 249, 0.34) 100%
  );
  content: "";
}

.motion-grid {
  display: none;
}

.grain {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.aurora {
  z-index: 2;
  filter: blur(54px);
  mix-blend-mode: multiply;
  opacity: 0.64;
}

.aurora-one {
  background: radial-gradient(circle, rgba(255, 143, 190, 0.34), rgba(255, 213, 123, 0.12) 48%, transparent 72%);
}

.aurora-two {
  background: radial-gradient(circle, rgba(116, 145, 255, 0.28), rgba(180, 119, 226, 0.13) 48%, transparent 72%);
}

.halo {
  z-index: 2;
  border-color: rgba(216, 74, 132, 0.19);
  box-shadow: inset 0 0 120px rgba(255, 157, 197, 0.1), 0 0 100px rgba(113, 139, 230, 0.08);
}

.halo::before,
.halo::after {
  border-color: rgba(82, 105, 199, 0.15);
}

.signal-node {
  z-index: 4;
  width: 9px;
  height: 9px;
  border-color: rgba(224, 60, 128, 0.72);
  border-radius: 2px;
  background: rgba(255, 136, 185, 0.35);
  box-shadow: 0 0 18px rgba(227, 65, 133, 0.42);
  transform: rotate(45deg);
}

.hero-content {
  z-index: 10;
}

.hero-copy {
  padding: 40px 42px 42px;
  border: 1px solid rgba(101, 71, 110, 0.13);
  border-radius: 30px 74px 34px 26px;
  background: rgba(255, 254, 251, 0.78);
  box-shadow:
    0 28px 70px rgba(74, 48, 74, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.hero-kicker {
  color: #7b6477;
}

.live-dot {
  background: #ee5794;
  box-shadow: 0 0 12px rgba(238, 87, 148, 0.72);
}

.hero h1 {
  color: #2e2532;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.58);
}

.hero h1 span {
  background: linear-gradient(105deg, #382b40 4%, #d84b86 48%, #566cca 94%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 4px 14px rgba(214, 75, 134, 0.12));
}

.personality-bubble {
  border-color: rgba(255, 255, 255, 0.92);
  color: #61405e;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98), transparent 32%),
    linear-gradient(135deg, rgba(255, 206, 225, 0.82), rgba(216, 227, 255, 0.86));
  box-shadow:
    inset -8px -10px 20px rgba(171, 104, 186, 0.1),
    inset 7px 8px 18px rgba(255, 255, 255, 0.8),
    0 12px 28px rgba(143, 72, 119, 0.14);
}

.personality-bubble:hover {
  border-color: #fff;
  box-shadow:
    inset -8px -10px 20px rgba(171, 104, 186, 0.12),
    inset 7px 8px 18px rgba(255, 255, 255, 0.9),
    0 16px 38px rgba(190, 70, 130, 0.2);
}

.personality-bubble:focus-visible {
  outline-color: #db4f89;
}

.bubble-particle {
  background: linear-gradient(135deg, #fff, #f25b9b 48%, #6f84dc);
  box-shadow: 0 0 12px rgba(232, 79, 145, 0.74);
}

.primary-button {
  border-color: rgba(209, 70, 129, 0.3);
  background: linear-gradient(135deg, #ee5e9c, #725fd0);
  color: #fff;
  box-shadow: 0 10px 28px rgba(193, 65, 127, 0.24);
}

.primary-button:hover {
  background: linear-gradient(135deg, #f56ca7, #816ee0);
  box-shadow: 0 14px 38px rgba(193, 65, 127, 0.3);
}

.availability {
  color: #796a78;
}

.availability i {
  background: #e95893;
  box-shadow: 0 0 10px rgba(233, 88, 147, 0.48);
}

.melody-console {
  border-color: rgba(98, 68, 108, 0.18);
  background: rgba(255, 254, 251, 0.82);
  box-shadow: 0 38px 100px rgba(67, 43, 68, 0.18), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg) rotate(1.2deg);
}

.melody-console:hover {
  border-color: rgba(213, 72, 132, 0.3);
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg) rotate(0.2deg) translateY(-4px);
}

.melody-console::before {
  background: linear-gradient(120deg, transparent 8%, rgba(245, 92, 156, 0.34), transparent 46%, rgba(91, 112, 209, 0.26), transparent 86%);
  opacity: 0.5;
}

.console-topbar,
.equalizer {
  border-color: rgba(96, 68, 106, 0.13);
}

.console-topbar p,
.track-info span,
.track-info p,
.console-note p,
.console-note span {
  color: #786a79;
}

.console-status {
  color: #be3d73;
}

.window-dots span:first-child { background: #f07aa9; }
.window-dots span:nth-child(2) { background: #f3c869; }
.window-dots span:last-child { background: #7898db; }

.console-body::after {
  color: rgba(204, 72, 129, 0.07);
}

.disc {
  border-color: rgba(184, 68, 119, 0.22);
  background:
    repeating-radial-gradient(circle, rgba(191, 77, 131, 0.09) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 36% 30%, #fff8fb, #eadff0 54%, #c9d5f4 76%);
  box-shadow: inset 0 0 28px rgba(190, 75, 130, 0.1), 0 0 34px rgba(81, 106, 200, 0.1);
}

.disc-ring {
  border-color: rgba(190, 75, 130, 0.22);
}

.disc-label {
  border-color: rgba(196, 76, 132, 0.22);
  background: #fffafc;
  color: #b23e73;
}

.track-info strong {
  color: #3a2a3c;
}

.equalizer i {
  background: linear-gradient(to top, rgba(224, 83, 145, 0.28), rgba(88, 112, 208, 0.76));
}

.console-note span {
  border-color: rgba(202, 76, 132, 0.2);
}

.scroll-cue {
  color: #786878;
}

.scroll-cue i {
  background: rgba(108, 75, 116, 0.2);
}

.scroll-cue i::after {
  background: #d64e88;
}

.intro-section {
  background: rgba(255, 252, 248, 0.7);
}

.intro-section .section-shell {
  padding: clamp(42px, 6vw, 76px);
  border: 1px solid rgba(105, 72, 113, 0.13);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 72px rgba(72, 47, 71, 0.11);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-index {
  border-bottom-color: rgba(111, 76, 119, 0.15);
  color: #896f84;
}

.intro-grid h2,
.section-heading h2,
.closing-content h2 {
  color: #332638;
}

.intro-copy p {
  color: #746675;
}

.intro-copy strong {
  color: #b73f75;
}

.intro-copy .placeholder-note {
  color: #8d7d8a;
}

.cards-section {
  border-top-color: rgba(104, 70, 112, 0.12);
  background: rgba(255, 251, 247, 0.84);
}

.story-card {
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(72, 47, 68, 0.18);
}

.story-card:nth-child(1) { transform: rotate(-1.2deg); }
.story-card:nth-child(2) { transform: translateY(12px) rotate(0.7deg); }
.story-card:nth-child(3) { transform: rotate(-0.8deg); }

.story-card:hover,
.story-card:nth-child(1):hover,
.story-card:nth-child(2):hover,
.story-card:nth-child(3):hover {
  border-color: #fff;
  box-shadow: 0 30px 72px rgba(93, 52, 81, 0.25);
  transform: translateY(-8px) rotate(0deg);
}

.card-photo {
  filter: saturate(0.94) contrast(1.02) brightness(0.96);
}

.story-card:hover .card-photo {
  filter: saturate(1.04) contrast(1.02) brightness(1);
}

.card-shade {
  background:
    linear-gradient(180deg, rgba(30, 19, 27, 0.01) 26%, rgba(30, 19, 27, 0.2) 62%, rgba(30, 19, 27, 0.82) 100%),
    linear-gradient(135deg, rgba(244, 96, 157, 0.08), transparent 44%);
}

.card-number {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 248, 251, 0.28);
  color: #fff;
}

.closing-section {
  border-top-color: rgba(104, 70, 112, 0.12);
  background:
    linear-gradient(rgba(255, 253, 249, 0.74), rgba(255, 253, 249, 0.86)),
    url("./assets/melody-sketchbook-portrait.jpg") center 42% / min(920px, 88vw) auto no-repeat,
    #fffdfa;
}

.closing-glow {
  border-color: rgba(217, 73, 132, 0.15);
  background: radial-gradient(circle, rgba(255, 152, 193, 0.22), rgba(119, 138, 225, 0.1) 42%, transparent 68%);
  box-shadow: inset 0 0 150px rgba(235, 89, 151, 0.1);
}

.closing-glow::after {
  border-color: rgba(91, 111, 204, 0.13);
}

.closing-content {
  padding: 74px 68px;
  border: 1px solid rgba(100, 69, 108, 0.14);
  border-radius: 46% 54% 48% 52% / 44% 46% 54% 56%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 70px rgba(80, 48, 73, 0.13);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.closing-content > p {
  color: #8a6d81;
}

.wechat-label {
  border-color: rgba(205, 71, 128, 0.2);
  background: rgba(255, 229, 239, 0.68);
  color: #a53a69;
}

footer {
  border-top-color: rgba(105, 71, 113, 0.13);
  color: #826f7e;
}

@keyframes sketchbook-pan {
  from { background-position: 45% center; }
  to { background-position: 55% 48%; }
}

@keyframes paper-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02) rotate(-0.2deg); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.045) rotate(0.2deg); }
}

@media (max-width: 860px) {
  .hero-background {
    background-image:
      linear-gradient(rgba(255, 253, 249, 0.36), rgba(255, 253, 249, 0.5)),
      url("./assets/melody-sketchbook-portrait.jpg");
    background-position: center top;
  }

  .hero-background::after {
    background: linear-gradient(to bottom, rgba(255, 253, 249, 0.24), rgba(255, 253, 249, 0.64));
  }

  .melody-console {
    transform: rotate(-0.7deg);
  }

  .melody-console:hover {
    transform: translateY(-4px) rotate(0deg);
  }
}

/* Photo archive preview */

.photo-library-page {
  min-height: 100svh;
  padding: 28px clamp(20px, 5vw, 72px) 80px;
  background:
    linear-gradient(rgba(255, 253, 249, 0.76), rgba(255, 253, 249, 0.9)),
    url("./assets/melody-sketchbook-wide.jpg") center / cover fixed;
}

.photo-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #665666;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.photo-library-header a {
  padding: 10px 14px;
  border: 1px solid rgba(102, 75, 111, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
}

.photo-library-hero {
  width: min(920px, 100%);
  margin: 12vh auto 0;
  text-align: center;
}

.photo-library-hero > p {
  margin: 0;
  color: #896d82;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.photo-library-hero h1 {
  margin: 22px 0 42px;
  color: #332638;
  font-family: Didot, "Bodoni 72", serif;
  font-size: clamp(62px, 10vw, 126px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.06em;
}

#photo-status {
  min-height: 24px;
  margin: -28px 0 24px;
  padding: 0;
  border: 0;
}

.community-photo-submit {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(180px, 0.58fr) minmax(0, 1.42fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 38px;
  background:
    radial-gradient(circle at 4% 4%, rgba(255, 255, 255, 0.96), transparent 32%),
    radial-gradient(circle at 92% 92%, rgba(223, 215, 255, 0.58), transparent 36%),
    linear-gradient(135deg, rgba(255, 245, 250, 0.88), rgba(239, 244, 255, 0.76));
  box-shadow: 0 28px 80px rgba(76, 50, 75, 0.15);
  text-align: left;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.community-photo-submit::before {
  position: absolute;
  top: -72px;
  right: -58px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(181, 62, 114, 0.14);
  border-radius: 50%;
  content: "";
}

.community-photo-copy,
.community-photo-form {
  position: relative;
  z-index: 1;
}

.community-photo-copy > p {
  margin: 0 0 14px;
  color: #a05f7e;
  font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
}

.community-photo-copy h2 {
  margin: 0;
  color: #372b3b;
  font-family: Didot, "Bodoni 72", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.community-photo-copy > span {
  display: block;
  max-width: 260px;
  margin-top: 22px;
  color: #7c6b79;
  font-size: 11px;
  line-height: 1.85;
}

.community-photo-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.78fr) minmax(220px, 1.22fr);
  gap: 18px;
}

.community-photo-drop {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(120, 85, 127, 0.36);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.62);
  color: #4b3a4e;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.community-photo-drop:hover,
.community-photo-drop.is-dragging {
  border-color: rgba(207, 63, 128, 0.72);
  background: rgba(255, 238, 246, 0.86);
  transform: translateY(-2px);
}

.community-photo-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.community-photo-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-photo-drop.has-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 42%, rgba(43, 31, 46, 0.7));
  content: "";
}

.community-photo-plus {
  color: #a35f83;
  font-family: Didot, serif;
  font-size: 46px;
  font-weight: 200;
  line-height: 1;
}

.community-photo-drop strong,
.community-photo-drop small,
.community-photo-plus {
  position: relative;
  z-index: 1;
}

.community-photo-drop strong { max-width: 82%; font-size: 12px; overflow-wrap: anywhere; }
.community-photo-drop small { color: #8b7b8a; font-size: 8px; letter-spacing: 0.08em; }
.community-photo-drop.has-photo strong,
.community-photo-drop.has-photo small { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.community-photo-drop.has-photo .community-photo-plus { display: none; }

.community-photo-fields {
  display: grid;
  align-content: center;
  gap: 13px;
}

.community-photo-fields label {
  display: grid;
  gap: 7px;
}

.community-photo-fields label > span {
  color: #8d7386;
  font: 600 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
}

.community-photo-fields input,
.community-photo-fields textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(105, 79, 112, 0.16);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.76);
  color: #403344;
  font: 12px/1.65 ui-rounded, "PingFang SC", sans-serif;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-photo-fields input:focus,
.community-photo-fields textarea:focus {
  border-color: rgba(181, 62, 114, 0.48);
  box-shadow: 0 0 0 4px rgba(181, 62, 114, 0.08);
}

.community-photo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-photo-actions > span {
  color: #968493;
  font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.community-photo-actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #745fc0, #d56398);
  color: #fff;
  box-shadow: 0 12px 28px rgba(116, 77, 151, 0.22);
  cursor: pointer;
  font: 600 10px/1 ui-rounded, "PingFang SC", sans-serif;
}

.community-photo-actions button:disabled { cursor: wait; opacity: 0.6; }
#community-upload-status { min-height: 18px; margin: 0; color: #aa4774; font-size: 11px; }

.photo-upload-preview {
  min-height: 260px;
  padding: 42px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed rgba(120, 85, 127, 0.34);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 70px rgba(76, 50, 75, 0.12);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

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

.photo-upload-preview.is-dragging {
  border-color: rgba(207, 63, 128, 0.72);
  background: rgba(255, 236, 245, 0.8);
  transform: scale(1.012);
}

.photo-upload-preview button {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #352a39;
  font: inherit;
  cursor: pointer;
}

.photo-upload-preview button:disabled { cursor: wait; opacity: 0.62; }
.photo-upload-preview span { font-size: 42px; font-weight: 200; }
.photo-upload-preview strong { font-size: 18px; }
.photo-upload-preview small { color: #8b7b8a; }
.photo-upload-preview > p { min-height: 18px; margin: 3px 0 0; color: #b53e72; font-size: 11px; }
.photo-back-link { color: #b53e72; }

.photo-gallery-heading {
  margin: 96px 0 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.photo-gallery-heading p {
  margin: 0 0 10px;
  color: #927589;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.photo-gallery-heading h2 {
  margin: 0;
  color: #35293a;
  font-family: Didot, "Bodoni 72", serif;
  font-size: clamp(38px, 6vw, 68px);
  font-style: italic;
  font-weight: 400;
}

.photo-gallery-heading > span {
  max-width: 260px;
  color: #7c6d7b;
  font-size: 11px;
  line-height: 1.7;
}

.photo-gallery-state {
  min-height: 180px;
  padding: 68px 24px;
  border-top: 1px solid rgba(105, 73, 112, 0.14);
  color: #847381;
  text-align: center;
}

.photo-gallery {
  columns: 3 220px;
  column-gap: 16px;
}

.photo-gallery figure {
  position: relative;
  margin: 0 0 16px;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(68, 45, 67, 0.16);
  break-inside: avoid;
  transform: rotate(-0.35deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-gallery figure:nth-child(2n) { transform: rotate(0.45deg); }
.photo-gallery figure:hover { z-index: 2; transform: translateY(-5px) rotate(0); box-shadow: 0 28px 58px rgba(68, 45, 67, 0.22); }

.photo-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
}

.photo-gallery figcaption {
  padding: 13px 8px 8px;
  display: block;
  color: #776775;
  text-align: left;
}

.photo-card-origin {
  display: block;
  margin-bottom: 8px;
  color: #aa6b88;
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
}

.photo-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.photo-card-meta strong {
  overflow: hidden;
  color: #463749;
  font: 600 11px/1.3 ui-rounded, "PingFang SC", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-card-meta time {
  flex: 0 0 auto;
  color: #9a8b98;
  font: 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.photo-card-message {
  margin: 8px 0 0;
  color: #756674;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.card-copy > div {
  text-align: right;
}

.card-open-hint {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
}

@media (max-width: 600px) {
  .photo-library-page { padding-inline: 16px; }
  .photo-library-header span { display: none; }
  .photo-library-hero { margin-top: 9vh; }
  .photo-library-hero h1 { margin-bottom: 30px; }
  .community-photo-submit { grid-template-columns: 1fr; border-radius: 28px; }
  .community-photo-copy > span { max-width: none; }
  .community-photo-form { grid-template-columns: 1fr; }
  .community-photo-drop { min-height: 230px; }
  .photo-gallery-heading { margin-top: 72px; align-items: start; flex-direction: column; }
  .photo-gallery { columns: 2 140px; column-gap: 10px; }
  .photo-gallery figure { margin-bottom: 10px; border-width: 5px; }
  .photo-gallery figcaption { padding: 10px 5px 6px; }
  .photo-card-origin { font-size: 6px; }
  .photo-card-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .photo-card-message { font-size: 9px; }
}

/* Melody guestbook */

.message-board-grid {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(48px, 7vw, 100px);
}

.message-board-grid > h2 {
  position: sticky;
  top: 110px;
  padding-top: 4px;
}

.message-board {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.message-form {
  padding: 24px;
  display: grid;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.88), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(236, 241, 255, 0.34));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(112, 91, 143, 0.12),
    0 24px 58px rgba(76, 48, 75, 0.12);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.message-form label {
  display: grid;
  gap: 8px;
}

.message-form label > span {
  padding-left: 2px;
  color: #8d7386;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.17em;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(101, 75, 111, 0.14);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.48);
  color: #382c3b;
  font: inherit;
  font-size: 13px;
  box-shadow: inset 0 2px 8px rgba(87, 67, 99, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.message-form textarea {
  min-height: 118px;
  line-height: 1.75;
  resize: vertical;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: rgba(80, 66, 85, 0.42);
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: rgba(208, 69, 128, 0.38);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(222, 85, 145, 0.08), inset 0 2px 8px rgba(87, 67, 99, 0.04);
}

.message-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.message-form-footer > span {
  color: #948493;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.message-form-footer button {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: linear-gradient(135deg, #e75a96, #7465d0);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(176, 70, 131, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.message-form-footer button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(176, 70, 131, 0.28);
}

.message-form-footer button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.message-status {
  min-height: 16px;
  margin: -4px 0 0;
  color: #ad3d6d;
  font-size: 10px;
}

.message-feed {
  max-height: 390px;
  padding: 8px 8px 18px;
  display: grid;
  gap: 13px;
  overflow: auto;
  scrollbar-color: rgba(184, 86, 132, 0.28) transparent;
  scrollbar-width: thin;
  mask-image: linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 18px), transparent);
}

.message-card {
  position: relative;
  padding: 18px 20px 20px;
  border: 1px solid rgba(107, 77, 116, 0.11);
  border-radius: 18px 24px 20px 16px;
  background: rgba(255, 250, 225, 0.78);
  box-shadow: 0 10px 28px rgba(74, 48, 73, 0.08);
  transform: rotate(-0.25deg);
}

.message-card:nth-child(3n + 2) {
  background: rgba(252, 231, 241, 0.78);
  transform: rotate(0.22deg);
}

.message-card:nth-child(3n) {
  background: rgba(229, 237, 255, 0.8);
  transform: rotate(-0.12deg);
}

.message-card::before {
  position: absolute;
  top: 7px;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), transparent);
  content: "";
}

.message-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.message-card strong {
  color: #69445c;
  font-family: Didot, "Bodoni 72", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
}

.message-card time {
  color: #978794;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  white-space: nowrap;
}

.message-card > p {
  margin: 10px 0 0;
  color: #5b4e5d;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-empty {
  margin: 0;
  padding: 54px 20px;
  border: 1px dashed rgba(109, 78, 117, 0.2);
  border-radius: 18px;
  color: #8a7887;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 860px) {
  .message-board-grid {
    grid-template-columns: 1fr;
  }

  .message-board-grid > h2 {
    position: static;
  }
}

@media (max-width: 600px) {
  .message-form {
    padding: 18px;
    border-radius: 22px;
  }

  .message-feed {
    max-height: 460px;
    padding-inline: 2px;
  }

  .message-card {
    padding: 16px 17px 18px;
  }
}

@media (max-width: 600px) {
  .site-header {
    top: 9px;
    height: 60px;
    padding: 0 13px;
  }

  .hero-copy {
    padding: 30px 23px 32px;
    border-radius: 24px 46px 26px 20px;
  }

  .intro-section .section-shell {
    width: min(100% - 24px, 1180px);
    padding: 34px 24px;
    border-radius: 24px;
  }

  .story-card:nth-child(1),
  .story-card:nth-child(2),
  .story-card:nth-child(3) {
    transform: none;
  }

  .closing-section {
    background-size: auto 100%;
  }

  .closing-content {
    padding: 58px 38px;
  }
}

/* Liquid glass tags */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.personality-bubbles {
  position: relative;
  isolation: isolate;
  align-content: center;
  overflow: visible;
}

.personality-bubble,
.add-bubble-button,
.bubble-form {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.92), transparent 28%),
    radial-gradient(circle at 82% 84%, rgba(151, 178, 255, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.49), rgba(238, 244, 255, 0.19));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset -1px -1px 0 rgba(103, 123, 181, 0.16),
    inset 10px 12px 25px rgba(255, 255, 255, 0.26),
    inset -12px -14px 26px rgba(115, 102, 174, 0.1),
    0 12px 30px rgba(68, 53, 88, 0.15),
    0 2px 4px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(190%) contrast(1.03);
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(1.03);
}

.personality-bubble {
  color: rgba(48, 42, 59, 0.88);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.personality-bubble::before {
  top: 7px;
  left: 14%;
  width: 46%;
  height: 18px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08));
  filter: blur(3px);
  opacity: 0.9;
  transform: rotate(-5deg);
}

.personality-bubble::after,
.add-bubble-button::after {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(118deg, transparent 18%, rgba(255, 255, 255, 0.52) 36%, transparent 51%),
    conic-gradient(from 205deg at 72% 78%, rgba(121, 147, 255, 0.14), rgba(255, 124, 187, 0.12), transparent 36%);
  clip-path: inset(0 round 999px);
  content: "";
  opacity: 0.62;
  pointer-events: none;
  transform: translateX(-18%);
  animation: liquid-glass-sheen 5.8s ease-in-out infinite alternate;
}

.personality-bubble:hover {
  border-color: rgba(255, 255, 255, 0.96);
  color: #2f2737;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 rgba(96, 117, 181, 0.18),
    inset 12px 14px 28px rgba(255, 255, 255, 0.34),
    inset -14px -16px 28px rgba(116, 101, 180, 0.12),
    0 17px 38px rgba(78, 58, 100, 0.21),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.bubble-custom-1 { animation-delay: -1.2s; }
.bubble-custom-2 { animation-delay: -2.1s; }
.bubble-custom-3 { animation-delay: -3.1s; }
.bubble-custom-4 { animation-delay: -4.1s; }

.bubble-composer {
  position: relative;
  z-index: 8;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 66px;
  min-height: 68px;
}

.add-bubble-button {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  color: rgba(53, 46, 65, 0.82);
  cursor: pointer;
  animation: bubble-float 4.8s -2.9s ease-in-out infinite;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}

.add-bubble-button::before {
  position: absolute;
  top: 7px;
  left: 12px;
  width: 24px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  filter: blur(2px);
  content: "";
  transform: rotate(-16deg);
}

.add-bubble-button > span {
  position: relative;
  z-index: 2;
  display: block;
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", sans-serif;
  font-size: 34px;
  font-weight: 240;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.add-bubble-button:hover {
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 rgba(96, 117, 181, 0.18),
    inset 10px 12px 25px rgba(255, 255, 255, 0.34),
    inset -12px -14px 26px rgba(116, 101, 180, 0.13),
    0 17px 38px rgba(78, 58, 100, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.32);
}

.add-bubble-button:focus-visible,
.bubble-form input:focus-visible,
.bubble-form button:focus-visible {
  outline: 2px solid rgba(88, 104, 196, 0.72);
  outline-offset: 3px;
}

.bubble-composer.is-open .add-bubble-button > span {
  transform: rotate(45deg);
}

.bubble-form {
  position: relative;
  z-index: 20;
  width: min(280px, 100%);
  flex: 1 1 280px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  border-radius: 20px;
  transform-origin: center left;
  animation: liquid-form-in 0.32s cubic-bezier(0.18, 0.82, 0.28, 1) both;
}

.bubble-form input {
  min-width: 0;
  height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.36);
  color: #332a39;
  font: inherit;
  font-size: 12px;
  box-shadow: inset 0 1px 6px rgba(82, 65, 99, 0.08);
}

.bubble-form input::placeholder {
  color: rgba(74, 62, 81, 0.48);
}

.bubble-form button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(238, 91, 153, 0.8), rgba(100, 112, 211, 0.82));
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(105, 72, 146, 0.2);
}

.bubble-form-message {
  min-height: 14px;
  grid-column: 1 / -1;
  padding-left: 4px;
  color: rgba(81, 68, 87, 0.58);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.personality-bubble.is-editable {
  border-color: rgba(117, 100, 211, 0.58);
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 rgba(96, 117, 181, 0.2),
    inset 10px 12px 25px rgba(255, 255, 255, 0.34),
    0 0 0 3px rgba(122, 103, 210, 0.12),
    0 17px 38px rgba(78, 58, 100, 0.21);
  animation: bubble-float 4.4s ease-in-out infinite, editable-tag-pulse 1.8s ease-in-out infinite;
}

.edit-bubbles-button {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
}

.edit-bubbles-button > span {
  font-size: 22px;
  font-weight: 500;
}

.edit-bubbles-button.is-active {
  color: #fff;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.82), transparent 25%),
    linear-gradient(135deg, rgba(238, 91, 153, 0.74), rgba(100, 112, 211, 0.86));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.84),
    0 0 0 4px rgba(116, 100, 207, 0.14),
    0 16px 34px rgba(78, 58, 100, 0.24);
}

.edit-mode-hint {
  flex: 1 1 165px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(63, 52, 72, 0.68);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.standalone-message {
  flex: 1 1 100%;
  padding-top: 7px;
}

.bubble-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

/* Soft instrumental player */

.ambient-player {
  display: contents;
}

.ambient-player:not(.is-playing) .disc {
  animation-play-state: paused;
}

.ambient-player:not(.is-playing) .equalizer i {
  opacity: 0.28;
  animation-play-state: paused;
  transform: scaleY(0.18);
}

.player-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(131, 104, 244, 0.035));
}

.player-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(187, 169, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(202, 187, 255, 0.22), rgba(112, 87, 213, 0.12));
  color: #efeaff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, background 0.22s ease;
}

.player-controls button:hover {
  background: linear-gradient(145deg, rgba(219, 208, 255, 0.3), rgba(130, 101, 231, 0.2));
  transform: scale(1.06);
}

.player-controls button:focus-visible {
  outline: 2px solid rgba(205, 191, 255, 0.86);
  outline-offset: 3px;
}

.player-controls button span {
  margin-left: 2px;
  font-size: 13px;
}

.ambient-player.is-playing .player-controls button span {
  margin-left: 0;
}

.player-timeline {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.player-timeline i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8272e6, #ef90bb, #f6d5ba);
  box-shadow: 0 0 12px rgba(215, 149, 220, 0.65);
  transition: width 0.18s linear;
}

.player-controls time {
  color: rgba(229, 224, 244, 0.5);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  white-space: nowrap;
}

.player-controls p {
  grid-column: 2 / -1;
  margin: -5px 0 0;
  color: rgba(229, 224, 244, 0.56);
  font-size: 9px;
  letter-spacing: 0.08em;
}

@keyframes liquid-glass-sheen {
  from { opacity: 0.42; transform: translateX(-25%) rotate(-1deg); }
  to { opacity: 0.78; transform: translateX(18%) rotate(1deg); }
}

@keyframes liquid-form-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(-7px) scale(0.84); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes editable-tag-pulse {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.24) brightness(1.04); }
}

@media (max-width: 600px) {
  .bubble-composer {
    min-width: 58px;
    min-height: 60px;
  }

  .add-bubble-button {
    width: 52px;
    height: 52px;
  }

  .edit-bubbles-button {
    width: 52px;
    height: 52px;
  }

  .bubble-form {
    width: 100%;
    flex-basis: 100%;
    transform-origin: center;
  }

  .player-controls {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 13px;
  }

  .player-controls time {
    display: none;
  }

  .player-controls p {
    grid-column: 2;
  }
}
