:root {
  --bg-void: #050312;
  --bg-midnight: #0d0821;
  --bg-indigo: #130c2c;
  --bg-violet: #1b1140;
  --text-main: rgba(251, 247, 255, 0.98);
  --text-soft: rgba(233, 225, 245, 0.8);
  --text-faint: rgba(223, 214, 238, 0.58);
  --line-soft: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(255, 255, 255, 0.2);
  --glass-fill: rgba(18, 14, 39, 0.42);
  --glass-fill-strong: rgba(18, 13, 42, 0.56);
  --fortune-accent: #f2a4ff;
  --fortune-accent-glow: rgba(242, 164, 255, 0.28);
  --shadow-soft: 0 24px 60px rgba(5, 4, 18, 0.36);
  --shadow-card: 0 16px 36px rgba(4, 4, 14, 0.28);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 145, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #050312 0%, #0a0618 38%, #070411 100%);
  scroll-behavior: smooth;
}

html.is-locked,
body.is-locked {
  overflow: hidden;
}

body {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  font-family: "SF Pro Display", "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--text-main);
  background: transparent;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.night-mode {
  color-scheme: dark;
}

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

button {
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  top: -62px;
  left: -62px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 182, 239, 0.22), transparent 68%);
  animation: ambientFloat 13s ease-in-out infinite;
}

.page-shell::after {
  right: -78px;
  top: 28%;
  width: 270px;
  height: 270px;
  background: radial-gradient(circle, rgba(122, 191, 255, 0.2), transparent 70%);
  animation: ambientFloat 16s ease-in-out infinite reverse;
}

body.night-mode .page-shell::before {
  background: radial-gradient(circle, rgba(198, 171, 255, 0.18), transparent 70%);
}

body.night-mode .page-shell::after {
  background: radial-gradient(circle, rgba(134, 197, 255, 0.22), transparent 72%);
}

body.night-mode .sky-layer-two {
  opacity: 1;
  filter: blur(20px) saturate(1.06);
}

body.night-mode .hero-bubble,
body.night-mode .splash-note,
body.night-mode .wish-response-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.app {
  position: relative;
  z-index: 2;
  width: min(calc(100vw - 28px - var(--safe-left) - var(--safe-right)), 440px);
  margin: 0 auto;
  padding:
    calc(14px + var(--safe-top))
    0
    calc(104px + var(--safe-bottom))
    0;
  opacity: 0;
  transform: translateY(10px) scale(0.988);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.app-ready .app {
  opacity: 1;
  transform: none;
}

.sky-layer,
.nebula,
.orbit,
.star-field {
  pointer-events: none;
}

.sky-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.sky-layer-one {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 180, 238, 0.18), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(153, 201, 255, 0.16), transparent 20%),
    radial-gradient(circle at 46% 72%, rgba(175, 123, 255, 0.12), transparent 28%);
}

.sky-layer-two {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(140deg, rgba(255, 158, 231, 0.06), transparent 48%),
    linear-gradient(220deg, rgba(126, 208, 255, 0.08), transparent 58%);
  filter: blur(18px);
  opacity: 0.94;
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.62;
  z-index: 0;
}

.nebula-left {
  top: 10%;
  left: -16%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 129, 221, 0.26), transparent 72%);
  animation: floatBlob 13s ease-in-out infinite;
}

.nebula-right {
  right: -18%;
  bottom: 10%;
  width: 270px;
  height: 270px;
  background: radial-gradient(circle, rgba(109, 189, 255, 0.22), transparent 72%);
  animation: floatBlob 16s ease-in-out infinite reverse;
}

.orbit {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  opacity: 0.72;
  z-index: 0;
}

.orbit-one {
  top: 4%;
  right: -126px;
  width: 272px;
  height: 272px;
  transform: rotate(16deg);
}

.orbit-two {
  bottom: 12%;
  left: -132px;
  width: 304px;
  height: 304px;
  transform: rotate(-14deg);
}

.star-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.star-field::before,
.star-field::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}

.star-field::before {
  top: 10%;
  left: 16%;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
  animation: breathe 12s ease-in-out infinite;
}

