/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: #0f0c29;
  background: linear-gradient(160deg, #0f0c29 0%, #1a1042 40%, #24243e 100%);
  color: #fff;
  min-height: 100vh;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ========== 顶部日期区块 ========== */
.header-card {
  background: linear-gradient(135deg, rgba(102,126,234,0.35) 0%, rgba(118,75,162,0.35) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 24px 20px 20px;
  margin: 20px 0 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.header-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,215,102,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.date-main {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.2;
}
.date-week {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.constellation-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 14px;
  margin-top: 12px;
  font-size: 14px;
  color: #e8d5ff;
}
.constellation-icon { font-size: 16px; }

.daily-blessing {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  font-style: italic;
  padding: 0 8px;
}

/* ========== 状态行 ========== */
.status-row {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
}
.status-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
}
.status-pill.safe {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.3);
  color: #86efac;
}
.status-pill.warning {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}
.status-pill.wish-on {
  background: rgba(255,215,102,0.15);
  border-color: rgba(255,215,102,0.3);
  color: #fde68a;
}
/* 烛火光晕（许愿后激活） */
.wish-pill-glow {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,80,0.55) 0%, rgba(180,80,255,0.18) 60%, transparent 75%);
  left: 10px;
  top: 50%; transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.status-pill.wish-off .wish-pill-glow {
  opacity: 1;
  animation: wish-glow-breathe 2s ease-in-out infinite;
}
@keyframes wish-glow-breathe {
  0%, 100% { transform: translateY(-50%) scale(1);   opacity: 0.7; }
  50%       { transform: translateY(-50%) scale(1.35); opacity: 1; }
}

/* 许愿后：封印态 */
.status-pill.wish-off {
  background: linear-gradient(135deg, rgba(120,60,180,0.28) 0%, rgba(255,180,50,0.13) 100%);
  border-color: rgba(200,150,255,0.35);
  color: rgba(255,230,160,0.9);
  position: relative;
  overflow: hidden;
}
/* 外层脉冲光圈 */
.status-pill.wish-off::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: transparent;
  border: 1.5px solid rgba(200,150,255,0.5);
  animation: wish-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
