/* ============================================================
   我们的小窝 · 粉色爱心情侣站
   原创配色：渐变粉 / 白 / 爱心
   ============================================================ */

:root {
  --pink-50: #fff5f9;
  --pink-100: #ffe4ef;
  --pink-200: #ffc9de;
  --pink-300: #ffa9c9;
  --pink-400: #ff85b3;
  --pink-500: #ff5e9c;
  --pink-600: #f43f82;
  --rose: #ff4d6d;
  --bow-red: #e63b60;
  --bow-red-dark: #c62b4c;
  --cream: #fffdf7;
  --white: #ffffff;
  --gold: #ffd166;
  --text: #7a4a5a;
  --text-soft: #a86b80;
  --shadow-soft: 0 8px 24px rgba(244, 63, 130, 0.16);
  --shadow-pop: 0 12px 32px rgba(244, 63, 130, 0.24);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-cute: "Yuanti SC", "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
  --font-round: "Comic Sans MS", "Chalkboard SE", "Yuanti SC", "幼圆", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cute);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 94, 156, 0.12) 0 64px, transparent 65px),
    radial-gradient(circle at 85% 14%, rgba(255, 94, 156, 0.10) 0 52px, transparent 53px),
    radial-gradient(circle at 10% 82%, rgba(255, 94, 156, 0.10) 0 58px, transparent 59px),
    radial-gradient(circle at 90% 86%, rgba(255, 94, 156, 0.12) 0 66px, transparent 67px),
    linear-gradient(180deg, #fff0f7 0%, #ffd9ec 45%, #ffc6e2 100%);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--pink-300); color: #fff; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px dashed var(--pink-200);
  box-shadow: 0 4px 18px rgba(244, 63, 130, 0.08);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pink-600);
}
.nav-logo img { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(244,63,130,.25)); }

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: all .22s ease;
}
.nav-links a:hover {
  background: var(--pink-100);
  color: var(--pink-600);
  transform: translateY(-1px);
}
.nav-links a.active {
  background: var(--pink-500);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 94, 156, .35);
}

/* ---------- 通用容器 ---------- */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 90px;
  position: relative;
  z-index: 1;
}
.page-title {
  text-align: center;
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--pink-600);
  letter-spacing: 2px;
}
.page-sub {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 36px;
  font-size: 1rem;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid #fff;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 2px dashed var(--pink-100);
  pointer-events: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--pink-500);
  color: #fff;
  box-shadow: var(--shadow-pop);
  transition: all .22s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:hover {
  background: var(--pink-600);
  transform: translateY(-2px) scale(1.02);
}
.btn-ghost {
  background: #fff;
  color: var(--pink-600);
  border: 2px solid var(--pink-300);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--pink-50); }

/* ---------- 首页 Hero ---------- */
.hero {
  text-align: center;
  padding: 40px 8px 16px;
  position: relative;
}
.hero-couple {
  width: min(340px, 86vw);
  height: auto;
  margin: 0 auto 6px;
  animation: floaty 3.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(244, 63, 130, 0.28));
}
.hero-eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--pink-600);
  border: 2px solid var(--pink-200);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(244,63,130,.1);
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--pink-600);
  letter-spacing: 3px;
  line-height: 1.15;
  text-shadow: 0 3px 0 rgba(255,255,255,.7);
}
.hero h1 .amp {
  color: var(--bow-red);
  font-size: 1.2em;
  display: inline-block;
  animation: heartbeat 1.4s ease-in-out infinite;
}
.hero .slogan {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---------- 计时器 ---------- */
.timer-banner {
  margin: 34px auto 0;
  max-width: 720px;
  background: linear-gradient(135deg, #ff85b3, #ff5e9c);
  color: #fff;
  border-radius: 30px;
  padding: 26px 22px;
  box-shadow: var(--shadow-pop);
  position: relative;
  overflow: hidden;
}
.timer-banner::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
}
.timer-banner::before {
  content: "";
  position: absolute;
  left: -24px; bottom: -34px;
  width: 110px; height: 110px;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
}
.timer-days {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-round);
  position: relative;
  z-index: 2;
}
.timer-days small {
  font-size: 1rem;
  font-weight: 400;
  opacity: .95;
  margin-left: 6px;
}
.timer-clock {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.timer-clock .unit {
  background: rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 10px 16px;
  min-width: 74px;
  backdrop-filter: blur(4px);
}
.timer-clock .num {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-round);
  display: block;
}
.timer-clock .lbl { font-size: .8rem; opacity: .95; }

/* ---------- 首页快速入口 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 38px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 2px solid #fff;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
}
.feature-card .icon { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }
.feature-card h3 { color: var(--pink-600); margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p { color: var(--text-soft); font-size: .92rem; }
.feature-card.feature-birthday {
  background: linear-gradient(135deg, #ff9ecb 0%, #ff5e9c 100%);
  border-color: #fff;
  position: relative;
}
.feature-card.feature-birthday h3 { color: #fff; }
.feature-card.feature-birthday p { color: #fff; opacity: .92; }
.feature-card.feature-birthday .icon { animation: heartbeat 1.6s ease-in-out infinite; }
.feature-birthday .badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #fff;
  color: var(--bow-red);
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pink-200), var(--pink-500));
}
.tl-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 10px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--pink-500);
  box-shadow: 0 0 0 5px rgba(255,94,156,.15);
}
.tl-date {
  display: inline-block;
  background: var(--pink-100);
  color: var(--pink-600);
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: .85rem;
  margin-bottom: 8px;
}
.tl-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 2px solid #fff;
}
.tl-card h3 { color: var(--pink-600); font-size: 1.05rem; margin-bottom: 6px; }
.tl-card p { color: var(--text-soft); font-size: .95rem; }

/* ---------- 相册 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.gallery figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transition: transform .25s ease;
  border: 3px solid #fff;
  position: relative;
}
.gallery figure:hover { transform: scale(1.03); }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--pink-50);
}
.gallery figcaption {
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--text-soft);
  text-align: center;
}
.gallery .tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,.92);
  color: var(--pink-600);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(122, 60, 82, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 640px);
  max-height: 82vh;
  border-radius: 20px;
  border: 5px solid #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  background: #fff;
}
.lightbox .close {
  position: absolute;
  top: 22px; right: 28px;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  background: rgba(0,0,0,.25);
  width: 48px; height: 48px;
  border-radius: 50%;
  text-align: center;
}

/* ---------- 相册 · 还没照片时的那封信 ---------- */
.album-letter {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 38px 34px;
  background: #fff;
  border: 2px solid #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.album-letter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 38px;
  right: 38px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--pink-200) 0 8px, transparent 8px 16px);
}
.album-letter p {
  color: var(--text);
  font-size: 1rem;
  line-height: 2.05;
  margin-bottom: 18px;
}
.album-letter p:last-child { margin-bottom: 0; }
.album-letter .lp-lead {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--pink-600);
}
.album-letter .lp-quote {
  margin: 26px 0;
  padding: 16px 22px;
  background: var(--pink-50);
  border-left: 4px solid var(--pink-300);
  border-radius: 4px 14px 14px 4px;
  color: var(--pink-600);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.9;
}
.album-letter .lp-end {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--pink-600);
  letter-spacing: .5px;
}
.album-letter .lp-sign {
  text-align: right;
  color: var(--text-soft);
  font-size: .95rem;
}
@media (max-width: 560px) {
  .album-letter { padding: 30px 22px 26px; }
  .album-letter p { line-height: 1.95; }
}

