/* WishLine 的主题（午夜蓝 + 香槟金）和晾绳卡片的画面 */
:root {
  --bg1: #090d26;
  --bg2: #27306e;
  --panel: #141a44;
  --ink: #f6f6ff;
  --muted: #b9c0ee;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.15);
  --line: rgba(255, 255, 255, 0.17);
  --accent: #e2a71f;
  --accent-2: #ffd866;
  --on-accent: #2b1d00;
  --gold: #f5c542;
  --hand: "Segoe Print", "Bradley Hand", "Noteworthy", "Comic Sans MS", cursive;
}

/* ---------- 背景：星空 ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.spark {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; opacity: .25;
  animation: twinkle var(--t) ease-in-out infinite; animation-delay: var(--d);
}
@keyframes twinkle { 50% { opacity: .95; } }
.glow {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, .24), transparent 70%);
  animation: drift 9s ease-in-out infinite alternate; animation-delay: var(--d);
}
@keyframes drift { to { transform: translate(16px, -22px); } }

/* ---------- 晾绳和卡片 ---------- */
.lines { max-width: 440px; margin: 0 auto; padding: 0 2px; }
.hero .lines { width: min(100%, 310px); max-width: none; }
.line { position: relative; display: flex; margin-bottom: 28px; }
.rope { position: absolute; left: 0; top: 0; width: 100%; height: 10px; overflow: visible; }
.rope path { fill: none; stroke: #c9a24a; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.slot { flex: 1; display: flex; justify-content: center; transform: translateY(var(--sag, 0)); }
.wish {
  position: relative; display: block; width: min(100%, 104px); margin-top: 5px; padding: 13px 0 0;
  border: 0; background: none; rotate: var(--rot, 0deg); transform-origin: 50% 0;
  animation: sway 3.8s ease-in-out infinite alternate; animation-delay: var(--d, 0s);
}
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.wish.is-new { animation: drop .55s cubic-bezier(.2, 1.3, .4, 1) both, sway 3.8s ease-in-out .55s infinite alternate; }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pin {
  position: absolute; left: 50%; top: 0; width: 12px; height: 22px; transform: translateX(-50%);
  border-radius: 3px; background: linear-gradient(90deg, #d9a55b, #f3d6a0 45%, #d9a55b);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.pin::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1.5px; background: rgba(90, 50, 10, .55); }
.paper {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; aspect-ratio: 3 / 4;
  padding: 9px 8px 8px; border-radius: 4px; background: var(--paper, #fff6e3); color: #2b2a33;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .35); transition: box-shadow .3s, transform .12s;
}
.wish:active .paper { transform: scale(.97); }
.stamp { font-size: 22px; line-height: 1.2; padding: 2px 5px; border: 1.5px dashed rgba(43, 42, 51, .4); border-radius: 4px; }
.who { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--hand); font-size: 14px; font-weight: 700; }
.body {
  flex: 1; width: 100%; overflow: hidden; padding-top: 3px; font-size: 11px; line-height: 1.35; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
}
.body.is-blank { display: block; }
.rule { display: block; height: 3px; margin: 6px 8px; border-radius: 2px; background: rgba(43, 42, 51, .16); }
.rule.short { width: 55%; margin: 6px auto; }
.lock { position: absolute; right: 6px; bottom: 6px; font-size: 13px; }
.wish.is-open .paper { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(245, 197, 66, .5); }
.wish.is-ghost { rotate: 0deg; animation: none; }
.wish.is-ghost .paper { background: transparent; border: 1.5px dashed var(--line); box-shadow: none; }
.wish.is-ghost .who { margin: auto; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 500; }
