:root {
  color-scheme: dark;
  --bg: #170f0e;
  --bg-soft: #211714;
  --panel: rgba(49, 34, 29, 0.76);
  --panel-strong: rgba(57, 39, 33, 0.94);
  --line: rgba(255, 230, 202, 0.12);
  --line-strong: rgba(255, 221, 181, 0.23);
  --text: #f8eee3;
  --text-soft: #cbbbae;
  --text-faint: #ad9c8f;
  --amber: #f2b778;
  --amber-light: #ffdaa0;
  --peach: #d98d67;
  --green: #9fc6aa;
  --red: #e49a91;
  --shadow: 0 24px 62px rgba(0, 0, 0, 0.3);
  font-family: "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 24%, rgba(119, 70, 47, 0.2), transparent 33rem),
    radial-gradient(circle at 4% 72%, rgba(94, 54, 48, 0.2), transparent 26rem),
    linear-gradient(180deg, #1c1210 0%, #160f0e 56%, #110c0b 100%);
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 3px;
}

.page-glow {
  position: absolute;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.13;
  pointer-events: none;
}

.page-glow-a {
  top: -14rem;
  left: -12rem;
  background: #b46042;
}

.page-glow-b {
  right: -17rem;
  top: 34rem;
  background: #805b59;
}

.home-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: max(30px, env(safe-area-inset-top)) 26px max(60px, env(safe-area-inset-bottom));
}

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding: 14px 4px 30px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 9px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-light);
  box-shadow: 0 0 13px 4px rgba(255, 206, 139, 0.35);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.12;
}

.home-subtitle {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.header-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.soft-button,
.member-count {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(58, 40, 34, 0.86);
}

.soft-button {
  padding: 0 16px;
  color: var(--text-soft);
  font-size: 12px;
}

.soft-button span {
  margin-right: 5px;
  color: var(--green);
}

.soft-button.is-active {
  border-color: rgba(255, 218, 160, 0.42);
  background: rgba(106, 68, 48, 0.72);
  color: var(--amber-light);
}

.member-count {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 126px;
  padding: 0 34px 0 15px;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.member-count::after {
  position: absolute;
  right: 14px;
  top: 50%;
  content: "›";
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 20px;
}

.member-count:hover {
  border-color: rgba(255, 218, 160, 0.36);
  background: rgba(72, 49, 40, 0.94);
  transform: translateY(-1px);
}

.member-count-line {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.member-count .member-count-line strong {
  color: var(--amber-light);
  font-size: 18px;
}

.member-count .member-count-line span {
  color: var(--text-soft);
  font-size: 13px;
}

.member-count small {
  margin-top: 1px;
  color: var(--text-faint);
  font-size: 12px;
}

.ring-card,
.lebao-card,
.stories {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ring-card {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 22px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 45%, rgba(151, 93, 65, 0.12), transparent 24rem),
    linear-gradient(165deg, rgba(52, 37, 32, 0.96), rgba(31, 22, 20, 0.98));
}

.ring-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.035), transparent 30%);
  pointer-events: none;
}

.ring-caption,
.section-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ring-caption h2,
.section-heading h2,
.lebao-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: var(--amber-light);
  font-size: 18px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.icon-button:hover {
  border-color: rgba(255, 218, 160, 0.36);
  background: rgba(255, 255, 255, 0.075);
}

.icon-button.sound-off {
  color: var(--text-faint);
}

.icon-button.sound-off::after {
  position: absolute;
  width: 20px;
  height: 1px;
  content: "";
  transform: rotate(-48deg);
  background: currentColor;
}

.icon-button.sound-on {
  border-color: rgba(255, 218, 160, 0.32);
  color: var(--amber-light);
  box-shadow: 0 0 16px rgba(238, 169, 107, 0.13);
}

.icon-button.sound-on span {
  animation: soundBreathe 1.8s ease-in-out infinite;
}

@keyframes soundBreathe {
  50% { transform: scale(1.13); text-shadow: 0 0 9px rgba(255, 218, 160, 0.65); }
}