/* 相册 · 空相框墙 */
.album-wall { margin-top: 54px; }
.album-wall h2 {
  text-align: center;
  color: var(--pink-600);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  letter-spacing: 2px;
}
.album-wall-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: .9rem;
  margin: 8px 0 24px;
}
.empty-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.empty-frame {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed var(--pink-300);
  border-radius: 18px;
  background: rgba(255, 255, 255, .55);
  color: var(--pink-300);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, .7);
  transform: rotate(-1.2deg);
  transition: transform .2s ease, background .2s ease;
}
.empty-frame:nth-child(even) { transform: rotate(1.2deg); }
.empty-frame:hover { transform: rotate(0) translateY(-3px); background: rgba(255, 255, 255, .8); }
.empty-frame span { font-size: 1.6rem; line-height: 1; opacity: .8; }
.empty-frame em { font-style: normal; font-size: .78rem; color: var(--text-soft); }

/* ---------- 恋爱纪念：时间轴 ---------- */
.tl-scene {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.tl-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-text {
  position: absolute;
  top: var(--t);
  left: var(--x, 0);
  width: 200px;
  font-size: var(--fs, .95rem);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .3px;
  color: var(--pink-600);
  opacity: .95;
  transform: rotate(var(--r, 0deg));
  animation: decoIn 1.8s ease both;
  animation-delay: var(--d, 0s);
}
.deco-text .kao {
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  font-size: .82em;
  color: var(--pink-400);
  white-space: nowrap;
}
.deco-text.dl { text-align: left; }
.deco-text.dr { left: auto; right: var(--x, 0); text-align: right; }
@keyframes decoIn {
  from { opacity: 0; }
  to { opacity: .95; }
}
.deco-shape {
  position: absolute;
  color: var(--pink-400);
  opacity: .7;
  animation: decoFloat 7s ease-in-out infinite;
}
.deco-shape.s1 { left: 6%; top: 24%; font-size: 1.1rem; }
.deco-shape.s2 { left: 14%; top: 56%; font-size: .8rem; animation-delay: 1s; }
.deco-shape.s3 { left: 4%; top: 82%; font-size: .95rem; animation-delay: 2s; }
.deco-shape.s4 { right: 12%; top: 30%; font-size: .8rem; animation-delay: .6s; }
.deco-shape.s5 { right: 5%; top: 62%; font-size: 1rem; animation-delay: 1.6s; }
.deco-shape.s6 { right: 15%; top: 86%; font-size: 1.1rem; animation-delay: 2.4s; }
@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}

@media (max-width: 900px) {
  .deco-text { display: none; }
  .deco-shape { opacity: .32; }
}

@media (prefers-reduced-motion: reduce) {
  .deco-text { animation: none !important; opacity: .95; }
  .deco-shape { animation: none !important; }
}

.tl-track {
  position: relative;
  max-width: 660px;
  height: 420px;
  margin: 44px auto 0;
}
.tl-line {
  position: absolute;
  left: 50%;
  margin-left: -2px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(255, 201, 222, .6);
}
.tl-line span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffa9c9 0%, #ff4d86 100%);
  box-shadow: 0 0 12px rgba(255, 94, 156, .45);
  transition: height .9s ease;
}
.tl-point {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--p) * 1%);
  height: 0;
  transition: top .9s ease;
}
.dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pink-300);
  box-sizing: border-box;
}
.tl-info {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tl-point.side-left .tl-info {
  right: 54%;
  text-align: right;
}
.tl-point.side-right .tl-info {
  left: 54%;
  text-align: left;
}
.tl-info b {
  font-family: var(--font-round);
  font-size: 1.02rem;
  color: var(--pink-600);
  font-weight: 800;
}
.tl-info i { font-style: normal; font-size: .82rem; color: var(--text-soft); }

.tl-point.today .dot {
  background: var(--pink-500);
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 94, 156, .16);
}
.tl-point.today .tl-info b { color: var(--bow-red); }

.tl-point.target { z-index: 2; }
.gift {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #ffffff 0%, #ffe3ef 100%);
  box-shadow: 0 8px 20px rgba(244, 63, 130, .22);
  font-size: 1.45rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gift:hover { transform: translate(-50%, -50%) scale(1.08); }
.gift-emoji { display: inline-block; animation: giftFloat 2.4s ease-in-out infinite; }
.gift.opened .gift-emoji { animation: none; }
@keyframes giftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 拆开后的倒计时 */
.gift-panel {
  position: relative;
  max-width: 1000px;
  margin: 56px auto 0;
  text-align: center;
}
.gift-panel.open { padding-bottom: 60px; }
.gp-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
}
.gift-panel.open .gp-deco { opacity: 1; }
.gp-hint, .gp-content { position: relative; z-index: 1; }
.gp-hint { font-size: .85rem; color: var(--text-soft); }
.gp-content { display: none; }
.gift-panel.open .gp-content {
  display: block;
  animation: fadeUp .6s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.gp-label { margin-top: 16px; font-size: .78rem; color: var(--text-soft); letter-spacing: 3px; }
.gp-days {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 3.8rem);
  line-height: 1.1;
  color: var(--pink-600);
}
.gp-days small { font-size: .95rem; font-weight: 400; margin-left: 5px; }
.gp-clock { display: flex; gap: 14px; justify-content: center; margin-top: 6px; }
.gp-clock b { display: block; font-family: var(--font-round); font-size: 1.3rem; color: var(--pink-600); }
.gp-clock i { font-style: normal; font-size: .72rem; color: var(--text-soft); }

/* 拆礼物时飘出来的小爱心 */
.burst-heart {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  font-size: 1rem;
  animation: burstUp .95s ease-out forwards;
}
@keyframes burstUp {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; }
}

