/* ==========================================================================
   佩佩风格 · 扩展模块（每日关心 / 心情交互 / 小游戏）
   由 style.css 之后加载，可覆盖前面的规则
   ========================================================================== */

/* ---------------------- 每日关心卡片 ---------------------- */
.daily-card { background: linear-gradient(150deg, #FFF8FC 0%, #FFEFF7 100%); }

.daily-badge {
  font-size: 10.5px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  background: var(--pink-200); color: var(--pink-600);
  letter-spacing: .5px;
}

.daily-greet {
  font-size: 14px; font-weight: 700; color: var(--pink-600);
  text-align: center; padding: 2px 0 12px;
  border-bottom: 1.5px dashed var(--pink-200);
}

.daily-main {
  position: relative;
  padding: 16px 14px 14px 30px;
  margin-top: 12px;
}
.daily-quote {
  position: absolute; top: 2px; left: 2px;
  font-size: 34px; color: var(--pink-200);
  font-family: Georgia, serif; line-height: 1;
}
.daily-main p {
  font-size: 15px; font-weight: 600; line-height: 1.8;
  color: var(--text);
}

.tip-box {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  margin-top: 10px;
}
.tip-icon {
  font-size: 20px; flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--pink-50); border-radius: 11px;
}
.tip-body { flex: 1; min-width: 0; }
.tip-label {
  font-size: 10.5px; font-weight: 800; color: var(--pink-500);
  letter-spacing: .5px; display: block; margin-bottom: 2px;
}
.tip-body p { font-size: 13.5px; line-height: 1.65; }

/* ---------------------- 心情小交互 ---------------------- */
.mood-reaction {
  margin-top: 12px;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--pink-50);
  border: 1.5px solid var(--pink-100);
  animation: popIn .4s cubic-bezier(.34, 1.5, .64, 1);
}
@keyframes popIn { from { transform: scale(.9); opacity: 0; } }
.mood-reaction .mr-emoji {
  font-size: 34px; display: block; margin-bottom: 4px;
  animation: bounceIn .6s cubic-bezier(.34, 1.6, .64, 1);
}
@keyframes bounceIn {
  0%   { transform: scale(0) rotate(-20deg); }
  60%  { transform: scale(1.25) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
.mood-reaction p { font-size: 13.5px; font-weight: 600; color: var(--pink-600); line-height: 1.6; }

/* 爱心飘落 */
.heart-fall {
  position: fixed; top: -30px;
  font-size: 18px; pointer-events: none; z-index: 150;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ---------------------- 小游戏通用 ---------------------- */
.games-played { font-size: 11.5px; color: var(--text-2); font-weight: 700; }

.game-tabs { display: flex; gap: 7px; margin-bottom: 14px; }
.game-tab {
  flex: 1;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text-2);
  border-radius: 12px;
  padding: 9px 4px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
}
.game-tab.active {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  border-color: var(--pink-500);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 122, 179, .32);
}

.game-stage { min-height: 240px; }

.game-hint {
  text-align: center; font-size: 12.5px; color: var(--text-2);
  margin-bottom: 12px; line-height: 1.6;
}
.game-stat {
  display: flex; justify-content: center; gap: 18px;
  margin-bottom: 12px;
}
.game-stat div { text-align: center; }
.game-stat b { display: block; font-size: 19px; color: var(--pink-600); font-weight: 800; line-height: 1.2; }
.game-stat span { font-size: 10.5px; color: var(--text-2); font-weight: 600; }

/* ---------------------- 翻牌配对 ---------------------- */
.match-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.match-card {
  aspect-ratio: 1;
  border-radius: 13px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--pink-300), var(--pink-400));
  cursor: pointer;
  font-size: 24px;
  display: grid; place-items: center;
  position: relative;
  transition: transform .25s, background .3s, border-color .3s;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  padding: 0;
  color: transparent;          /* 未翻开时隐藏图案 */
}
.match-card::after {
  content: '🌸';
  position: absolute;
  font-size: 18px;
  opacity: .9;
  color: initial;
}
/* 翻开 / 配对成功：显示图案、去掉背面花 */
.match-card.flipped, .match-card.matched {
  background: var(--white);
  border-color: var(--pink-200);
  color: initial;
}
.match-card.flipped::after, .match-card.matched::after { content: none; }
.match-card.matched { border-color: var(--pink-400); background: var(--pink-50); }
.match-card.matched { animation: popIn .4s; }

/* 飘落爱心只在页面顶层飘，不参与布局计算 */
.heart-fall { z-index: 300; }

/* ---------------------- 接住星星 ---------------------- */
.catch-area {
  position: relative;
  height: 300px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #FFF9FC, #FFEFF7);
  border: 1.5px solid var(--line);
  overflow: hidden;
  touch-action: none;
}
.catch-basket {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 40px;
  display: grid; place-items: center;
  font-size: 30px;
  will-change: left;
}
.catch-item {
  position: absolute;
  font-size: 22px;
  will-change: top;
}
.catch-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(255, 245, 250, .92);
  text-align: center;
  padding: 20px;
}
.catch-overlay h4 { font-size: 17px; color: var(--pink-600); font-weight: 800; margin-bottom: 6px; }
.catch-overlay p { font-size: 13px; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; }

/* ---------------------- 每日一问 ---------------------- */
.quiz-q {
  font-size: 15px; font-weight: 700; line-height: 1.7;
  margin-bottom: 14px; padding: 14px;
  background: var(--pink-50); border-radius: var(--radius-sm);
  border: 1.5px solid var(--pink-100);
}
.quiz-opts { display: flex; flex-direction: column; gap: 9px; }
.quiz-opt {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text);
  cursor: pointer; font-family: inherit;
  text-align: left;
  transition: all .2s;
  display: flex; align-items: center; gap: 9px;
}
.quiz-opt::before {
  content: attr(data-idx);
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  background: var(--pink-100); color: var(--pink-600);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
.quiz-opt:active { transform: scale(.98); }
.quiz-opt:hover:not(.locked) { border-color: var(--pink-300); background: var(--pink-50); }
.quiz-opt.correct { border-color: #7CD4A8; background: #EFFBF5; color: #2E8B62; }
.quiz-opt.correct::before { background: #7CD4A8; color: #fff; }
.quiz-opt.wrong { border-color: #FFA8BE; background: #FFF2F6; color: #D14B72; }
.quiz-opt.wrong::before { background: #FFA8BE; color: #fff; }
.quiz-opt.locked { cursor: default; }

.quiz-result {
  margin-top: 13px; padding: 13px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13.5px; font-weight: 700; line-height: 1.6;
  animation: popIn .35s;
}
.quiz-result.ok { background: #EFFBF5; color: #2E8B62; border: 1.5px solid #B9EBD2; }
.quiz-result.no { background: #FFF2F6; color: #D14B72; border: 1.5px solid #FFD3E0; }
.quiz-result small { display: block; font-weight: 600; font-size: 12px; margin-top: 3px; opacity: .85; }

.restart-row { display: flex; justify-content: center; margin-top: 14px; }

/* 留言去掉署名后的排版微调 */
.note-item p { line-height: 1.65; }
