/* 心语测评 · 推荐弹层（游戏页内） */
.rec-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(56, 36, 44, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.rec-mask.is-open { opacity: 1; pointer-events: auto; }

.rec-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fffdfd 0%, #fdf5f7 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 50px rgba(90, 50, 62, 0.22);
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.24, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #5c4a50;
}
.rec-sheet.is-open { transform: translateY(0); }

.rec-grab {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(160, 120, 132, 0.28);
  margin: 10px auto 2px;
  flex: 0 0 auto;
}

.rec-head {
  position: relative;
  padding: 10px 20px 12px;
  flex: 0 0 auto;
}
.rec-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #c95f7c;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.rec-head h2 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #8c4a5b;
}
.rec-head p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #a1737f;
}
.rec-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248, 180, 196, 0.5);
  background: #fff;
  color: #b08a95;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.rec-close:active { transform: scale(0.94); }

.rec-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 16px 10px;
}

.rec-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 13px;
  margin-bottom: 9px;
  background: #fff;
  border: 1px solid rgba(224, 123, 150, 0.16);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(200, 140, 155, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.rec-card:active { transform: scale(0.988); }
.rec-card.is-primary {
  border-color: rgba(224, 123, 150, 0.45);
  background: linear-gradient(135deg, #fff 0%, #fff3f6 100%);
}
.rec-rank {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #fdf1f4;
  border: 1px solid rgba(248, 180, 196, 0.35);
}
.rec-main { flex: 1 1 auto; min-width: 0; }
.rec-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.rec-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #5c4a50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-badge {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 700;
  color: #c95f7c;
  background: #fff0f4;
  border: 1px solid rgba(224, 123, 150, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: 0.04em;
}
.rec-hook {
  font-size: 12px;
  line-height: 1.55;
  color: #8a6570;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-meta {
  margin-top: 5px;
  font-size: 10.5px;
  color: #b08a95;
  letter-spacing: 0.02em;
}
.rec-meta b { color: #a1737f; font-weight: 600; }
.rec-arrow {
  flex: 0 0 auto;
  color: #d9aebb;
  font-size: 17px;
  padding-left: 2px;
}

.rec-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(224, 123, 150, 0.12);
  background: rgba(255, 253, 253, 0.92);
}
.rec-shuffle {
  flex: 1 1 auto;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(224, 123, 150, 0.35);
  background: #fff;
  color: #c95f7c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rec-shuffle:active { transform: scale(0.98); }
.rec-all {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  color: #a1737f;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.rec-note {
  padding: 0 18px 10px;
  font-size: 10.5px;
  color: #b08a95;
  text-align: center;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .rec-sheet {
    left: 50%;
    right: auto;
    width: 440px;
    transform: translate(-50%, 105%);
    border-radius: 24px 24px 0 0;
  }
  .rec-sheet.is-open { transform: translate(-50%, 0); }
  .rec-mask { background: rgba(56, 36, 44, 0.5); }
}