@media (max-width: 640px) {
  /* 情话改成一排小字放在时间轴上方，窄屏也看得见 */
  .tl-deco {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    max-width: 340px;
    margin: 0 auto 26px;
  }
  .tl-deco .deco-text,
  .tl-deco .deco-text.dl,
  .tl-deco .deco-text.dr {
    position: static;
    display: block;
    width: auto;
    max-width: none;
    font-size: .72rem;
    line-height: 1.7;
    text-align: center;
    opacity: .92;
    transform: none;
    animation: none;
  }
  .tl-deco .deco-text .kao { display: none; }
  .tl-deco .deco-shape { display: none; }

  /* 时间轴居中，左右交错 */
  .tl-track { height: 380px; margin: 10px auto 0; max-width: 100%; }
  .tl-line { left: 50%; margin-left: -2px; }
  .dot { left: 50%; }
  .gift { left: 50%; width: 42px; height: 42px; }
  .tl-info { width: 44%; }
  .tl-point.side-left .tl-info { right: 56%; left: auto; text-align: right; }
  .tl-point.side-right .tl-info { left: 56%; right: auto; text-align: left; }
  .tl-point.target .tl-info { left: 58%; }
  .tl-info b { font-size: .84rem; }
  .tl-info i { font-size: .7rem; }
}

/* ---------- 情书 ---------- */
.letters { max-width: 680px; margin: 0 auto; display: grid; gap: 22px; }
.letter {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform .22s ease;
}
.letter:hover { transform: translateY(-3px); }
.letter .stamp {
  position: absolute;
  top: 16px; right: 18px;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--pink-100);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.letter h3 { color: var(--pink-600); margin-bottom: 4px; font-size: 1.1rem; }
.letter .meta { font-size: .82rem; color: var(--text-soft); margin-bottom: 12px; }
.letter .body { color: var(--text); white-space: pre-line; font-size: .98rem; }
.letter .seal {
  margin-top: 18px;
  text-align: center;
  font-size: .86rem;
  color: var(--pink-600);
}
.open-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  padding: 11px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fbf 0%, #ff4d86 100%);
  box-shadow: 0 8px 20px rgba(255, 77, 134, .32);
  animation: openPulse 2.2s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.open-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 24px rgba(255, 77, 134, .4); }
.open-btn:active { transform: translateY(0) scale(.98); }
@keyframes openPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(255, 77, 134, .3); }
  50% { box-shadow: 0 10px 26px rgba(255, 77, 134, .5); }
}