.ring-stage {
  position: relative;
  width: min(100%, 650px);
  aspect-ratio: 1;
  margin: 10px auto 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ring-stage.is-dragging {
  cursor: grabbing;
}

.ring-stage:focus-visible {
  outline: 2px solid rgba(255, 218, 160, 0.72);
  outline-offset: 3px;
  border-radius: 50%;
}

.ring-track {
  position: absolute;
  inset: 8.5%;
  border: 1px solid rgba(255, 222, 189, 0.16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 30px rgba(246, 171, 107, 0.04),
    0 0 40px rgba(246, 171, 107, 0.035);
  transform: rotate(var(--ring-rotation, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

.ring-track::before,
.ring-track::after {
  position: absolute;
  inset: -4px;
  border: 1px dashed rgba(255, 230, 206, 0.045);
  border-radius: 50%;
  content: "";
}

.ring-track::after {
  left: 42%;
  top: -2px;
  right: auto;
  bottom: auto;
  width: 16%;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 213, 161, 0.74), transparent);
  box-shadow: 0 0 13px rgba(255, 190, 121, 0.42);
}

.member-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transform: rotate(var(--ring-rotation, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

.member-light {
  position: absolute;
  width: clamp(48px, 8.2vw, 66px);
  height: clamp(48px, 8.2vw, 66px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--ring-counter-rotation, 0deg));
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.member-light:hover {
  filter: brightness(1.12);
}

.member-light:focus-visible {
  outline: 2px solid rgba(255, 229, 193, 0.82);
  outline-offset: 3px;
}

.member-light.is-inactive {
  opacity: 0.5;
}

.member-light::before {
  position: absolute;
  z-index: -1;
  inset: var(--halo-inset, -18px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--halo-r, 112), var(--halo-g, 177), var(--halo-b, 225), var(--halo-soft-alpha, 0.19)) 0 18%,
    rgba(var(--halo-r, 112), var(--halo-g, 177), var(--halo-b, 225), var(--halo-alpha, 0.26)) 34%,
    transparent 72%
  );
  filter: blur(3px);
  opacity: 0;
  content: "";
  pointer-events: none;
}

.member-light.is-active::before {
  opacity: 1;
  animation: memberHaloBreathe 3.9s ease-in-out var(--member-delay, 0s) infinite;
}

.ring-avatar-image {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 0 51%, rgba(0, 0, 0, 0.96) 58%, rgba(0, 0, 0, 0.28) 70%, transparent 78%);
  mask-image: radial-gradient(circle, #000 0 51%, rgba(0, 0, 0, 0.96) 58%, rgba(0, 0, 0, 0.28) 70%, transparent 78%);
  pointer-events: none;
  user-select: none;
}

.member-light.is-inactive .ring-avatar-image {
  filter: grayscale(0.28) saturate(0.62) brightness(0.65);
}

.member-light.is-active .ring-avatar-image {
  filter: saturate(0.9) brightness(1.03);
  animation: memberImageBreathe 3.9s ease-in-out var(--member-delay, 0s) infinite;
}

@keyframes memberHaloBreathe {
  0%, 100% { transform: scale(0.92); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes memberImageBreathe {
  0%, 100% { filter: saturate(0.88) brightness(0.98); }
  50% { filter: saturate(1.02) brightness(1.11); }
}

.ring-motion-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.ring-motion-hint span {
  color: var(--amber);
  font-size: 14px;
}

.wish-pool {
  position: absolute;
  z-index: 1;
  inset: 23%;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
}

.wish-pool::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 48% 43%, rgba(226, 162, 111, 0.18), transparent 32%),
    radial-gradient(ellipse at 35% 62%, rgba(148, 95, 102, 0.16), transparent 42%),
    radial-gradient(ellipse at 64% 55%, rgba(95, 102, 129, 0.17), transparent 43%);
  content: "";
  filter: blur(5px);
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: nebulaDrift 9s ease-in-out infinite alternate;
}

.nebula-one {
  inset: 20% 4% 28% 12%;
  background: rgba(194, 108, 83, 0.28);
  transform: rotate(18deg);
}

.nebula-two {
  inset: 34% 18% 5% 5%;
  background: rgba(126, 92, 112, 0.24);
  animation-delay: -4s;
}

@keyframes nebulaDrift {
  to { transform: translate3d(5%, -4%, 0) rotate(-8deg) scale(1.08); }
}

.ambient-stars,
.wish-layer {
  position: absolute;
  inset: 0;
}

.ambient-star {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 228, 184, var(--opacity));
  box-shadow: 0 0 calc(var(--size) * 4) rgba(255, 201, 132, 0.6);
  animation: starFall var(--duration) linear var(--delay) infinite, starTwinkle 2.8s ease-in-out var(--delay) infinite;
}

@keyframes starFall {
  from { transform: translateY(-14px); }
  to { transform: translateY(48px); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 1; }
}

.wish-spark {
  position: absolute;
  z-index: 3;
  width: var(--spark-size, 15px);
  height: var(--spark-size, 15px);
  padding: 0;
  border: 1px solid rgba(255, 236, 197, 0.75);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.42);
  background: radial-gradient(circle at 38% 32%, #fff9da 0 13%, #ffd488 35%, #b96b47 100%);
  box-shadow:
    0 0 8px 2px rgba(255, 219, 143, 0.75),
    0 0 24px 7px rgba(226, 135, 76, 0.26);
  animation: wishPulse var(--pulse, 6s) cubic-bezier(0.42, 0, 0.32, 1) var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

.wish-spark::after {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  content: "";
}

.wish-spark.mine {
  border-color: #cce7d3;
  box-shadow: 0 0 9px 2px rgba(202, 236, 209, 0.72), 0 0 25px 8px rgba(120, 178, 137, 0.22);
}

.wish-spark.accepted {
  background: radial-gradient(circle, #fff9da, #a9d6b4 54%, #52745d);
}

.wish-spark.offer {
  border-color: rgba(211, 244, 219, 0.82);
  background: radial-gradient(circle at 38% 32%, #fffce4 0 12%, #cce7c9 38%, #76977c 100%);
  box-shadow: 0 0 8px 2px rgba(220, 243, 207, 0.68), 0 0 24px 7px rgba(116, 166, 124, 0.25);
}

@keyframes wishPulse {
  0%, 100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.42);
  }
  20% {
    opacity: 0.76;
    transform: translate(-50%, -50%) translate3d(var(--drift-x-soft, 5px), var(--drift-y-soft, -4px), 0) scale(1.35);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(var(--drift-x, 15px), var(--drift-y, -12px), 0) scale(3.65);
  }
  73% {
    opacity: 0.82;
    transform: translate(-50%, -50%) translate3d(var(--return-x, -6px), var(--return-y, 7px), 0) scale(1.45);
  }
}

.wish-spark:hover,
.wish-spark:focus-visible {
  z-index: 8;
  animation-play-state: paused;
}

.pool-copy {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.pool-mark {
  color: var(--amber-light);
  font-size: 24px;
  text-shadow: 0 0 16px rgba(255, 204, 135, 0.9);
}

.pool-copy strong {
  margin-top: 4px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(17px, 3vw, 23px);
  letter-spacing: 0.16em;
}

.pool-copy small {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.pool-empty-cta {
  margin-top: 13px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 225, 183, 0.48);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffdda6, #eead6f);
  box-shadow: 0 10px 24px rgba(213, 126, 76, 0.25);
  color: #4a2a1d;
  font-size: 12px;
  font-weight: 800;
  pointer-events: auto;
}

.pool-empty-cta[hidden] {
  display: none;
}

.ring-card.empty-pool .ring-stage {
  width: min(100%, 560px);
}

.ring-card.empty-pool .primary-area {
  display: none;
}

.primary-area {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  text-align: center;
}

.primary-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.wish-button,
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid rgba(255, 231, 193, 0.55);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffd99c, #eca564 58%, #cd7b54);
  color: #4a281b;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 13px 35px rgba(216, 126, 74, 0.3), inset 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wish-button:hover,
.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(216, 126, 74, 0.37), inset 0 1px rgba(255, 255, 255, 0.5);
}

.share-button {
  border-color: rgba(196, 229, 203, 0.32);
  background: rgba(154, 196, 165, 0.1);
  box-shadow: none;
  color: #d1e9d6;
}

.share-button:hover {
  box-shadow: 0 13px 30px rgba(90, 136, 100, 0.16);
}

.primary-area p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.ring-tools {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 22px;
}

.ring-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 13px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ring-tools button:hover {
  border-color: rgba(255, 225, 190, 0.25);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.ring-tools button.priority-action {
  border-color: rgba(255, 196, 127, 0.48);
  background: rgba(235, 162, 96, 0.08);
  color: #f3d2ad;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 151, 0.05), 0 8px 22px rgba(197, 111, 67, 0.08);
}

.ring-tools .tool-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  place-items: center;
  border: 1px solid rgba(255, 216, 170, 0.18);
  border-radius: 50%;
  color: var(--amber);
  font-size: 12px;
  line-height: 1;
}

.lebao-card {
  display: flex;
  gap: 17px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(50, 36, 32, 0.96), rgba(38, 29, 27, 0.97));
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lebao-card.dismissed {
  display: none;
}

.lebao-avatar {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 9px 14px rgba(10, 6, 5, 0.2));
}

.lebao-avatar-card {
  width: 62px;
  height: 72px;
  align-self: flex-start;
  margin: -4px -2px -2px -5px;
}

.lebao-avatar-inline {
  width: 42px;
  height: 48px;
}

.lebao-avatar-small,
.lebao-avatar-policy {
  width: 34px;
  height: 38px;
}

.lebao-sheet-lead,
.lebao-match-note {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lebao-sheet-lead span,
.lebao-match-note span {
  min-width: 0;
}

.lebao-main {
  min-width: 0;
  flex: 1;
}

.lebao-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 12px;
}

.private-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(144, 193, 157, 0.12);
  color: #b2d6bc;
}

.lebao-card p {
  margin: 8px 0 11px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.lebao-preview {
  padding: 10px 12px;
  border-left: 2px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: rgba(238, 169, 107, 0.07);
  color: #ead8c8;
  font-size: 13px;
  line-height: 1.55;
}

.lebao-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.lebao-trust {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  padding: 10px 11px;
  border: 1px solid rgba(159, 198, 170, 0.13);
  border-radius: 13px;
  background: rgba(159, 198, 170, 0.045);
}

.lebao-trust > span {
  color: var(--green);
}

.lebao-trust p {
  margin: 0;
  font-size: 12px;
}

.lebao-trust strong {
  display: block;
  margin-bottom: 2px;
  color: #d7e6d9;
  font-size: 12px;
}

.small-primary,
.small-ghost {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.small-primary {
  border: 1px solid rgba(255, 205, 146, 0.38);
  background: rgba(240, 177, 112, 0.09);
  color: var(--amber-light);
}

.small-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
}

.stories {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(104, 139, 112, 0.07), transparent 18rem),
    linear-gradient(160deg, rgba(49, 35, 30, 0.97), rgba(34, 25, 23, 0.98));
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(129, 186, 147, 0.1);
  color: #acd2b8;
  font-size: 12px;
  white-space: nowrap;
}

.live-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fd1ae;
  box-shadow: 0 0 9px #7ebd91;
}