/* 内层金色光晕扫光 */
.status-pill.wish-off::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,102,0.12), transparent);
  animation: wish-sweep 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wish-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.025); }
}
@keyframes wish-sweep {
  0%   { left: -80%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* 许愿成功入场动画 */
@keyframes wish-seal-in {
  0%   { transform: scale(0.92); opacity: 0.4; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
.status-pill.wish-sealed {
  animation: wish-seal-in 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}
.status-icon { font-size: 15px; }

/* ========== 通用卡片 ========== */
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: linear-gradient(to bottom, #ffd766, #ff9800);
  border-radius: 2px;
}

/* ========== 已激活符纸 ========== */
.active-cards-wrap { display: flex; flex-direction: column; gap: 10px; }
.active-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,215,102,0.06);
  border: 1px solid rgba(255,215,102,0.15);
  border-radius: 12px;
  padding: 12px 14px;
}
.card-emoji { font-size: 26px; line-height: 1; }
.card-detail { flex: 1; min-width: 0; }
.card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.card-name { font-size: 15px; font-weight: 600; color: #ffd766; }
.star-badge {
  background: linear-gradient(135deg, #ffd766, #ff9800);
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
}
.card-blessing { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.4; }

/* ========== 运势星星 ========== */
.fortune-grid { display: flex; flex-direction: column; gap: 0; }
.fortune-item {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fortune-item:last-child { border-bottom: none; }
.fortune-label {
  width: 72px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.fortune-formula {
  flex: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}
.fortune-stars {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
}
/* 圆点改为星形字符 */
.star-dot {
  width: 16px; height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  position: relative;
}
.star-dot::before { content: '★'; }
.star-dot.on {
  color: #ffd766;
  filter: drop-shadow(0 0 3px rgba(255,215,102,0.9));
  animation: starTwinkle 2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.15s);
}
.star-dot.off { color: rgba(255,215,102,0.18); }

@keyframes starTwinkle {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(255,215,102,0.9)); }
  50%      { transform: scale(1.2); filter: drop-shadow(0 0 7px rgba(255,215,102,1)); }
}

/* ========== 宜忌 ========== */
.yi-ji-row {
  display: flex;
  gap: 12px;
}
.yi-block, .ji-block {
  flex: 1;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.yi-block {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
}
.ji-block {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
}
.yi-label {
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.ji-label {
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.yi-items, .ji-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yi-items span { font-size: 13px; color: #dcfce7; }
.ji-items span { font-size: 13px; color: #fee2e2; }

/* ========== 用户ID区块 ========== */
.user-section {
  background: linear-gradient(135deg, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.25) 100%);
  border: 1px solid rgba(102,126,234,0.25);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 3px; }
.user-id-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}
.user-tip { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; }
.copy-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.copy-btn:active { background: rgba(255,255,255,0.25); }

/* ========== 底部导航按钮 ========== */
.nav-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.nav-btn {
  flex: 1;
  padding: 14px 10px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  letter-spacing: 0.5px;
}
.nav-btn:active { transform: scale(0.97); opacity: 0.9; }
.nav-btn-birthday {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}
.nav-btn-couple {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: #fff;
}

/* ========== 测试区域 ========== */
.test-area {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.test-area-title {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.test-area input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.test-area input::placeholder { color: rgba(255,255,255,0.3); }
.test-row { display: flex; gap: 8px; }
.test-row button {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255,215,102,0.2);
  color: #ffd766;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,215,102,0.25);
}

/* ========== Toast ========== */
.toast-msg {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.82);
  color: white;
  padding: 13px 26px;
  border-radius: 10px;
  z-index: 10001;
  font-size: 15px;
  text-align: center;
  max-width: 260px;
  animation: fadeInOut 2s ease forwards;
}
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translate(-50%, -60%); }
  15%  { opacity: 1; transform: translate(-50%, -50%); }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ========== ✨ 华丽 NFC 激活动画系统 ========== */

/* 全屏遮罩 */
.nfc-anim-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nfc-anim-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* 背景光晕 */
.nfc-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.97) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nfc-anim-overlay.active .nfc-bg-glow {
  opacity: 1;
}

/* 能量波纹 */
.nfc-ripples {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  opacity: 0;
}
.nfc-anim-overlay.active .ripple {
  animation: rippleExpand 2s ease-out infinite;
}
.nfc-anim-overlay.active .ripple.r1 { animation-delay: 0s; }
.nfc-anim-overlay.active .ripple.r2 { animation-delay: 0.4s; }
.nfc-anim-overlay.active .ripple.r3 { animation-delay: 0.8s; }
.nfc-anim-overlay.active .ripple.r4 { animation-delay: 1.2s; }

@keyframes rippleExpand {
  0%   { width: 60px; height: 60px; opacity: 0.8; }
  100% { width: 120vw; height: 120vw; opacity: 0; }
}

/* 法阵通用 */
.nfc-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nfc-anim-overlay.active .nfc-ring {
  opacity: 1;
}

/* 外层法阵 */
.nfc-ring-outer {
  width: 320px; height: 320px;
  animation: none;
}
.nfc-anim-overlay.active .nfc-ring-outer {
  animation: ringRotateCW 8s linear infinite;
}

/* 中层法阵 */
.nfc-ring-mid {
  width: 240px; height: 240px;
}
.nfc-anim-overlay.active .nfc-ring-mid {
  animation: ringRotateCCW 5s linear infinite;
}

/* 内层法阵 */
.nfc-ring-inner {
  width: 160px; height: 160px;
}
.nfc-anim-overlay.active .nfc-ring-inner {
  animation: ringRotateCW 3s linear infinite, ringPulse 1.5s ease-in-out infinite;
}

@keyframes ringRotateCW  { to { transform: translate(-50%, -50%) rotate(360deg);  } }
@keyframes ringRotateCCW { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes ringPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* SVG 元素颜色（由JS动态设置 --ring-color 变量） */
.ring-svg-circle  { stroke: var(--ring-color, #ffd766); }
.ring-svg-line    { stroke: var(--ring-color, #ffd766); }
.ring-svg-star    { stroke: var(--ring-color, #ffd766); opacity: 0.7; }
.ring-svg-tri     { stroke: var(--ring-color, #ffd766); opacity: 0.5; }
.ring-svg-dot     { fill: var(--ring-color, #ffd766); }

/* 中心主符号 */
.nfc-center-symbol {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.nfc-symbol-glow {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ring-color, #ffd766) 0%, transparent 70%);
  opacity: 0;
  filter: blur(20px);
  animation: none;
}
.nfc-anim-overlay.active .nfc-symbol-glow {
  animation: symbolGlowPulse 1s ease-in-out infinite;
}

.nfc-symbol-text {
  font-size: 80px;
  position: relative;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 0 20px var(--ring-color, #ffd766));
}
.nfc-anim-overlay.active .nfc-symbol-text {
  animation: symbolAppear 0.6s 0.3s cubic-bezier(0.175,0.885,0.32,1.275) forwards,
             symbolFloat  3s 0.9s ease-in-out infinite;
}

@keyframes symbolGlowPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}
@keyframes symbolAppear {
  from { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes symbolFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.05); }
}

/* 粒子层 */
.nfc-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nfc-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFly var(--dur, 1.2s) var(--delay, 0s) ease-out forwards;
}
@keyframes particleFly {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* 符文飘散层 */
.nfc-runes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nfc-rune {
  position: absolute;
  font-size: var(--sz, 20px);
  color: var(--ring-color, #ffd766);
  opacity: 0;
  pointer-events: none;
  animation: runeFly var(--dur, 1.8s) var(--delay, 0s) ease-out forwards;
  filter: drop-shadow(0 0 6px var(--ring-color, #ffd766));
}
@keyframes runeFly {
  0%   { opacity: 0; transform: translate(0,0) rotate(0deg) scale(0.5); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot, 360deg)) scale(0); }
}

/* 顶部卡名区域 */
.nfc-title-area {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  z-index: 11;
}
.nfc-anim-overlay.active .nfc-title-area {
  animation: titleSlideIn 0.6s 0.5s ease-out forwards;
}
@keyframes titleSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nfc-card-name {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--ring-color, #ffd766),
               0 0 40px var(--ring-color, #ffd766);
}
.nfc-card-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* 底部祝福语 */
.nfc-blessing-bar {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  z-index: 11;
  width: 80%;
}
.nfc-anim-overlay.active .nfc-blessing-bar {
  animation: titleSlideIn 0.6s 0.8s ease-out forwards;
}
.nfc-blessing-text {
  font-size: 17px;
  color: var(--ring-color, #ffd766);
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 12px var(--ring-color, rgba(255,215,102,0.6));
  line-height: 1.6;
}

/* 退场动画 */
.nfc-anim-overlay.exiting {
  animation: overlayFadeOut 0.6s ease forwards;
}
@keyframes overlayFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* 重复触碰模式：法阵半透明 */
.nfc-anim-overlay.repeat-mode .nfc-ring { opacity: 0.5 !important; }
.nfc-anim-overlay.repeat-mode .nfc-symbol-text { filter: drop-shadow(0 0 12px var(--ring-color, #ffd766)) !important; }
.nfc-anim-overlay.repeat-mode .nfc-card-name { font-size: 20px; }
.nfc-anim-overlay.repeat-mode .nfc-card-sub { color: rgba(255,200,100,0.8); }

/* ========== 尾部提示 ========== */
.footer-tip {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  margin: 8px 0 20px;
  letter-spacing: 0.5px;
}

/* ========== Birthday / Couple 页面通用 ========== */
.birthday-box {
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 30px;
  margin-top: 50px;
}
.birthday-box h2 { text-align: center; color: #ffd766; margin-bottom: 10px; }
.subtitle { text-align: center; color: #aaa; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #ffd766; font-weight: 500; }
.form-input { width: 100%; padding: 12px; border: none; border-radius: 8px; font-size: 16px; background: rgba(255,255,255,0.9); color: #333; }
.constellation-display { padding: 12px; background: rgba(255,255,255,0.1); border-radius: 8px; text-align: center; color: #ffd766; font-weight: bold; }
.button-group { display: flex; gap: 15px; margin-top: 30px; }
.btn-primary, .btn-secondary { flex: 1; padding: 15px; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, #ffd766, #ffb347); color: #1a1a2e; }
.btn-primary:disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); cursor: not-allowed; }
.btn-secondary { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.5); }

/* ========== 加载占位 ========== */
.loading-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.3);
  padding: 24px;
  font-size: 14px;
}

/* ========== 许愿弹层 ========== */
.wish-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 19000;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.wish-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.wish-modal {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(160deg, #1a1042 0%, #24243e 100%);
  border: 1px solid rgba(255,215,102,0.2);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 40px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
}
.wish-modal-overlay.open .wish-modal {
  transform: translateY(0);
}
.wish-modal-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto 22px;
}
.wish-modal-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #ffd766;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.wish-modal-sub {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}
.wish-textarea {
  width: 100%;
  min-height: 90px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,215,102,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: #fff;
  resize: none;
  outline: none;
  line-height: 1.6;
  font-family: inherit;
  transition: border-color 0.2s;
}
.wish-textarea:focus {
  border-color: rgba(255,215,102,0.55);
}
.wish-textarea::placeholder { color: rgba(255,255,255,0.25); }
.wish-char-count {
  text-align: right;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin: 6px 2px 18px;
}
.wish-btn-row {
  display: flex;
  gap: 12px;
}
.wish-btn-cancel {
  flex: 0 0 80px;
  padding: 14px 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.wish-btn-cancel:active { background: rgba(255,255,255,0.14); }
.wish-btn-submit {
  flex: 1;
  padding: 14px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd766 0%, #ff9800 100%);
  border: none;
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: opacity 0.15s, transform 0.15s;
}
.wish-btn-submit:active { opacity: 0.85; transform: scale(0.98); }
.wish-btn-submit:disabled {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}

/* 许愿成功后 pill 上的玄学副标题 */
.wish-preview-text {
  font-size: 10px;
  background: linear-gradient(90deg, #ffd766, #c084fc, #ffd766);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 2px;
  letter-spacing: 1.8px;
  font-style: italic;
  display: none;
  animation: wish-text-shine 3s linear infinite, wish-text-fade 1.8s ease-in-out infinite alternate;
}
.wish-preview-text.show { display: block; }
@keyframes wish-text-shine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes wish-text-fade {
  0%   { opacity: 0.55; }
  100% { opacity: 1; }
}

/* 许愿成功粒子动画（复用 nfc-particle，颜色由JS指定） */
.wish-success-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 19500;
}