/* 未拆开时的信封插画 */
.sealed-art { position: relative; width: 128px; height: 86px; margin: 2px auto 18px; }
.env-body {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid #fff;
  background: linear-gradient(180deg, #fff7fb, #ffe3ef);
  box-shadow: 0 10px 22px rgba(244, 63, 130, .15);
  overflow: hidden;
}
.env-body::before {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: -2px;
  height: 50px;
  background: linear-gradient(180deg, rgba(255, 194, 221, .95), rgba(255, 194, 221, 0));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.env-seal {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .85rem;
  background: linear-gradient(135deg, #ff7aa8, #e63b60);
  box-shadow: 0 4px 10px rgba(230, 59, 96, .35);
}
.env-heart {
  position: absolute;
  color: var(--pink-300);
  font-size: .9rem;
  animation: floaty 3.4s ease-in-out infinite;
}
.env-heart.eh1 { left: -18px; top: 10px; }
.env-heart.eh2 { right: -14px; top: 0; font-size: .8rem; animation-delay: .8s; }
.env-heart.eh3 { right: -20px; bottom: 6px; animation-delay: 1.6s; }
.sealed-note { margin-top: 10px; font-size: .78rem; color: var(--text-soft); letter-spacing: 1px; }

/* 约定：拆开信之后出现 */
.promise-letter { display: none; cursor: default; }
.promise-letter:hover { transform: none; }
body.letter-open .promise-letter { display: block; animation: fadeUp .6s ease; }
@media (prefers-reduced-motion: reduce) {
  body.letter-open .promise-letter { animation: none; }
}
.letter.sealed .body { display: none; }
.letter.open .seal { display: none; }

/* 拆开后的信纸装饰 */
.letter-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease .15s;
}
.letter.open .letter-deco { opacity: 1; }
.letter.decorated.open::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed rgba(255, 169, 201, .5);
  border-radius: 22px;
  pointer-events: none;
}.letter-deco .tape {
  position: absolute;
  width: 88px;
  height: 22px;
  border-radius: 2px;
  background: repeating-linear-gradient(45deg, rgba(255, 143, 191, .55) 0 8px, rgba(255, 255, 255, .82) 8px 16px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.tape-tl { top: -11px; left: 26px; transform: rotate(-7deg); }
.tape-br { bottom: -11px; right: 30px; transform: rotate(-6deg); }
.letter-deco .postmark {
  position: absolute;
  top: 12px;
  right: 84px;
  width: 62px;
  height: 62px;
  border: 2px dashed var(--pink-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--pink-500);
  background: rgba(255, 255, 255, .7);
  transform: rotate(-12deg);
  opacity: .95;
}
.letter-deco .doodle {
  position: absolute;
  color: var(--pink-300);
  font-size: 1rem;
  opacity: .85;
}
.doodle.d1 { left: 8px; top: 42%; }
.doodle.d2 { right: 10px; top: 58%; font-size: .8rem; }
.doodle.d3 { left: 24px; bottom: 12px; font-size: .9rem; }

@media (max-width: 560px) {
  .letter-deco .postmark { right: 12px; top: 66px; width: 50px; height: 50px; font-size: .48rem; }
  .letter-deco .tape { width: 66px; height: 18px; }
  .letter-deco .doodle { display: none; }
}

/* ---------- 漂浮爱心 ---------- */
.floating-heart {
  position: fixed;
  bottom: -60px;
  z-index: 0;
  font-size: 1.6rem;
  pointer-events: none;
  animation: rise linear forwards;
  opacity: 0;
}

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 34px 20px 50px;
  color: var(--text-soft);
  font-size: .9rem;
  position: relative;
  z-index: 1;
}
.footer .mini-kitty { width: 46px; margin: 0 auto 8px; }

/* ---------- 动画 ---------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.14); }
  56% { transform: scale(1); }
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translateY(-110vh) translateX(30px) rotate(40deg); opacity: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .nav-inner { justify-content: center; }
  .nav-links { margin-left: 0; justify-content: center; }
  .nav-links a { padding: 7px 13px; font-size: .88rem; }
  .page { padding-top: 26px; }
}

/* ---------- 宝宝生日 ---------- */
.bd-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 840px;
  margin: 32px auto 0;
  padding: 30px 34px;
  border-radius: 32px;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #ffffff 0%, #ffe7f2 60%, #ffd8ea 100%);
  box-shadow: var(--shadow-pop);
}
.bd-cake-wrap { text-align: center; }
.cake { position: relative; width: 230px; height: 210px; margin: 0 auto; }
.cake-plate {
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 20px rgba(244, 63, 130, .18);
}
.cake-layer { position: absolute; border-radius: 16px; }
.cake-layer.bottom {
  left: 14px; right: 14px; bottom: 22px;
  height: 74px;
  background: linear-gradient(180deg, #ffc2dd 0%, #ff9ec4 100%);
  box-shadow: inset 0 -6px 0 rgba(255, 255, 255, .25);
}
.cake-layer.top {
  left: 40px; right: 40px; bottom: 96px;
  height: 56px;
  background: linear-gradient(180deg, #fff0f6 0%, #ffcfe2 100%);
  box-shadow: inset 0 -6px 0 rgba(255, 255, 255, .35);
}
.cake-layer.top::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 18px;
  border-radius: 50%;
  background: #fff8fb;
}
.cake-candles {
  position: absolute;
  left: 0; right: 0; bottom: 148px;
  display: flex;
  justify-content: center;
  gap: 22px;
}
.candle {
  position: relative;
  width: 10px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: repeating-linear-gradient(45deg, #ff8fbf 0 5px, #ffffff 5px 10px);
  box-shadow: 0 2px 6px rgba(244, 63, 130, .2);
}
.flame {
  position: absolute;
  left: 50%;
  top: -15px;
  width: 11px;
  height: 15px;
  transform: translateX(-50%) scale(0);
  transform-origin: bottom center;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 75%, #fff6c9 0 20%, #ffc26b 55%, #ff7a45 100%);
  transition: transform .25s ease;
}
.candle.lit .flame {
  transform: translateX(-50%) scale(1);
  animation: flicker 1.1s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  50% { transform: translateX(-50%) scale(1.08) rotate(2deg); }
}
.bd-hint { margin-top: 6px; font-size: .8rem; color: var(--text-soft); }

.bd-count { text-align: left; position: relative; }
.bd-label { font-size: .8rem; color: var(--text-soft); letter-spacing: 2px; }
.bd-days {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(2.9rem, 9vw, 4rem);
  line-height: 1.05;
  color: var(--pink-600);
}
.bd-days small { font-size: 1rem; font-weight: 400; margin-left: 6px; }
.bd-clock { display: flex; gap: 10px; margin: 12px 0 10px; flex-wrap: wrap; }
.bd-clock span {
  background: rgba(255, 255, 255, .85);
  border-radius: 14px;
  padding: 8px 14px;
  min-width: 64px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(244, 63, 130, .1);
}
.bd-clock b { display: block; font-family: var(--font-round); font-size: 1.2rem; color: var(--pink-600); }
.bd-clock i { font-style: normal; font-size: .7rem; color: var(--text-soft); }
.bd-date { font-size: .88rem; color: var(--text-soft); }
.bd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bd-chips .chip {
  font-size: .76rem;
  color: var(--pink-600);
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: 0 3px 10px rgba(244, 63, 130, .1);
}
.bd-note { margin-top: 12px; font-weight: 800; color: var(--bow-red); }

.bd-years { max-width: 720px; margin: 46px auto 0; text-align: center; }
.bd-years h2 {
  color: var(--pink-600);
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
  letter-spacing: 2px;
}
.bd-hearts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.bd-heart {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--pink-200);
}
.bd-heart.done { color: var(--pink-500); }
.bd-heart.now {
  color: var(--bow-red);
  animation: heartbeat 1.8s ease-in-out infinite;
}
.bd-badge {
  display: none;
  margin: 18px auto 0;
  width: fit-content;
  background: #fff;
  color: var(--bow-red);
  font-weight: 800;
  font-size: .95rem;
  padding: 7px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  animation: heartbeat 1.6s ease-in-out infinite;
}

.bd-wish {
  max-width: 620px;
  margin: 34px auto 0;
  text-align: center;
}
.bd-wish.glow { animation: wishGlow 2.2s ease-in-out infinite; }
@keyframes wishGlow {
  0%, 100% { box-shadow: var(--shadow-soft); }
  50% { box-shadow: 0 16px 38px rgba(244, 63, 130, .32); }
}
.bd-wish-title { font-size: 1.08rem; font-weight: 800; color: var(--pink-600); }
.bd-wish-text { margin-top: 10px; color: var(--text-soft); font-size: .94rem; line-height: 1.9; }

@media (max-width: 760px) {
  .bd-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; }
  .bd-count { text-align: center; }
  .bd-clock, .bd-chips { justify-content: center; }
  .cake { transform: scale(.9); }
}

/* ---------- 打印友好 ---------- */
@media print {
  .floating-heart, .lightbox { display: none !important; }
}

/* ---------- 贪吃蛇小游戏 ---------- */
/* 首页入口卡片（和宝宝生日卡一样单独装饰） */
.feature-card.feature-game {
  background: linear-gradient(135deg, #ffe8f3 0%, #ffc6df 55%, #ff9ec9 100%);
  border-color: #fff;
  position: relative;
  overflow: hidden;
}
.feature-card.feature-game::after {
  content: "💗";
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-size: 4.4rem;
  opacity: .22;
  transform: rotate(-16deg);
  pointer-events: none;
}
.feature-card.feature-game h3 { color: var(--bow-red-dark); }
.feature-card.feature-game p { color: #a9577a; }
.feature-card.feature-game .icon { animation: floaty 3.2s ease-in-out infinite; }
.feature-game .badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #fff;
  color: var(--bow-red);
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  z-index: 2;
}

/* 游戏页 */
.game-shell { max-width: 720px; margin: 0 auto; }
.game-hud {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hud-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 7px 20px;
  box-shadow: var(--shadow-soft);
}
.hud-label { font-size: .8rem; color: var(--text-soft); }
.hud-value {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--pink-600);
  min-width: 1.6em;
  text-align: center;
}

.game-board {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 512px;
  margin: 0 auto;
  padding: 16px;
  background: rgba(255, 255, 255, .62);
  border: 2px dashed var(--pink-200);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}
#snake-canvas {
  display: block;
  border-radius: 24px;
  background: #fff8fc;
  box-shadow: inset 0 0 0 2px #fff, 0 10px 30px rgba(244, 63, 130, .18);
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 248, 252, .8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 3;
}
.game-overlay.hidden { opacity: 0; visibility: hidden; }
.game-overlay::before {
  content: "💗";
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 1.35rem;
  opacity: .5;
}
.game-overlay::after {
  content: "🎀";
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 1.3rem;
  opacity: .55;
}
.overlay-card { text-align: center; padding: 20px; max-width: 340px; }
.overlay-emoji { font-size: 2.6rem; line-height: 1.3; margin-bottom: 2px; animation: floaty 2.8s ease-in-out infinite; }
.overlay-card h2 { color: var(--pink-600); font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 8px; }
.overlay-card p { color: var(--text-soft); font-size: .92rem; line-height: 1.75; margin-bottom: 18px; }
.btn-play {
  border: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: #fff;
  padding: 12px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fbf 0%, #ff4d86 100%);
  box-shadow: 0 10px 22px rgba(255, 77, 134, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-play:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 26px rgba(255, 77, 134, .42); }
.btn-play:active { transform: translateY(0) scale(.98); }

.game-tips {
  margin-top: 16px;
  text-align: center;
  font-size: .88rem;
  color: var(--text-soft);
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  grid-template-rows: repeat(2, 62px);
  gap: 10px;
  justify-content: center;
  margin: 20px auto 0;
}
.dpad button {
  border: none;
  border-radius: 20px;
  background: #fff;
  color: var(--pink-600);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(244, 63, 130, .18);
  transition: transform .12s ease, background .12s ease;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.dpad button:active,
.dpad button.pressed { transform: scale(.94); background: var(--pink-100); }
.dpad .up { grid-area: 1 / 2; }
.dpad .left { grid-area: 2 / 1; }
.dpad .down { grid-area: 2 / 2; }
.dpad .right { grid-area: 2 / 3; }

@media (max-width: 640px) {
  .game-board { padding: 10px; border-radius: 26px; }
  .game-overlay { inset: 10px; }
  .dpad { grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 56px); }
}

/* ---------- 游戏空间入口页 ---------- */
.back-wrap { text-align: center; margin-bottom: 14px; }
.back-link {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--pink-600);
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(244, 63, 130, .12);
  transition: all .2s ease;
}
.back-link:hover { background: #fff; transform: translateX(-3px); box-shadow: 0 6px 16px rgba(244, 63, 130, .18); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .games-grid { grid-template-columns: 1fr; }
}
.game-tile {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.game-tile.soon { background: rgba(255, 255, 255, .55); border: 2px dashed var(--pink-300); box-shadow: none; }
.game-tile.soon:hover { transform: translateY(-3px); box-shadow: none; }
.game-cover {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.game-cover::after {
  content: "";
  position: absolute;
  top: -14px; right: -10px;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
}
.game-cover.snake { background: linear-gradient(135deg, #ffe8f3 0%, #ffb6d5 100%); }
.game-cover.g2048 { background: linear-gradient(135deg, #fff3dc 0%, #ffcf8a 100%); }
.game-cover.punch { background: linear-gradient(135deg, #ffe0ea 0%, #ffb6cf 100%); }
.game-cover.gomoku { background: linear-gradient(135deg, #fff0f7 0%, #ffc9de 100%); }
.game-cover.truth { background: linear-gradient(135deg, #fff2f8 0%, #ffd0e4 100%); }
.game-cover.match3 { background: linear-gradient(135deg, #fff6f0 0%, #ffd4c2 100%); }
.game-cover.link { background: linear-gradient(135deg, #fff3fb 0%, #dcc6ff 100%); }
.game-cover.soon { background: repeating-linear-gradient(45deg, #fff5fa 0 12px, #ffe9f3 12px 24px); color: var(--pink-300); }
.game-cover em {
  position: absolute;
  top: 10px; right: 12px;
  font-style: normal;
  font-size: .7rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 94, 156, .92);
  padding: 2px 10px;
  border-radius: 999px;
  z-index: 2;
}
.game-info { padding: 16px 18px 20px; }
.game-info h3 { color: var(--pink-600); font-size: 1.1rem; margin-bottom: 6px; }
.game-info p { color: var(--text-soft); font-size: .88rem; line-height: 1.65; }
.game-go { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 800; color: var(--bow-red); }

/* ---------- 2048 ---------- */
.t2048-wrap { max-width: 460px; margin: 0 auto; }
.t2048-hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.t2048-scores { display: flex; gap: 10px; }
.t2048-scores .score-box {
  background: #fff;
  border: 2px solid #fff;
  border-radius: 16px;
  padding: 6px 16px;
  text-align: center;
  min-width: 84px;
  box-shadow: var(--shadow-soft);
}
.t2048-scores span { display: block; font-size: .72rem; color: var(--text-soft); }
.t2048-scores strong { font-family: var(--font-round); font-size: 1.15rem; color: var(--pink-600); }

.btn-soft {
  border: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: .9rem;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9ec4 0%, #ff5e9c 100%);
  box-shadow: 0 8px 18px rgba(255, 94, 156, .3);
  transition: transform .18s ease;
}
.btn-soft:hover { transform: translateY(-2px); }

.t2048-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, .66);
  border: 2px dashed var(--pink-200);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.t2048-cell { background: rgba(255, 214, 232, .5); border-radius: 14px; }
.t2048-layer { position: absolute; inset: 12px; z-index: 2; pointer-events: none; }
.t2048-tile {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-family: var(--font-round);
  font-weight: 800;
  color: #fff;
  transition: transform .12s ease, opacity .12s ease;
  will-change: transform;
}
.t2048-tile span { display: block; line-height: 1; }
.t2048-tile.pop span { animation: tilePop .18s ease; }
.t2048-tile.gone { opacity: 0; }
@keyframes tilePop {
  0% { transform: scale(.35); }
  100% { transform: scale(1); }
}

.t2048-tile.v2 { background: #ffe6f2; color: #b0638a; }
.t2048-tile.v4 { background: #ffd2e6; color: #9c4f74; }
.t2048-tile.v8 { background: #ffc2dd; }
.t2048-tile.v16 { background: #ff9ec4; }
.t2048-tile.v32 { background: #ff7aa8; }
.t2048-tile.v64 { background: #ff5e9c; }
.t2048-tile.v128 { background: #f43f82; }
.t2048-tile.v256 { background: #e63b60; }
.t2048-tile.v512 { background: #c62b4c; }
.t2048-tile.v1024 { background: #a81f3f; }
.t2048-tile.v2048 { background: linear-gradient(135deg, #ff4d86, #8f1b33); box-shadow: 0 0 22px rgba(255, 77, 134, .5); }
.t2048-tile.vbig { background: linear-gradient(135deg, #8f1b33, #4a0f1c); }

.t2048-overlay {
  position: absolute;
  inset: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 248, 252, .88);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: opacity .25s ease, visibility .25s ease;
}
.t2048-overlay.hidden { opacity: 0; visibility: hidden; }
.overlay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-ghost {
  border: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: .9rem;
  color: var(--pink-600);
  background: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.btn-ghost.hidden { display: none; }

@media (max-width: 640px) {
  .t2048-board { padding: 10px; gap: 8px; border-radius: 22px; }
  .t2048-layer { inset: 10px; }
  .t2048-overlay { inset: 10px; }
  .t2048-hud { flex-wrap: wrap; }
}

/* ---------- 每日一句 ---------- */
.daily-quote {
  max-width: 720px;
  margin: 34px auto 0;
  background: rgba(255, 255, 255, .74);
  border: 2px dashed var(--pink-200);
  border-radius: 26px;
  padding: 20px 26px 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.daily-quote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--pink-200);
}
.daily-quote::after {
  content: "\2764";
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 1rem;
  color: var(--pink-300);
  opacity: .8;
}
.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.quote-tag {
  font-size: .76rem;
  font-weight: 800;
  color: var(--bow-red);
  background: var(--pink-100);
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.quote-date { font-size: .78rem; color: var(--text-soft); }
.quote-text {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  min-height: 3.7em;
}
.quote-text .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--pink-500);
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.quote-foot { text-align: right; margin-top: 4px; }
.quote-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-size: .85rem;
  font-weight: 700;
  color: var(--pink-500);
  padding: 4px 6px;
}
.quote-btn:hover { color: var(--bow-red); }

/* ---------- 想和你一起做的 100 件小事 ---------- */
.wish-progress { max-width: 520px; margin: 22px auto 0; }
.wish-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 2px #fff;
  overflow: hidden;
}
.wish-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb3d1 0%, #ff4d86 100%);
  transition: width .35s ease;
}
.wish-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 22px auto 0;
  max-width: 900px;
  padding: 0;
}
.wish-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 16px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: var(--font-cute);
  font-size: .92rem;
  color: var(--text);
  line-height: 1.55;
  box-shadow: 0 4px 12px rgba(244, 63, 130, .08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wish-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(244, 63, 130, .14); }
.wish-item .tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--pink-300);
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}
.wish-item.done { background: rgba(255, 255, 255, .58); color: var(--text-soft); }
.wish-item.done .tick {
  background: linear-gradient(135deg, #ff8fbf, #ff4d86);
  border-color: transparent;
  animation: tickPop .26s ease;
}
.wish-item.done .tick::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.wish-item.done .txt { text-decoration: line-through; text-decoration-color: var(--pink-300); }
@keyframes tickPop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* ---------- 今天吃什么转盘 ---------- */
.wheel-wrap { max-width: 520px; margin: 0 auto; text-align: center; }
.wheel-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 6px auto 0;
}
#wheel-canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 28px rgba(244, 63, 130, .22)); }
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 24px solid var(--bow-red);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .16));
  z-index: 3;
}
.wheel-actions { margin-top: 20px; }
.btn-spin {
  border: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: #fff;
  padding: 13px 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fbf 0%, #ff4d86 100%);
  box-shadow: 0 10px 22px rgba(255, 77, 134, .35);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn-spin:hover { transform: translateY(-2px) scale(1.02); }
.btn-spin:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.wheel-result { margin-top: 18px; min-height: 66px; }
.wheel-result .r-label { font-size: .84rem; color: var(--text-soft); }
.wheel-result .r-value {
  font-family: var(--font-round);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pink-600);
  margin-top: 2px;
}
.wheel-result .r-value.pop { animation: tickPop .3s ease; }
.wheel-tips { margin-top: 14px; font-size: .85rem; color: var(--text-soft); }

/* 首页下方两张横幅入口 */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.feature-punch { grid-column: 1 / -1; }
.feature-card.feature-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 18px 22px;
  border-color: #fff;
  position: relative;
  overflow: hidden;
}
.feature-card.feature-banner::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -44px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  pointer-events: none;
}
.feature-wheel { background: linear-gradient(120deg, #fff7fb 0%, #ffe3ef 55%, #ffd2e6 100%); }
.feature-wish { background: linear-gradient(120deg, #fff9f0 0%, #ffe9d6 55%, #ffd8c2 100%); }
.feature-punch {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #fff0f4 0%, #ffd9e6 55%, #ffc2d8 100%);
}
.feature-banner .banner-icon {
  flex: none;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  font-size: 1.75rem;
  box-shadow: 0 6px 16px rgba(244, 63, 130, .16);
}
.feature-banner .banner-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.feature-banner .banner-text h3 { color: var(--pink-600); font-size: 1.02rem; margin-bottom: 3px; }
.feature-banner .banner-text p { color: var(--text-soft); font-size: .86rem; line-height: 1.5; }
.feature-banner .banner-text strong { color: var(--bow-red); font-family: var(--font-round); }
.feature-banner .banner-go {
  flex: none;
  position: relative;
  z-index: 1;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff8fbf, #ff4d86);
  padding: 7px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 77, 134, .3);
}
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .feature-banner .banner-go { display: none; }
  .feature-banner .banner-text h3 { font-size: .96rem; }
  .feature-banner .banner-text p { font-size: .82rem; }
}

@media (max-width: 480px) {
  .feature-card.feature-banner { flex-wrap: wrap; gap: 12px; }
  .feature-banner .banner-go { margin-left: 70px; }
}

/* ---------- 出气包 ---------- */
.punch-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.ptab {
  border: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: .9rem;
  color: var(--pink-600);
  background: #fff;
  padding: 9px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: background .2s ease, box-shadow .2s ease;
}
.ptab.active {
  background: linear-gradient(135deg, #ff8fbf 0%, #ff4d86 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 77, 134, .3);
}
.punch-hint {
  max-width: 560px;
  margin: 0 auto 10px;
  text-align: center;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.9;
}
.punch-stage {
  position: relative;
  width: 320px;
  height: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.punch-stage.shake { animation: stageShake .3s ease; }
@keyframes stageShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 3px); }
  50% { transform: translate(5px, -3px); }
  75% { transform: translate(-3px, 1px); }
}
.punch-target {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* 沙包 */
#target-bag { position: relative; width: 180px; height: 300px; transform-origin: 50% 0; }
#target-bag.hit { animation: bagHit .38s ease; }
.bag-rope {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 5px;
  height: 78px;
  background: linear-gradient(#ffd0e2, #ff9ec4);
  transform: translateX(-50%);
  border-radius: 3px;
}
.bag-body {
  position: absolute;
  inset: 0;
  border-radius: 66px 66px 54px 54px / 54px 54px 40px 40px;
  background: linear-gradient(160deg, #ff7aa8 0%, #e63b60 100%);
  box-shadow: inset -10px -12px 0 rgba(0, 0, 0, .05), 0 18px 30px rgba(230, 59, 96, .25);
  display: grid;
  place-items: center;
}
.bag-body::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(255, 255, 255, .35);
}
.bag-face { font-style: normal; color: #fff; font-size: 2.1rem; letter-spacing: 3px; }
.bag-body::after {
  content: "";
  position: absolute;
  left: 16%;
  top: 8%;
  bottom: 8%;
  width: 16%;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  pointer-events: none;
}
@keyframes bagHit {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.1, .9) rotate(-4deg); }
  55% { transform: scale(.94, 1.07) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

/* 我 */
#target-me { position: relative; width: 210px; height: 210px; transform-origin: 50% 88%; }
#target-me:hover { filter: brightness(1.03); }
#target-me.hit { animation: meHit .72s cubic-bezier(.22, 1.2, .36, 1); }
.me-head {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9f2 0%, #ffc2dd 70%, #ffaecf 100%);
  box-shadow: 0 18px 34px rgba(244, 63, 130, .22);
}
.me-eye { position: absolute; top: 78px; width: 14px; height: 18px; border-radius: 50%; background: #7a4a5a; }
.me-eye.l { left: 64px; }
.me-eye.r { right: 64px; }
.me-mouth {
  position: absolute;
  left: 50%;
  top: 116px;
  width: 36px;
  height: 18px;
  border-radius: 0 0 22px 22px;
  border-bottom: 4px solid #7a4a5a;
  transform: translateX(-50%);
}
.me-blush { position: absolute; top: 104px; width: 28px; height: 14px; border-radius: 50%; background: rgba(255, 94, 156, .35); }
.me-blush.l { left: 40px; }
.me-blush.r { right: 40px; }

/* 打到 10 下之后：哭脸 + 眼泪 */
.me-tear {
  position: absolute;
  top: 100px;
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: #9ad7ff;
  opacity: 0;
}
.me-tear.l { left: 64px; }
.me-tear.r { right: 64px; }
#target-me.crying .me-tear { animation: tearDrop 1.3s ease-in infinite; }
#target-me.crying .me-tear.r { animation-delay: .45s; }
@keyframes tearDrop {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(30px) scale(1); opacity: 0; }
}
#target-me.crying .me-mouth {
  top: 116px;
  width: 40px;
  height: 20px;
  border-bottom: none;
  border-top: 4px solid #7a4a5a;
  border-radius: 22px 22px 0 0;
}
#target-me.crying .me-blush { opacity: .45; }
.me-cry-bubble {
  display: none;
  position: absolute;
  left: 50%;
  top: -56px;
  transform: translateX(-50%);
  background: #fff;
  color: var(--pink-600);
  font-style: normal;
  font-weight: 800;
  font-size: .82rem;
  line-height: 1.5;
  padding: 8px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  z-index: 3;
}
.me-cry-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
#target-me.crying .me-cry-bubble { display: block; }
@keyframes meHit {
  0% { transform: scale(1); }
  12% { transform: scale(1.16, .84); }
  32% { transform: scale(.9, 1.14); }
  50% { transform: scale(1.07, .95); }
  68% { transform: scale(.97, 1.03); }
  85% { transform: scale(1.01, .99); }
  100% { transform: scale(1); }
}

/* 计数与提示 */
.punch-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
  font-size: .9rem;
  color: var(--text-soft);
}
.punch-meta strong { color: var(--pink-600); font-family: var(--font-round); font-size: 1.1rem; }
.punch-reset {
  border: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-size: .8rem;
  font-weight: 700;
  color: var(--pink-500);
  background: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.punch-msg {
  text-align: center;
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink-600);
  min-height: 1.6em;
}

/* 击中时飞出来的小星星 */
.punch-spark {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  font-size: 1rem;
  animation: punchUp .8s ease-out forwards;
}
@keyframes punchUp {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; }
}

/* ---------- 五子棋 ---------- */
.gomoku-wrap { max-width: 560px; margin: 0 auto; }
.gomoku-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gomoku-turn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: var(--shadow-soft);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}
.stone-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.stone-dot.p1 { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #ff5e9c 45%, #e63b60 100%); }
.stone-dot.p2 { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #8a4a63 45%, #5a2a3a 100%); }
.gomoku-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gomoku-actions .btn-soft { font-size: .85rem; padding: 8px 18px; }
.gomoku-actions .btn-soft:disabled { opacity: .45; cursor: default; transform: none; }
.gomoku-notice {
  margin: 0 0 10px;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--pink-600);
  min-height: 1.2em;
}
.gomoku-board { position: relative; }
#gomoku-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  touch-action: manipulation;
}
.gomoku-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 253, .35);
  border-radius: 24px;
}
.gomoku-overlay[hidden] { display: none; }
.gm-mode {
  z-index: 3;
  background: rgba(255, 250, 253, .94);
}
.gm-mode .gomoku-result-card { gap: 10px; padding: 26px 24px; }
.gm-mode-sub { font-size: .85rem; color: var(--text-soft); }
.gomoku-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, .96);
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
}
.gomoku-result {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  color: var(--pink-600);
}
.gomoku-hint { text-align: center; margin-top: 14px; font-size: .85rem; color: var(--text-soft); }

/* ---------- 连连看 ---------- */
.llk-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.llk-count { font-size: .9rem; color: var(--text-soft); }
.llk-count strong { color: var(--pink-600); font-family: var(--font-round); font-size: 1.05rem; }
.llk-wrap { position: relative; max-width: 560px; margin: 0 auto; padding: 44px 44px; }
@media (min-width: 700px) {
  .llk-wrap { padding: 72px; }
}
.llk-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, .66);
  border: 2px dashed var(--pink-200);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  touch-action: manipulation;
}
.llk-tile {
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 10px;
  background: #fff7fb;
  font-size: clamp(1.15rem, 5.6vw, 1.75rem);
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.llk-tile.sel {
  background: #ffe3ef;
  box-shadow: inset 0 0 0 3px var(--pink-300);
  transform: scale(.94);
}
.llk-tile.gone { opacity: 0; transform: scale(.2); pointer-events: none; }
.llk-tile.popping { animation: llkPop .3s ease forwards; }
@keyframes llkPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(.2); opacity: 0; }
}
.llk-tile.shake { animation: llkShake .3s ease; }
@keyframes llkShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
#llk-canvas { position: absolute; pointer-events: none; z-index: 2; }
.llk-hint { text-align: center; margin-top: 14px; font-size: .85rem; color: var(--text-soft); }
.llk-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  color: var(--pink-600);
  font-weight: 800;
  font-size: .85rem;
  box-shadow: var(--shadow-pop);
  z-index: 70;
  white-space: nowrap;
}
.llk-toast[hidden] { display: none; }
.llk-board.shuffling { animation: llkFlash .45s ease; }
@keyframes llkFlash {
  0%, 100% { box-shadow: var(--shadow-soft); }
  50% { box-shadow: 0 0 0 3px rgba(255, 77, 134, .35), var(--shadow-soft); }
}
.llk-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 244, 250, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.llk-overlay[hidden] { display: none; }
.llk-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 30px;
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-pop);
  text-align: center;
}
.llk-result {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(1.4rem, 5.6vw, 1.9rem);
  color: var(--pink-600);
}
.llk-result-sub { font-size: .88rem; color: var(--text-soft); }

/* ---------- 消消乐 ---------- */
.m3-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.m3-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow-soft);
  font-size: .86rem;
  color: var(--text-soft);
}
.m3-stat strong { font-family: var(--font-round); color: var(--pink-600); font-size: 1.05rem; }
.m3-board {
  display: grid;
  grid-template-columns: repeat(var(--n, 8), 1fr);
  gap: 6px;
  max-width: 460px;
  margin: 0 auto;
  padding: 12px;
  background: rgba(255, 255, 255, .66);
  border: 2px dashed var(--pink-200);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.m3-cell {
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 12px;
  background: #fff7fb;
  font-size: clamp(.95rem, 3.8vw, 1.4rem);
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.m3-cell.sel {
  background: #ffe3ef;
  box-shadow: inset 0 0 0 3px var(--pink-300);
  transform: scale(.94);
}
.m3-cell.pop { z-index: 2; }
.m3-cell.empty { background: transparent; }
.m3-hint { text-align: center; margin-top: 14px; font-size: .85rem; color: var(--text-soft); }
.m3-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 244, 250, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.m3-overlay[hidden] { display: none; }
.m3-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 30px;
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-pop);
  text-align: center;
}
.m3-result {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(1.4rem, 5.6vw, 1.9rem);
  color: var(--pink-600);
}
.m3-result-sub { font-size: .88rem; color: var(--text-soft); }

@media (max-width: 480px) {
  .m3-board { gap: 4px; padding: 8px; }
  .m3-cell { border-radius: 9px; }
}

/* ---------- 真心话 · 大冒险 ---------- */
.dice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 6px auto 10px;
}
.dice-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dice-name { font-size: .85rem; font-weight: 800; color: var(--pink-600); }
.dice-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-cute);
  font-weight: 700;
  font-size: .78rem;
  color: #fff;
  padding: 6px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fbf 0%, #ff4d86 100%);
  box-shadow: 0 6px 14px rgba(255, 77, 134, .26);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dice-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.die {
  cursor: pointer;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 11px;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.die i {
  border-radius: 50%;
  background: var(--pink-500);
  transform: scale(0);
  transition: transform .12s ease;
}
.die i.on { transform: scale(1); }
.die.throw { animation: diceThrow .5s ease; }
@keyframes diceThrow {
  0% { transform: rotate(0) scale(1); }
  35% { transform: rotate(-12deg) scale(1.08); }
  70% { transform: rotate(8deg) scale(.96); }
  100% { transform: rotate(0) scale(1); }
}
.dice-vs {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--pink-300);
}
.dice-result {
  text-align: center;
  min-height: 1.7em;
  margin-bottom: 8px;
  font-size: .94rem;
  font-weight: 700;
  color: var(--text);
}
.tod-choices {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}
.tod-choices[hidden] { display: none; }

.tod-stage { perspective: 1200px; max-width: 460px; margin: 0 auto; }
.tod-card { position: relative; width: 100%; height: 360px; }
.tod-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.2, .8, .3, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.tod-card.flipped .tod-inner { transform: rotateY(180deg); }
.tod-card.ready { cursor: pointer; animation: cardNudge 1.6s ease-in-out infinite; }
@keyframes cardNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.tod-tap {
  font-style: normal;
  font-size: .8rem;
  letter-spacing: 2px;
  color: #fff;
  opacity: .9;
}
.tod-face {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px;
  text-align: center;
}
.tod-back {
  background: linear-gradient(150deg, #ffd9e8 0%, #ffb3d0 100%);
  box-shadow: var(--shadow-soft);
  border: 2px dashed rgba(255, 255, 255, .75);
}
.tod-back span { font-size: 4.2rem; color: #fff; opacity: .92; line-height: 1; }
.tod-front {
  background: #fff;
  transform: rotateY(180deg);
  box-shadow: var(--shadow-pop);
}
.tod-card.dare .tod-front { background: #fffaf3; }
.tod-type {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 999px;
}
.tod-type.is-truth { background: #ffe3ef; color: var(--pink-600); }
.tod-type.is-dare { background: #ffe9d2; color: #b85a24; }
.tod-text {
  font-family: var(--font-round);
  font-size: clamp(1.02rem, 4.4vw, 1.3rem);
  line-height: 1.6;
  font-weight: 700;
  color: var(--text);
}
.tod-target { font-size: .82rem; color: var(--text-soft); }

.tod-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.tod-rule {
  max-width: 560px;
  margin: 18px auto 0;
  text-align: center;
  font-size: .82rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.tod-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 244, 250, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tod-overlay[hidden] { display: none; }
.tod-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 30px;
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-pop);
  text-align: center;
}
.tod-result {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(1.4rem, 5.6vw, 1.9rem);
  color: var(--pink-600);
}
.tod-result-sub { font-size: .88rem; color: var(--text-soft); }

@media (max-width: 480px) {
  .tod-card { height: 300px; }
  .tod-back span { font-size: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tod-inner { transition: none; }
}

/* ---------- 手机整体缩一档：字号、导航、内边距一起收 ---------- */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .nav-inner { padding: 10px 14px; gap: 10px; }
  .nav-logo { font-size: 1.02rem; gap: 8px; }
  .nav-logo img { width: 34px; height: 34px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: .88rem; }
  .page { padding: 24px 16px 64px; }
  .page-title { font-size: 1.65rem; }
  .page-sub { font-size: .86rem; }
  .footer { font-size: .8rem; padding: 26px 16px 40px; }
  .footer .mini-kitty { width: 38px; }
}