.story-list {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.story-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(198, 228, 205, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.028);
}

.story-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(242, 183, 120, 0.12);
  color: var(--amber-light);
}

.echo-update .story-icon {
  background: rgba(159, 198, 170, 0.13);
  color: #b9ddc3;
  font-size: 11px;
  font-weight: 850;
}

.echo-update {
  border-color: rgba(159, 198, 170, 0.15);
  background: rgba(139, 180, 149, 0.045);
}

.story-copy strong {
  display: block;
  color: #eaddd0;
  font-size: 13px;
}

.story-copy small,
.story-time,
.story-privacy {
  color: var(--text-faint);
  font-size: 12px;
}

.story-time {
  font-size: 11px;
  white-space: nowrap;
}

.story-privacy {
  margin: 13px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.home-footer {
  padding: 28px 14px 4px;
  text-align: center;
}

.home-footer span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.home-footer p {
  max-width: 34rem;
  margin: 7px auto 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 12px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
}

.app-footer img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.app-footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.4;
}

.app-footer-text em {
  font-style: normal;
}

.overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(12, 8, 7, 0.66);
  backdrop-filter: blur(9px);
  animation: fadeIn 0.22s ease;
}

.sheet {
  position: fixed;
  z-index: 51;
  left: 50%;
  bottom: 0;
  width: min(680px, 100%);
  max-height: min(88vh, 830px);
  overflow: auto;
  padding: 24px 24px max(30px, env(safe-area-inset-bottom));
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 20% 0%, rgba(160, 91, 59, 0.16), transparent 20rem),
    #251a17;
  box-shadow: 0 -28px 80px rgba(0, 0, 0, 0.5);
  animation: sheetUp 0.28s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.sheet-grip {
  width: 42px;
  height: 5px;
  margin: -8px auto 19px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.sheet-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1;
}