.star-field::after {
  right: 10%;
  bottom: 24%;
  width: 156px;
  height: 156px;
  background: radial-gradient(circle, rgba(255, 186, 239, 0.12), transparent 74%);
  animation: breathe 16s ease-in-out infinite reverse;
}

.star,
.shooting-star {
  position: absolute;
}

.star {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--size) * 3);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
}

.shooting-star {
  width: 104px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.84));
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.44));
  opacity: 0;
  transform: rotate(-24deg);
  animation: shooting 11s linear infinite;
  animation-delay: var(--delay);
}

.glass-card,
.glass-strip,
.sheet {
  position: relative;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(255, 191, 241, 0.08), rgba(131, 203, 255, 0.06) 52%, rgba(255, 255, 255, 0.02)),
    var(--glass-fill);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  overflow: hidden;
}

.glass-card::before,
.glass-strip::before,
.sheet::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05), transparent 74%);
  opacity: 0.78;
  pointer-events: none;
}

.glass-card::after,
.glass-strip::after,
.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 100% at 10% 0%, rgba(255, 255, 255, 0.1), transparent 44%);
  opacity: 0.56;
  pointer-events: none;
}

.glass-card > *,
.glass-strip > *,
.sheet > * {
  position: relative;
  z-index: 1;
}

.glass-card,
.sheet {
  border-radius: 30px;
}

.glass-strip {
  border-radius: 22px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: rgba(233, 217, 248, 0.72);
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.app-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-mark > div {
  min-width: 0;
}

.app-mark-label,
.app-mark strong {
  display: block;
}

.app-mark-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.app-mark strong {
  margin-top: 3px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
}

.app-mark-orb {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, rgba(255, 178, 241, 0.96), rgba(132, 201, 255, 0.92));
  box-shadow:
    0 0 14px rgba(255, 180, 239, 0.42),
    0 0 26px rgba(128, 199, 255, 0.22);
}

.liquid-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  color: rgba(252, 247, 255, 0.96);
  font-size: 0.82rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(6, 6, 18, 0.16);
  white-space: nowrap;
}

.liquid-pill-soft {
  color: var(--text-soft);
}

.liquid-pill-highlight {
  min-width: 108px;
  max-width: 144px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-stage {
  position: relative;
}

.screen {
  display: none;
}

.screen.is-active {
  display: grid;
  gap: 14px;
  animation: screenReveal 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 20px 16px;
  align-items: center;
  padding: 20px 18px 22px;
  overflow: hidden;
}

.hero-topline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 255, 0.96);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(6, 7, 18, 0.12);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff4bc;
  box-shadow: 0 0 10px rgba(255, 244, 188, 0.8);
}

.hero h1 {
  margin: 18px 0 12px;
  display: grid;
  gap: 4px;
  max-width: 7.2ch;
  font-size: clamp(2.42rem, 10.6vw, 4rem);
  line-height: 0.94;
  letter-spacing: 0.012em;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 222, 245, 0.94) 42%, rgba(189, 221, 255, 0.96) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 30px rgba(191, 150, 255, 0.12);
}

.hero h1 span {
  display: block;
}

.hero-text,
.detail-paragraph,
.metric-text,
.picker-hint,
.sheet-header p:not(.eyebrow),
.last-reading-text,
.my-profile-card p,
.my-last-card p,
.time-card p {
  color: var(--text-soft);
}

.hero-text {
  margin: 0;
  max-width: 24ch;
  font-size: 0.95rem;
  line-height: 1.84;
}

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

.hero-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 246, 252, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 20px rgba(8, 7, 20, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-sticker-star {
  top: 18px;
  right: 108px;
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
  animation: ambientFloat 10s ease-in-out infinite;
}

.hero-sticker-heart {
  top: 98px;
  right: 18px;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  color: rgba(255, 223, 239, 0.9);
  animation: ambientFloat 13s ease-in-out infinite reverse;
}

.hero-sticker-moon {
  bottom: 26px;
  right: 130px;
  width: 30px;
  height: 30px;
  font-size: 0.84rem;
  color: rgba(255, 245, 212, 0.92);
  animation: ambientFloat 12s ease-in-out infinite;
}

.hero-sticker-comet {
  top: 56px;
  left: 48%;
  width: 30px;
  height: 30px;
  font-size: 0.76rem;
  animation: ambientFloat 11s ease-in-out infinite;
}

.hero-sticker-comet::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 1px;
  right: 18px;
  top: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 217, 245, 0.7));
  transform: translateY(-50%);
  opacity: 0.8;
}

