/* tea-passport.css — 📖 茶旅集章護照（2026-07-05，games-plan ③）
   宣紙底×印章紅集章×金印徽章，z 10060 對齊 fortune/quiz */
.hh-pp-overlay {
  position: fixed; inset: 0; z-index: 10060;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(28, 34, 28, 0.55);
  -webkit-backdrop-filter: var(--hh-scrim-blur);
  backdrop-filter: var(--hh-scrim-blur);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hh-pp-overlay.is-open { opacity: 1; }
.hh-pp-panel {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 88vh;
  max-height: 88dvh; /* iOS 動態視口（舊 Safari 吃上行 fallback） */
  overflow-y: auto;
  background: linear-gradient(175deg, #fbf9f2, #f4f0e2);
  border-radius: 20px;
  padding: 20px 18px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}
.hh-pp-overlay.is-open .hh-pp-panel { transform: none; }
.hh-pp-close {
  position: sticky; top: 0; float: right;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(31, 46, 33, 0.08);
  color: #4a4a42; font-size: 15px; cursor: pointer;
  z-index: 2;
}
.hh-pp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hh-pp-head h3 { margin: 0; font: 700 17px/1.2 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; letter-spacing: 0.08em; }
.hh-pp-sub { margin: 2px 0 0; font: 500 12px/1.4 var(--font-ui, sans-serif); color: rgba(44, 58, 46, 0.6); }
.hh-pp-ico { font-size: 22px; }
.hh-pp-loading { padding: 40px 0; text-align: center; color: rgba(44, 58, 46, 0.5); }

.hh-pp-progress { margin: 4px 2px 14px; }
.hh-pp-progress-txt {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 600 12.5px/1.4 var(--font-ui, sans-serif); color: #5a5240;
  margin-bottom: 6px;
}
.hh-pp-progress-txt b { font: 700 16px/1 "Cormorant Garamond", serif; color: #94723e; }
.hh-pp-progress-track {
  height: 7px; border-radius: 999px;
  background: rgba(31, 46, 33, 0.08); overflow: hidden;
}
.hh-pp-progress-track i {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8cba84, #94723e);
}
.hh-pp-empty { margin: 0 2px 12px; font: 500 13px/1.7 var(--font-ui, sans-serif); color: rgba(90, 82, 64, 0.75); }

.hh-pp-sec { margin-bottom: 16px; }
.hh-pp-sec-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 2px 8px;
}
.hh-pp-sec-head h4 { margin: 0; font: 700 14.5px/1.2 "Noto Serif TC", "Noto Serif TC Fallback", serif; color: #2c3a2e; }
.hh-pp-sec-count { font: 600 12px/1 var(--font-ui, sans-serif); color: rgba(90, 82, 64, 0.65); }
.hh-pp-badge {
  margin-left: auto;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #94723e; border-radius: 50%;
  color: #94723e;
  font: 700 12px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif;
  transform: rotate(-8deg);
  background: rgba(148, 114, 62, 0.08);
}
.hh-pp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hh-pp-stamp {
  position: relative;
  appearance: none; -webkit-appearance: none;
  min-height: 62px;
  padding: 8px 8px;
  border: 1.5px dashed rgba(90, 82, 64, 0.3);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.5);
  cursor: pointer;
  font: inherit;
  text-align: center;
}
.hh-pp-stamp-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 600 11.5px/1.45 var(--font-ui, sans-serif);
  color: rgba(44, 58, 46, 0.4);
}
.hh-pp-stamp.is-stamped {
  border: 1.5px solid rgba(166, 61, 47, 0.55);
  background: #fffdf6;
  box-shadow: 0 3px 10px rgba(70, 55, 25, 0.08);
}
.hh-pp-stamp.is-stamped .hh-pp-stamp-name { color: #2c3a2e; }
.hh-pp-stamp-seal {
  position: absolute;
  top: -7px; right: -5px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #a63d2f; border-radius: 50%;
  background: rgba(166, 61, 47, 0.08);
  color: #a63d2f;
  font: 700 11px/1 "Noto Serif TC", "Noto Serif TC Fallback", serif;
  transform: rotate(8deg);
}
.hh-pp-foot { margin: 6px 2px 0; font: 500 11.5px/1.6 var(--font-ui, sans-serif); color: rgba(90, 82, 64, 0.55); }

/* 會員面板入口卡（index.html #passportEntry，功能格與邀請之間） */
.hh-passport-entry {
  display: flex; align-items: center; gap: 12px;
  width: calc(100% - 40px);
  margin: 14px 20px 0;
  min-height: 56px;
  padding: 10px 14px;
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.5), rgba(255, 253, 248, 0.32));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 20px rgba(31, 46, 33, 0.1);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.hh-passport-entry:active { transform: scale(0.98); }
.hh-pp-entry-ico { font-size: 22px; flex-shrink: 0; }
.hh-pp-entry-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hh-pp-entry-info b { font: 700 14px/1.3 var(--font-ui, sans-serif); color: #1e3a2f; }
.hh-pp-entry-sub { font: 500 11.5px/1.4 var(--font-ui, sans-serif); color: rgba(31, 46, 33, 0.55); }
.hh-pp-entry-go { color: #94723e; font-weight: 800; flex-shrink: 0; }

/* [hidden] 防禦：author 的 display:flex 會蓋過 UA 的 [hidden]（origin 優先權），
   年鑑季節入口（12 月才露出）靠這行才真的藏得住——本專案 giftbox/magazine-beta 已踩過同雷 */
.hh-passport-entry[hidden] { display: none !important; }