.sheet h2 {
  margin: 0;
  padding-right: 46px;
  font-size: 23px;
}

.sheet-lead {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.sheet-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wish-input,
.optimized-input,
.story-input {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  line-height: 1.65;
}

.wish-input {
  min-height: 116px;
  padding: 13px 14px;
  font-size: 15px;
}

.optimized-input,
.story-input {
  min-height: 84px;
  padding: 12px;
  font-size: 14px;
}

textarea::placeholder,
input::placeholder {
  color: #75665e;
}

.voice-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 11px;
}

.voice-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
}

.voice-button.listening {
  border-color: rgba(228, 154, 145, 0.45);
  color: #f2b2a9;
  animation: listeningPulse 1.1s ease-in-out infinite;
}

.voice-hint {
  color: var(--text-faint);
  font-size: 12px;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 19px;
}

.sheet-primary,
.sheet-secondary,
.sheet-danger {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 750;
}

.sheet-primary {
  flex: 1;
  background: linear-gradient(145deg, var(--amber-light), var(--amber));
  color: #4a2a1c;
}

.sheet-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.sheet-danger {
  border: 1px solid rgba(228, 154, 145, 0.2);
  background: rgba(228, 154, 145, 0.07);
  color: #ecafa7;
}

.privacy-summary,
.ai-polish,
.identity-card,
.match-note,
.confirm-card {
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.ai-polish,
.identity-card,
.confirm-card {
  padding: 14px;
}

.ai-polish-head,
.identity-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.ai-polish-head strong,
.identity-head strong {
  font-size: 12px;
}

.ai-polish-head small,
.identity-head small {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 11px;
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.privacy-summary div {
  padding: 13px 10px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.privacy-summary div:last-child {
  border-right: 0;
}

.privacy-summary strong {
  display: block;
  color: #d5c5b6;
  font-size: 12px;
}

.privacy-summary small {
  color: var(--text-faint);
  font-size: 11px;
}

.wish-detail-text {
  margin: 18px 0 0;
  color: #f1e4d6;
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  line-height: 1.75;
}

.wish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.wish-meta span,
.status-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-faint);
  font-size: 12px;
}

.match-note {
  padding: 11px 12px;
  color: #b9cdbc;
  font-size: 12px;
  line-height: 1.6;
}

.danger-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.danger-links button {
  padding: 3px;
  background: none;
  color: var(--text-faint);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.identity-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3c995, #b96e51);
  color: #4c2a20;
  font-weight: 850;
}

.identity-avatar-image {
  overflow: hidden;
  border: 0;
  background: #151d25;
}

.identity-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

.identity-card p,
.confirm-card p {
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.65;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 17px;
}

.member-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.member-option:disabled {
  cursor: default;
  opacity: 0.42;
}

.candidate-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #eac498, #b67558);
  color: #4c2d23;
  font-weight: 850;
}