.liquid-button {
  position: relative;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 26px rgba(6, 7, 18, 0.16);
  font-weight: 600;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, opacity 220ms ease;
}

.liquid-button::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 54%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04), transparent 76%);
  opacity: 0.78;
}

.liquid-button > * {
  position: relative;
  z-index: 1;
}

.liquid-button:active {
  transform: scale(0.97);
}

.liquid-button:disabled {
  opacity: 0.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.liquid-button-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(255, 194, 241, 0.14), rgba(142, 207, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.liquid-button-secondary {
  color: var(--text-soft);
}

.liquid-button-full {
  width: 100%;
}

.hero-bubble {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(7, 7, 18, 0.1);
}

.hero-bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.66;
  color: rgba(246, 240, 252, 0.92);
}

.bubble-orb {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(255, 192, 241, 0.96), rgba(133, 205, 255, 0.9));
  box-shadow:
    0 0 12px rgba(255, 181, 238, 0.32),
    0 0 20px rgba(129, 199, 255, 0.16);
}

.hero-spirit-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 24px rgba(8, 8, 19, 0.14);
}

.spirit-orb {
  position: relative;
  width: 104px;
  height: 104px;
}

.spirit-orb::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fortune-accent-glow), transparent 70%);
  filter: blur(10px);
  animation: breathe 8s ease-in-out infinite;
}

.spirit-orb-core,
.splash-core-inner,
.ritual-core-inner {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff9ff;
  font-weight: 700;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(255, 193, 241, 0.96), rgba(141, 204, 255, 0.92));
  box-shadow:
    0 0 24px rgba(255, 182, 238, 0.26),
    0 16px 28px rgba(7, 8, 20, 0.18);
}

.spirit-orb-core {
  font-size: 1.55rem;
}

.spirit-orb-ring,
.splash-ring,
.ritual-core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: slowSpin 14s linear infinite;
}

.spirit-orb-ring-alt,
.splash-ring-alt {
  inset: 10px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 11s;
}

.spirit-caption {
  text-align: center;
}

.spirit-caption span,
.spirit-caption strong {
  display: block;
}

.spirit-caption span {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.spirit-caption strong {
  margin-top: 5px;
  font-size: 1rem;
}

.home-stack {
  display: grid;
  gap: 14px;
}

.companion-card,
.last-reading-card,
.detail-hero,
.detail-section {
  padding: 18px;
}

.card-head,
.detail-sign-header,
.metric-top,
.lucky-color-row,
.detail-topline,
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head {
  align-items: flex-start;
}

.card-head > div {
  min-width: 0;
}

.card-head h2,
.card-head h3,
.sheet-header h2,
.detail-hero h2,
.detail-section h3 {
  margin: 6px 0 0;
}

.card-head h2,
.sheet-header h2,
.detail-hero h2 {
  font-size: 1.34rem;
  line-height: 1.16;
}

.detail-section h3 {
  font-size: 1.18rem;
  line-height: 1.2;
}

.card-orb {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(255, 194, 241, 0.96), rgba(140, 206, 255, 0.9));
  box-shadow:
    0 0 12px rgba(255, 182, 238, 0.3),
    0 0 20px rgba(129, 199, 255, 0.16);
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.teaser-item,
.time-card,
.metric-card,
.lucky-card,
.my-last-card,
.my-profile-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 20px rgba(7, 7, 18, 0.12);
  overflow: hidden;
}

.teaser-item::before,
.time-card::before,
.metric-card::before,
.lucky-card::before,
.my-last-card::before,
.my-profile-card::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04), transparent 74%);
  opacity: 0.78;
}

.teaser-item > *,
.time-card > *,
.metric-card > *,
.lucky-card > *,
.my-last-card > *,
.my-profile-card > * {
  position: relative;
  z-index: 1;
}

.teaser-item {
  padding: 14px 12px;
}

.teaser-item span,
.teaser-item strong {
  display: block;
}