.member-option strong,
.wish-list-item strong {
  display: block;
  font-size: 12px;
}

.member-option small,
.wish-list-item small {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 11px;
}

.wish-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.wish-list-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.wish-list-item i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber-light);
  box-shadow: 0 0 10px rgba(255, 210, 145, 0.8);
}

.wish-list-item em {
  color: var(--text-faint);
  font-size: 16px;
  font-style: normal;
}

.policy-list {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.policy-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.policy-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(159, 198, 170, 0.1);
  color: #b3d4bc;
}

.policy-item strong {
  display: block;
  font-size: 12px;
}

.policy-item p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.55;
}

.composer-kind-grid,
.checkin-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.composer-kind-grid {
  grid-template-columns: repeat(2, 1fr);
}

.kind-card,
.checkin-option {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.kind-card > span,
.checkin-option > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 183, 120, 0.12);
  color: var(--amber-light);
}

.kind-card strong,
.checkin-option strong {
  font-size: 14px;
}

.kind-card small,
.checkin-option small {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.55;
}

.kind-card.offer-kind > span {
  background: rgba(159, 198, 170, 0.13);
  color: #c5e2cc;
}

.kind-card:hover,
.checkin-option:hover {
  border-color: rgba(255, 218, 160, 0.32);
  background: rgba(255, 255, 255, 0.055);
}

.safety-note,
.privacy-device-note,
.relationship-upgrade,
.metric-note {
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(159, 198, 170, 0.13);
  border-radius: 14px;
  background: rgba(159, 198, 170, 0.045);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.65;
}

.feeling-fieldset {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.feeling-fieldset legend {
  padding: 0 6px;
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 700;
}

.feeling-fieldset label,
.share-echo-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.feeling-fieldset input,
.share-echo-choice input,
.scope-row input {
  margin-top: 3px;
  accent-color: var(--amber);
}

.echo-input {
  min-height: 104px;
}

.their-echo {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}

.their-echo strong {
  font-size: 12px;
}

.their-echo p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.share-echo-choice {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.share-echo-choice small {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
}

.echo-pair {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.echo-pair blockquote {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: #eadfd4;
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
  line-height: 1.7;
}

.echo-pair blockquote span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.relationship-upgrade strong,
.privacy-device-note strong {
  display: block;
  color: #dce8df;
}

.relationship-upgrade p,
.privacy-device-note p {
  margin: 4px 0 0;
}

.home-health {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.home-health div {
  padding: 13px 8px;
  background: #2b1e1a;
  text-align: center;
}

.home-health strong {
  display: block;
  color: var(--amber-light);
  font-size: 18px;
}

.home-health small {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 10px;
}

.metric-note {
  margin-top: 9px;
  border-color: rgba(255, 225, 190, 0.08);
  background: rgba(255, 255, 255, 0.022);
  text-align: center;
}

.lebao-care {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(242, 183, 120, 0.18);
  border-radius: 16px;
  background: rgba(242, 183, 120, 0.05);
}

.lebao-care strong {
  font-size: 12px;
}

.lebao-care p {
  margin: 4px 0 9px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.lebao-care button {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(242, 183, 120, 0.12);
  color: var(--amber-light);
  font-size: 11px;
}

.memory-list,
.scope-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.memory-entry {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.memory-entry strong,
.memory-entry small,
.memory-entry em {
  display: block;
}

.memory-entry strong {
  font-size: 12px;
}

.memory-entry small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 11px;
}

.memory-entry em {
  margin-top: 5px;
  overflow: hidden;
  color: var(--text-soft);
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-entry b {
  color: var(--amber);
}

.memory-glow {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #78665e;
}

.memory-glow.warm {
  background: var(--amber-light);
  box-shadow: 0 0 12px rgba(255, 202, 129, 0.72);
}

.empty-memory {
  padding: 24px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 17px;
  text-align: center;
}

.empty-memory > span {
  color: var(--amber);
  font-size: 22px;
}

.empty-memory strong {
  display: block;
  margin-top: 7px;
  font-size: 13px;
}

.empty-memory p {
  max-width: 26rem;
  margin: 6px auto 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
}

.scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}

.scope-row strong,
.scope-row small {
  display: block;
}

.scope-row strong {
  font-size: 12px;
}

.scope-row small {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 11px;
}

.scope-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.compact-identity {
  padding: 11px;
}

.wish-list-item .offer-dot {
  background: #b9ddc3;
  box-shadow: 0 0 10px rgba(159, 198, 170, 0.68);
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  max-width: min(86vw, 520px);
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translate(-50%, 18px);
  background: rgba(39, 28, 25, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

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

body.large-text {
  --text-soft: #e5d8cd;
  --text-faint: #cdbdb1;
}

.large-text .home-subtitle,
.large-text .primary-area p,
.large-text .lebao-card p,
.large-text .story-copy strong,
.large-text .story-copy small,
.large-text .story-privacy,
.large-text .home-footer p,
.large-text .sheet-lead,
.large-text .match-note,
.large-text .policy-item p,
.large-text .confirm-card p,
.large-text .identity-card p {
  font-size: 15px;
}

.large-text button,
.large-text textarea,
.large-text label {
  font-size: 15px;
}

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

@keyframes sheetUp {
  from { transform: translate(-50%, 100%); }
}

@keyframes listeningPulse {
  50% { box-shadow: 0 0 0 7px rgba(228, 154, 145, 0.08); }
}

@media (max-width: 680px) {
  .home-shell {
    padding: max(22px, env(safe-area-inset-top)) 14px max(44px, env(safe-area-inset-bottom));
  }

  .home-header {
    display: block;
    padding: 9px 4px 22px;
  }

  .header-actions {
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .text-size-button {
    flex: 0 0 auto;
  }

  .soft-button,
  .member-count {
    min-height: 46px;
  }

  .ring-card {
    padding: 20px 12px 16px;
    border-radius: 25px;
  }

  .ring-caption {
    padding: 0 6px;
  }

  .ring-caption h2,
  .section-heading h2,
  .lebao-card h2 {
    font-size: 16px;
  }

  .section-kicker {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .ring-stage {
    width: 100%;
    margin-top: 6px;
  }

  .ring-track {
    inset: 9.5%;
  }

  .wish-pool {
    inset: 24%;
  }

  .ring-tools {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 19px;
  }

  .ring-tools button {
    min-height: 44px;
    padding: 5px;
    font-size: 12px;
  }

  .primary-area {
    margin-top: 14px;
  }

  .primary-actions {
    width: min(100%, 340px);
    flex-direction: column;
  }

  .wish-button,
  .share-button {
    justify-content: center;
    width: 100%;
  }

  .primary-area p {
    max-width: 92%;
    line-height: 1.5;
  }

  .lebao-card,
  .stories {
    padding: 16px;
  }

  .lebao-card {
    gap: 12px;
  }

  .lebao-avatar-card {
    width: 52px;
    height: 62px;
  }

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

  .story-card {
    grid-template-columns: 38px 1fr;
  }

  .story-time {
    display: none;
  }

  .sheet {
    padding: 22px 16px max(26px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .privacy-summary {
    grid-template-columns: 1fr;
  }

  .privacy-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .privacy-summary div:last-child {
    border-bottom: 0;
  }

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

  .composer-kind-grid,
  .home-health {
    grid-template-columns: repeat(2, 1fr);
  }

  .sheet-actions {
    flex-wrap: wrap;
  }

  .sheet-primary {
    min-width: 58%;
  }
}

@media (max-width: 390px) {
  .member-light {
    width: 47px;
    height: 47px;
  }

  .pool-copy small {
    font-size: 12px;
  }

  .pool-empty-cta {
    margin-top: 9px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

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