.teaser-item span {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.teaser-item strong {
  margin-top: 8px;
  font-size: 0.92rem;
}

.last-reading-text {
  margin: 14px 0 0;
  line-height: 1.7;
  font-size: 0.94rem;
}

.last-reading-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 244, 255, 0.9);
  font-size: 0.82rem;
}

.mini-action-button,
.icon-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  color: rgba(250, 244, 255, 0.92);
  font-size: 0.84rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(7, 7, 18, 0.12);
}

.mini-action-button:disabled {
  opacity: 0.48;
}

.detail-actions {
  margin-top: 2px;
}

.detail-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(255, 198, 242, 0.1), rgba(150, 210, 255, 0.08)),
    var(--glass-fill-strong);
}

.fortune-ritual {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 243, 255, 0.92);
  font-size: 0.82rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(7, 8, 19, 0.12);
}

.ritual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff3bf;
  box-shadow: 0 0 10px rgba(255, 243, 191, 0.74);
}

.detail-mood-tag,
.detail-status-chip {
  min-height: 36px;
}

.detail-sign-header {
  align-items: center;
  margin-top: 16px;
}

.detail-sign-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.detail-sign-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 24px rgba(9, 9, 22, 0.18);
}

.keyword-trail {
  margin-top: 18px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  color: rgba(250, 244, 255, 0.92);
  font-size: 0.82rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(7, 7, 18, 0.1);
}

.keyword-row-soft .keyword-chip {
  color: var(--text-soft);
}

.detail-paragraph {
  margin: 14px 0 0;
  line-height: 1.82;
  font-size: 0.96rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-card {
  padding: 16px;
}

.metric-card-wide {
  grid-column: 1 / -1;
}

.metric-top span {
  font-size: 0.92rem;
  color: rgba(247, 241, 251, 0.88);
}

.metric-top strong {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 250, 255, 0.96);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.meter {
  position: relative;
  width: 100%;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.84), var(--fortune-accent));
  box-shadow:
    0 0 16px var(--fortune-accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: width 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-text {
  margin: 12px 0 0;
  line-height: 1.66;
  font-size: 0.9rem;
}

.lucky-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 12px;
  margin-top: 16px;
}

.lucky-card {
  padding: 16px;
}

.lucky-label {
  display: block;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: rgba(234, 217, 248, 0.72);
}

.lucky-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.08rem;
  font-weight: 600;
  color: rgba(255, 249, 255, 0.98);
}

.lucky-color-row {
  justify-content: flex-start;
  margin-top: 12px;
}

.lucky-color-row strong {
  margin-top: 0;
}

.lucky-swatch {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.lucky-number {
  font-size: 1.48rem;
  letter-spacing: 0.08em;
}

.yuanyuan-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(7, 7, 18, 0.1);
}

.note-orb,
.my-profile-orb {
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(255, 194, 241, 0.96), rgba(141, 204, 255, 0.92));
  box-shadow:
    0 0 14px rgba(255, 180, 239, 0.3),
    0 0 22px rgba(129, 199, 255, 0.16);
}

.note-orb {
  width: 14px;
  height: 14px;
  margin-top: 6px;
}

.timeline-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.time-card {
  padding: 15px 16px;
}

.time-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 244, 255, 0.92);
  font-size: 0.82rem;
}

.time-card p {
  margin: 12px 0 0;
  line-height: 1.7;
  font-size: 0.92rem;
}

.tab-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(calc(100vw - 24px - var(--safe-left) - var(--safe-right)), 412px);
  padding: 10px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.app-ready .tab-bar {
  opacity: 1;
  transform: translateX(-50%);
}

.tab-button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 18px;
  color: var(--text-faint);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.tab-button:active {
  transform: scale(0.97);
}

.tab-button.is-active {
  color: rgba(255, 248, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(255, 194, 241, 0.08), rgba(141, 204, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 20px rgba(6, 7, 18, 0.12);
}

.tab-icon {
  font-size: 1.02rem;
}

.overlay-scrim {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: rgba(5, 4, 12, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.overlay-scrim.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: calc(86px + var(--safe-bottom));
  z-index: 6;
  width: min(calc(100vw - 24px - var(--safe-left) - var(--safe-right)), 412px);
  max-height: min(74vh, 640px);
  padding: 14px 14px 16px;
  overflow-y: auto;
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

.sheet.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sheet-handle {
  width: 54px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.sheet-header {
  padding: 0 4px;
}

.sheet-header h2 {
  font-size: 1.34rem;
  line-height: 1.18;
}

.sheet-header p:not(.eyebrow) {
  margin: 10px 0 0;
  font-size: 0.94rem;
  line-height: 1.68;
}

.picker-sheet .zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.zodiac-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 0.92;
  min-height: 84px;
  padding: 12px 8px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(255, 195, 241, 0.06), rgba(139, 205, 255, 0.05)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.zodiac-button::before,
.zodiac-button::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.zodiac-button::before {
  top: 1px;
  left: 1px;
  right: 1px;
  height: 46%;
  border-radius: 22px 22px 16px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04), transparent 72%);
  opacity: 0.8;
}

.zodiac-button::after {
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.56);
}

.zodiac-button:active {
  transform: scale(0.965);
}

.zodiac-button.is-active {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 34px rgba(7, 9, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 22px var(--fortune-accent-glow);
}

.zodiac-button.is-active .zodiac-symbol {
  transform: scale(1.08);
  text-shadow: 0 0 16px var(--fortune-accent-glow);
}

.zodiac-symbol,
.zodiac-name {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: center;
}

.zodiac-symbol {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 220ms ease, text-shadow 220ms ease;
}

.zodiac-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.picker-footer {
  margin-top: 18px;
}

.picker-hint {
  min-height: 48px;
  padding: 0 4px;
  font-size: 0.92rem;
  line-height: 1.62;
}

.my-sheet {
  padding-bottom: 18px;
}

.my-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
}

.my-profile-orb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff9ff;
}

.my-profile-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.my-profile-card p {
  margin: 8px 0 0;
  line-height: 1.68;
  font-size: 0.92rem;
}

.my-last-card {
  margin-top: 14px;
  padding: 16px;
}

.my-last-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.08rem;
}

.my-last-card p {
  margin: 10px 0 0;
  line-height: 1.7;
  font-size: 0.92rem;
}

.my-sheet .keyword-row {
  margin-top: 14px;
}

.splash-screen,
.ritual-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding:
    calc(24px + var(--safe-top))
    calc(20px + var(--safe-right))
    calc(24px + var(--safe-bottom))
    calc(20px + var(--safe-left));
  text-align: center;
}

.splash-screen {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 188, 240, 0.14), transparent 20%),
    radial-gradient(circle at 50% 68%, rgba(123, 194, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(5, 3, 12, 0.96), rgba(8, 5, 18, 0.98));
  opacity: 1;
  transition: opacity 700ms ease, transform 700ms ease;
}

.splash-screen.is-exiting {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.splash-screen.is-hidden {
  display: none;
}

.splash-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.58;
}

.splash-aura-left {
  top: 16%;
  left: 12%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 177, 238, 0.26), transparent 72%);
  animation: ambientFloat 11s ease-in-out infinite;
}

.splash-aura-right {
  right: 10%;
  bottom: 18%;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(124, 194, 255, 0.2), transparent 72%);
  animation: ambientFloat 14s ease-in-out infinite reverse;
}

.splash-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 22px rgba(8, 7, 20, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.splash-sticker-star {
  top: 15%;
  left: 18%;
  font-size: 0.84rem;
  color: rgba(255, 247, 220, 0.9);
  animation: ambientFloat 12s ease-in-out infinite;
}

.splash-sticker-moon {
  top: 22%;
  right: 18%;
  font-size: 0.9rem;
  color: rgba(255, 243, 211, 0.92);
  animation: ambientFloat 14s ease-in-out infinite reverse;
}

.splash-sticker-heart {
  bottom: 20%;
  left: 22%;
  font-size: 0.82rem;
  color: rgba(255, 223, 239, 0.92);
  animation: ambientFloat 11s ease-in-out infinite;
}

.splash-sticker-bow {
  right: 20%;
  bottom: 28%;
  font-size: 0.82rem;
  color: rgba(217, 229, 255, 0.94);
  animation: ambientFloat 13s ease-in-out infinite reverse;
}

.splash-core-wrap,
.ritual-copy {
  position: relative;
  z-index: 1;
}

.splash-core {
  position: relative;
  width: 158px;
  height: 158px;
  margin: 0 auto;
}

.splash-core-inner {
  inset: 28px;
  font-size: 2rem;
}

.splash-copy {
  width: min(100%, 320px);
  margin-top: 22px;
}

.splash-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 221, 244, 0.94), rgba(189, 221, 255, 0.96));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.splash-copy p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 0.98rem;
}

.splash-note {
  margin: 16px auto 0;
  width: min(100%, 282px);
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 24px rgba(8, 7, 20, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.splash-note-label {
  display: inline-flex;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(250, 241, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.splash-note p {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(247, 240, 252, 0.92);
}

.splash-skip {
  position: absolute;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  transform: translateX(-50%);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  color: rgba(248, 240, 255, 0.86);
}

.ritual-overlay {
  background: rgba(6, 4, 15, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.ritual-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ritual-core {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 20px;
}

.ritual-core::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fortune-accent-glow), transparent 72%);
  filter: blur(12px);
  animation: breathe 4s ease-in-out infinite;
}

.ritual-core-inner {
  inset: 24px;
  font-size: 1.9rem;
}

.ritual-copy {
  width: min(100%, 312px);
}

.ritual-copy h2 {
  margin: 10px 0 10px;
  font-size: 1.52rem;
  line-height: 1.16;
}

.ritual-copy p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 0.96rem;
}

.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;
}

.daily-quote-card,
.fortune-slip-shell,
.wish-card,
.share-entry-card {
  padding: 18px;
}

.daily-quote-text {
  margin: 14px 0 0;
  line-height: 1.8;
  font-size: 0.98rem;
  color: rgba(246, 239, 252, 0.94);
}

.mood-zone {
  margin-top: 18px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 20px rgba(7, 7, 18, 0.1);
}

.mood-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mood-status-text {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.mood-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mood-option {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.84rem;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.mood-option:active {
  transform: scale(0.97);
}

.mood-option.is-active {
  color: rgba(255, 248, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 20px rgba(7, 7, 18, 0.12),
    0 0 16px var(--fortune-accent-glow);
}

.mood-support-text {
  margin: 14px 0 0;
  line-height: 1.74;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.fortune-slip-card {
  position: relative;
  height: 188px;
  margin-top: 16px;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fortune-slip-card.is-revealed {
  transform: rotateY(180deg);
}

.fortune-slip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(255, 196, 241, 0.08), rgba(139, 205, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 26px rgba(7, 7, 18, 0.12);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.fortune-slip-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 10% 0%, rgba(255, 255, 255, 0.14), transparent 44%);
  opacity: 0.72;
}

.fortune-slip-face > * {
  position: relative;
  z-index: 1;
}

.fortune-slip-front strong,
.fortune-slip-back strong {
  margin-top: 10px;
  font-size: 1.26rem;
  line-height: 1.2;
}

.fortune-slip-front p,
.fortune-slip-back p {
  margin: 12px 0 0;
  line-height: 1.7;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.fortune-slip-back {
  transform: rotateY(180deg);
}

.fortune-slip-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: rgba(255, 247, 255, 0.92);
}

.fortune-slip-seal {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 242, 251, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.fortune-slip-seal-soft {
  color: rgba(231, 240, 255, 0.88);
}

.fortune-slip-actions,
.wish-actions,
.sheet-action-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.fortune-slip-actions .liquid-button,
.wish-actions .liquid-button,
.sheet-action-row .liquid-button {
  flex: 1 1 0;
}

.sticker-reward-card {
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(255, 210, 246, 0.08), rgba(140, 208, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 20px rgba(7, 7, 18, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.sticker-reward-card.is-earned {
  border-color: rgba(255, 228, 245, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 28px rgba(7, 7, 18, 0.12),
    0 0 24px rgba(255, 198, 241, 0.08);
}

.sticker-reward-card.is-pop {
  transform: translateY(-2px) scale(1.01);
}

.sticker-reward-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sticker-reward-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.sticker-reward-main strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.sticker-reward-main p {
  margin: 8px 0 0;
  line-height: 1.72;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.sticker-reward-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 205, 244, 0.2), rgba(139, 206, 255, 0.16)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 18px rgba(8, 7, 20, 0.12);
  font-size: 1rem;
}

.romance-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(255, 205, 243, 0.09), rgba(146, 208, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 20px rgba(7, 7, 18, 0.1);
}

.romance-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wish-card,
.share-entry-card {
  margin-top: 14px;
}

.note-to-yuanyuan-card,
.quote-collection-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(255, 207, 243, 0.08), rgba(145, 207, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 22px rgba(7, 7, 18, 0.1);
}

.note-to-yuanyuan-input {
  width: 100%;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  resize: none;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 18px rgba(7, 7, 18, 0.08);
}

.note-to-yuanyuan-input::placeholder {
  color: var(--text-faint);
}

.note-to-yuanyuan-actions {
  display: flex;
  margin-top: 12px;
}

.note-to-yuanyuan-actions .liquid-button {
  width: 100%;
}

.note-to-yuanyuan-hint {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.quote-collection-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quote-collection-item,
.quote-collection-empty {
  margin: 0;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.quote-collection-item strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.4;
}

.quote-collection-item p,
.quote-collection-empty {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.76;
  color: var(--text-soft);
}

.quote-collection-item .eyebrow {
  display: block;
  margin-top: 10px;
}

.wish-card {
  position: relative;
  overflow: hidden;
}

.wish-bottle-visual {
  position: relative;
  height: 58px;
  margin-top: 14px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wish-bottle-mouth,
.wish-bottle-glow,
.wish-bottle-star {
  position: absolute;
}

.wish-bottle-mouth {
  right: 20px;
  top: 15px;
  width: 62px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 214, 245, 0.12);
}

.wish-bottle-glow {
  right: 6px;
  top: -8px;
  width: 112px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 243, 0.14), transparent 68%);
  filter: blur(8px);
}

.wish-bottle-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 242, 251, 0.86);
  animation: ambientFloat 12s ease-in-out infinite;
}

.wish-bottle-star-a {
  left: 14px;
  top: 18px;
  font-size: 0.82rem;
}

.wish-bottle-star-b {
  left: 44%;
  top: 10px;
  font-size: 0.74rem;
  animation-duration: 10s;
}

.wish-bottle-star-c {
  right: 92px;
  top: 24px;
  font-size: 0.76rem;
  animation-duration: 11s;
}

.wish-card.is-wishing .wish-bottle-star-a,
.wish-card.is-wishing .wish-bottle-star-b,
.wish-card.is-wishing .wish-bottle-star-c {
  animation: wishBottleDrift 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.wish-card.is-wishing .wish-bottle-glow {
  animation: bottleGlowPulse 1.2s ease;
}

.wish-input {
  width: 100%;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  resize: none;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 18px rgba(7, 7, 18, 0.08);
}

.wish-input::placeholder {
  color: var(--text-faint);
}

.wish-response-card {
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(7, 7, 18, 0.08);
}

.wish-response-card.is-sent {
  border-color: rgba(255, 222, 244, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 24px rgba(7, 7, 18, 0.12),
    0 0 18px rgba(255, 206, 243, 0.06);
}

.wish-response-card p:last-child {
  margin: 10px 0 0;
  line-height: 1.74;
  font-size: 0.94rem;
  color: rgba(247, 240, 252, 0.94);
}

.comfort-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(255, 206, 243, 0.1), rgba(145, 209, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 24px rgba(7, 7, 18, 0.12);
}

.comfort-card h3 {
  margin: 14px 0 0;
  font-size: 1.26rem;
  line-height: 1.2;
}

.comfort-card p {
  margin: 12px 0 0;
  line-height: 1.8;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.share-card {
  position: relative;
  margin-top: 18px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(160deg, rgba(255, 210, 246, 0.2), rgba(136, 205, 255, 0.14) 56%, rgba(255, 255, 255, 0.06)),
    rgba(18, 14, 41, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 32px rgba(7, 7, 18, 0.18),
    0 0 26px rgba(255, 196, 241, 0.08);
  overflow: hidden;
}

.share-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.18), transparent 20%),
    radial-gradient(circle at 50% 90%, rgba(255, 186, 239, 0.12), transparent 28%);
  opacity: 0.8;
}

.share-card-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.share-card-sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 246, 252, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(8, 7, 20, 0.12);
}

.share-card-sticker-star {
  top: 16px;
  right: 16px;
}

.share-card-sticker-heart {
  bottom: 18px;
  left: 18px;
}

.share-card-sticker-moon {
  top: 84px;
  right: 28px;
}

.share-card > *:not(.share-card-stickers) {
  position: relative;
  z-index: 1;
}

.share-card-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.share-card-brand,
.share-card-date,
.share-card-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(250, 244, 255, 0.92);
}

.share-card-stamp {
  color: rgba(255, 236, 247, 0.88);
}

.share-card-date {
  margin-left: auto;
}

.share-card-main {
  margin-top: 20px;
}

.share-card-sign {
  font-size: 1.54rem;
  font-weight: 700;
  line-height: 1.18;
}

.share-card-mood {
  margin: 10px 0 0;
  font-size: 0.98rem;
  color: rgba(248, 241, 253, 0.95);
}

.share-card-quote {
  margin: 16px 0 0;
  line-height: 1.86;
  font-size: 1rem;
  color: rgba(246, 238, 252, 0.92);
}

.share-card-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.share-card-note p {
  margin: 10px 0 0;
  line-height: 1.76;
  font-size: 0.92rem;
  color: rgba(244, 237, 251, 0.9);
}

@media (hover: hover) {
  .liquid-button:hover,
  .mini-action-button:hover,
  .icon-button:hover,
  .tab-button:hover,
  .zodiac-button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 390px) {
  .app-bar {
    padding: 12px;
  }

  .hero,
  .companion-card,
  .daily-quote-card,
  .fortune-slip-shell,
  .last-reading-card,
  .note-to-yuanyuan-card,
  .quote-collection-card,
  .wish-card,
  .share-entry-card,
  .detail-hero,
  .detail-section {
    padding: 16px;
  }

  .detail-sign-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 374px) {
  .app {
    width: min(calc(100vw - 20px - var(--safe-left) - var(--safe-right)), 440px);
    padding-top: calc(12px + var(--safe-top));
  }

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

  .hero-actions,
  .fortune-slip-actions,
  .wish-actions,
  .sheet-action-row,
  .hero-topline,
  .detail-topline,
  .card-head,
  .detail-actions {
    flex-wrap: wrap;
  }

  .teaser-grid,
  .metric-grid,
  .lucky-grid {
    grid-template-columns: 1fr;
  }

  .mood-zone-head,
  .romance-topline {
    align-items: flex-start;
  }

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

  .sheet {
    width: min(calc(100vw - 16px - var(--safe-left) - var(--safe-right)), 412px);
    bottom: calc(82px + var(--safe-bottom));
  }

  .tab-bar {
    width: min(calc(100vw - 16px - var(--safe-left) - var(--safe-right)), 412px);
  }

  .splash-core {
    width: 144px;
    height: 144px;
  }
}

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

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.24;
    transform: scale(0.88);
  }

  50% {
    opacity: 0.96;
    transform: scale(1.14);
  }
}

@keyframes shooting {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-24deg);
  }

  8% {
    opacity: 0.82;
  }

  22% {
    opacity: 0;
    transform: translate3d(-178px, 128px, 0) rotate(-24deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(-178px, 128px, 0) rotate(-24deg);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

  50% {
    transform: translate3d(12px, -16px, 0) scale(1.04);
  }
}

@keyframes ambientFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(14px, -14px, 0);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.88;
    transform: scale(1.05);
  }
}

@keyframes screenReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.988);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wishBottleDrift {
  0% {
    opacity: 0.64;
    transform: translate3d(0, 0, 0) scale(0.92);
  }

  40% {
    opacity: 1;
    transform: translate3d(10px, -14px, 0) scale(1.08);
  }

  100% {
    opacity: 0.36;
    transform: translate3d(18px, -28px, 0) scale(0.94);
  }
}

@keyframes bottleGlowPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
