/* ============================================================
   SajuScroll — Mobile H5 design system
   Style: dark ornate gothic (aligned with sajutight.me)
   Rules applied: ui-ux-pro-max — 44px touch targets, 4.5:1
   contrast, SVG icons, mobile-first, reduced-motion support.
   ============================================================ */
:root {
  --bg: #121212;
  --surface: #1a1a1e;
  --surface-2: #232329;
  --primary: #FF1F66;
  --primary-strong: #d91155;
  --pink-light: #ff8fc7;
  --on-primary: #ffffff;
  --accent: #facc15;
  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --line: #27272a;
  --radius: 14px;
  --radius-lg: 20px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #000;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Inter", "Segoe UI", "Apple SD Gothic Neo", system-ui, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { -webkit-tap-highlight-color: rgba(224,90,154,.25); }
button, .tap { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* H5 phone-width shell */
.h5 { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; box-shadow: 0 0 60px rgba(0,0,0,.6); }
.sec { padding: var(--space-5) var(--space-4); }
.sec-title { font-size: 19px; font-weight: 800; margin-bottom: var(--space-2); }
.sec-sub { color: var(--muted); font-size: 13px; margin-bottom: var(--space-4); }

/* ============ Header ============ */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12,9,19,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--space-4);
}
.logo { font-weight: 900; font-size: 17px; letter-spacing: 1px; color: var(--primary); text-decoration: none; }
.icon-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ink); border-radius: 10px;
}
.icon-btn:active { background: var(--surface-2); }

/* ============ Question category list (TightSaju-style rows) ============ */
.q-list { display: grid; gap: 10px; }
.q-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px var(--space-4);
  min-height: 64px; text-decoration: none; color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.q-row:active { transform: scale(.985); border-color: var(--primary); }
.q-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--primary);
}
.q-row b { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 2px; }
.q-row h3 { font-size: 15.5px; font-weight: 700; }
.q-row .chev { margin-left: auto; color: var(--muted); flex-shrink: 0; }

/* ============ Free banner ============ */
.free-banner {
  display: flex; align-items: stretch; gap: 0; overflow: hidden;
  background: linear-gradient(135deg, #2a1233, var(--surface));
  border: 1px solid var(--primary); border-radius: var(--radius-lg);
}
.free-banner .fb-copy { padding: var(--space-4); flex: 1; }
.free-banner .fb-art { width: 40%; flex-shrink: 0; }
.free-banner .fb-art img { height: 100%; width: 100%; object-fit: cover; }
.tag-free {
  display: inline-block; background: var(--primary); color: var(--on-primary);
  font-weight: 900; font-size: 11px; letter-spacing: 2px; border-radius: 999px; padding: 4px 12px;
}
.free-banner h2 { font-size: 18px; margin: 10px 0 6px; }
.free-banner p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--on-primary); font-weight: 800; font-size: 15.5px; text-decoration: none;
  transition: transform .15s ease, filter .15s ease; width: 100%;
}
.btn:active { transform: scale(.97); filter: brightness(1.1); }
.micro { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ============ Fun & cheap: horizontal snap track ============ */
.fun-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--space-4) var(--space-3); margin: 0 calc(-1 * var(--space-4));
  -webkit-overflow-scrolling: touch;
}
.fun-track::-webkit-scrollbar { display: none; }
.fun-card {
  scroll-snap-align: start; flex: 0 0 62%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-4); text-decoration: none; color: var(--ink);
  min-height: 120px; display: flex; flex-direction: column;
}
.fun-card .f-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.fun-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.fun-card p { color: var(--muted); font-size: 12.5px; flex: 1; }
.fun-card .price { color: var(--primary); font-weight: 800; margin-top: 8px; }

/* ============ Cover grid (dark ornate product cards) ============ */
.cover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cover-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); display: block;
  transition: transform .18s ease, border-color .18s ease;
}
.cover-card:active { transform: scale(.98); border-color: var(--primary); }
.cover-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.cover-info { padding: 12px 14px 14px; }
.cover-info .tag { font-size: 10px; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; }
.cover-info h3 { font-size: 14.5px; margin: 4px 0 2px; }
.cover-info p { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: center; }
.price { color: var(--primary); font-weight: 800; font-size: 14px; }
.badge-hot { background: var(--primary); color: var(--on-primary); font-size: 10px; font-weight: 900; padding: 3px 9px; border-radius: 999px; letter-spacing: 1px; }
.badge-cert { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: var(--space-4); }

/* ============ Reviews ============ */
.review-list { display: grid; gap: 10px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.r-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.r-head b { color: var(--primary); }
.r-head span { color: var(--muted); font-size: 11px; }
.review p { font-size: 14px; color: #ddd6e8; }

/* ============ Form ============ */
.birth-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4); display: grid; gap: 14px;
}
.birth-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.birth-form input[type=date], .birth-form input[type=time] {
  background: var(--surface-2); border: 1px solid #3a2b52; color: var(--ink);
  border-radius: 12px; padding: 14px; font-size: 16px; color-scheme: dark; min-height: 48px;
}
.checkbox-row { display: flex !important; flex-direction: row; align-items: center; gap: 10px; font-weight: 500 !important; min-height: 44px; }
.checkbox-row input { width: 20px; height: 20px; accent-color: var(--primary); }

/* ============ Footer ============ */
.foot { border-top: 1px solid var(--line); margin-top: var(--space-6); padding: var(--space-5) var(--space-4) 60px; color: var(--muted); font-size: 12px; text-align: center; }
.foot p { margin-bottom: 6px; }
.safe-bottom { padding-bottom: max(60px, env(safe-area-inset-bottom)); }

/* ============ Report page (webtoon) ============ */
.toon { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; }
.panel { padding: var(--space-3) var(--space-4) 4px; }
.panel img { width: 100%; border-radius: var(--radius); display: block; }
.bubble-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px var(--space-4); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); flex-shrink: 0; }
.bubble { background: var(--surface); border-radius: 4px 18px 18px 18px; padding: 13px 15px; font-size: 15px; max-width: 80%; }
.bubble.gold-b { background: linear-gradient(135deg, #2a1233, #241028); border-left: 3px solid var(--primary); }
.dm-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px var(--space-4) 10px;
  background: var(--surface); border: 1px solid var(--primary); border-radius: 999px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: var(--primary); min-height: 44px;
}
.chart-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px var(--space-4) 10px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px; text-align: center; }
.pillar .lbl { font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.pillar .cn { font-size: 22px; font-weight: 900; color: var(--primary); }
.pillar .py { font-size: 10.5px; color: var(--muted); }
.elem-sec { padding: 10px var(--space-4) 20px; }
.elem-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.elem-name { width: 58px; font-size: 13px; color: var(--muted); }
.elem-bar { flex: 1; height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.elem-fill { height: 100%; border-radius: 6px; }
.elem-count { width: 20px; text-align: right; font-size: 13px; color: var(--primary); }
.paywall {
  margin: 20px var(--space-4) 32px; background: linear-gradient(160deg, #2a1233, var(--surface));
  border: 1px solid var(--primary-strong); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4); text-align: center;
}
.paywall h3 { font-size: 20px; margin-bottom: 8px; }
.paywall > p { color: var(--muted); font-size: 13.5px; margin-bottom: var(--space-4); }
.locked-grid { display: grid; gap: 10px; margin-bottom: var(--space-3); }
.locked-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; text-align: left; }
.locked-item small { color: var(--muted); }
.unlock-btn {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: none; font-size: 13px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: var(--on-primary); flex-shrink: 0;
}
.report-sec { padding: 0 var(--space-4) 8px; }
.report-sec h3 { color: var(--primary); margin: 14px 0 8px; font-size: 18px; }
.report-sec p { font-size: 15px; margin-bottom: 10px; color: #ddd6e8; }

/* Motion preferences */
@media not all { /* 动效照常播放：忽略系统「减少动态效果」（原 reduce 降级规则保留，改回此行即可恢复） */
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ============ Scraped-from-original additions ============ */
/* Floating pill nav (matches original: rounded, inset from edges, white active pill) */
.bottom-nav {
  position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 452px; z-index: 30;
  background: rgba(20,20,22,.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.55);
  display: flex; justify-content: space-around;
  padding: 8px 8px;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 54px; padding: 4px 2px; text-decoration: none;
  color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: 999px;
}
.bn-item.on { color: var(--ink); }
.bn-item .bn-ico {
  width: 44px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.bn-item.on .bn-ico { background: #fafafa; color: #111; }
.bn-item.on .bn-ico svg { stroke: #111; }

.cat-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--space-4);
  margin: 0; -webkit-overflow-scrolling: touch;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto; min-height: 40px; padding: 8px 18px; border-radius: 999px;
  background: #1d1d26; color: var(--ink); font-size: 14px; font-weight: 700;
  text-decoration: none; display: flex; align-items: center;
}
.cat-pill.on { background: #fff; color: #111; }

.hero-swipe {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 12% 8px; margin: 0 calc(-1 * var(--space-4));
  -webkit-overflow-scrolling: touch;
}
.hero-swipe::-webkit-scrollbar { display: none; }
.hero-card {
  scroll-snap-align: center; flex: 0 0 76%;
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 1024 / 1446; text-decoration: none; display: block;
  transition: transform .38s ease, filter .38s ease;
  transform: scale(.86); filter: brightness(.55) saturate(.85);
}
.hero-card.is-active { transform: none; filter: none; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* bottom scrim: dark fade so overlaid lettering never fights the artwork */
.hero-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: linear-gradient(180deg, transparent 0%, rgba(5,4,9,.45) 38%, rgba(5,4,9,.9) 78%, rgba(5,4,9,.97) 100%);
  pointer-events: none;
}
.hero-card .page-no {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-card .poster-title {
  position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 2;
  color: #fff;
}
.hero-card .poster-title .k {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 8px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(242,193,78,.14); border: 1px solid rgba(242,193,78,.35);
}
.hero-card .poster-title h2 {
  font-size: 30px; font-weight: 900; font-style: italic; line-height: 1.08;
  letter-spacing: -0.5px; text-shadow: 0 2px 24px rgba(0,0,0,.95), 0 1px 4px rgba(0,0,0,.8);
}
.hero-card .poster-title .who { font-size: 12px; color: #cfcfdd; margin-top: 8px; text-shadow: 0 1px 6px rgba(0,0,0,.9); }

.cover-card .poster-title-sm {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  color: #fff;
}
.cover-card .imgwrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, transparent 0%, rgba(5,4,9,.55) 45%, rgba(5,4,9,.95) 100%);
  pointer-events: none;
}
.cover-card .poster-title-sm h3 {
  font-size: 16px; font-weight: 900; font-style: italic;
  text-shadow: 0 2px 14px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.8);
}
.cover-card .poster-title-sm .k {
  font-size: 9px; letter-spacing: 2.5px; color: var(--accent); font-weight: 800;
  display: inline-block; margin-bottom: 5px;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(242,193,78,.14); border: 1px solid rgba(242,193,78,.35);
}

.insight-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, #1c0508, #3b0a14 55%, #12101a);
  border: 1px solid #58121f; border-radius: 20px; padding: 18px; text-decoration: none; color: var(--ink);
}
.insight-banner h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.insight-banner p { color: var(--muted); font-size: 12.5px; }
.insight-banner .ins-tag { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }

/* ============ Animations & behaviors scraped from sajutight.me ============ */

/* Page transitions: slideFromRight/ToLeft, 300ms, cubic-bezier(.22,1,.36,1) */
.page-enter { animation: slideFromRight .3s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page-exit  { animation: slideToLeft .26s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page-up    { animation: slideFromBottom .34s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes slideFromRight { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes slideToLeft    { to   { transform: translate3d(-100%, 0, 0); } }
@keyframes slideFromBottom { from { transform: translate3d(0, 100%, 0); } to { transform: translate3d(0, 0, 0); } }

/* Skeleton shimmer (scraped shimmer: translate(100%)) */
.skel {
  position: relative; overflow: hidden; background: #1a1a22;
  border-radius: 12px; color: transparent !important;
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* Signup coupon modal (scraped structure) */
.modal-ov {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.modal-ov.show { opacity: 1; }
.modal-ov.swipe-out { opacity: 0; transition: opacity .28s ease; }
.sheet {
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, #17101d 0%, #100a14 100%);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid #2e2438;
  padding: 30px 24px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  animation: slideFromBottom .34s cubic-bezier(0.22, 1, 0.36, 1) both;
  touch-action: none;
}
.sheet-glow {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,52,78,.45), transparent 70%);
  position: relative;
}
.sheet-glow::after {
  content: ""; position: absolute; inset: 18px; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: coupon-spin 6s linear infinite;
}
@keyframes coupon-spin { to { transform: rotate(360deg); border-style: dashed; } }
.sheet h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.cp-big { font-size: 26px; line-height: 1.25; font-weight: 700; margin-bottom: 10px; }
.cp-big b { color: var(--primary); }
.cp-sub { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.cp-sub2 { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.cp-login {
  width: 100%; min-height: 52px; border: 0; border-radius: 14px;
  background: var(--accent); color: #221a04;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; margin-bottom: 12px;
}
.cp-later {
  width: 100%; min-height: 48px; border: 0; border-radius: 14px;
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
}

/* Product detail: fullscreen immersive poster + roof-plaque CTA (scraped) */
.pd-wrap { position: relative; min-height: calc(100vh - 76px); }
.pd-hero { position: relative; min-height: 78vh; }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-hero .pd-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%, transparent 55%, rgba(5,5,8,.92) 100%);
}
.pd-body { padding: 0 20px 30px; position: relative; z-index: 2; margin-top: -90px; }
.pd-body .k { font-size: 12px; letter-spacing: 3px; color: var(--accent); font-weight: 700; }
.pd-body h1 { font-size: 30px; font-weight: 900; font-style: italic; margin: 8px 0 10px; }
.pd-body .desc { color: #c9c9d6; font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
.pd-meta { display: flex; gap: 10px; margin-bottom: 20px; }
.pd-meta span {
  background: #1c1c26; border: 1px solid #2c2c38; border-radius: 999px;
  font-size: 12px; padding: 6px 14px; color: #d8d8e4;
}
.pd-meta b { color: var(--accent); }
.roof-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 62px; border: 0; cursor: pointer;
  border-radius: 18px;
  background: linear-gradient(180deg, #24402e, #14241a);
  border: 2px solid #3d6b4c;
  box-shadow: 0 0 0 3px rgba(0,0,0,.5), inset 0 0 24px rgba(0,0,0,.4);
  color: #e9f5ea; font-size: 17px; font-weight: 800; letter-spacing: .5px;
  position: relative;
}
.roof-cta::before, .roof-cta::after {
  content: ""; position: absolute; top: -10px; width: 40%; height: 14px;
  background: linear-gradient(180deg, #2e5238, #1a2e21);
  border-radius: 999px 999px 0 0;
}
.roof-cta::before { left: -6px; transform: rotate(-4deg); }
.roof-cta::after  { right: -6px; transform: rotate(4deg); }
.roof-cta:active { transform: scale(.98); }

/* Trend / insight page (scraped: NEURAL SCAN · 07 AREAS, DESIRE MAP) */
.trend-hero { padding: 26px 20px 8px; }
.trend-hero .tk { font-size: 11px; letter-spacing: 3px; color: var(--accent); font-weight: 700; }
.trend-hero h1 { font-size: 34px; font-weight: 900; margin: 6px 0; }
.trend-hero .lead { color: var(--muted); font-size: 14px; }
.scan-card {
  margin: 14px 20px; padding: 20px; border-radius: 22px;
  background: radial-gradient(120% 120% at 50% 0%, #160d1f 0%, #0d0d13 70%);
  border: 1px solid #291d33; overflow: hidden;
}
.scan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.scan-head .l { font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.scan-head .r { font-size: 11px; color: var(--accent); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #5dd97c; animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.7);} }
.twinkle-node { animation: twinkle 3.2s ease infinite; transform-origin: center; transform-box: fill-box; }
@keyframes twinkle { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.35); opacity: .5; } }

.stat-cards { display: grid; gap: 12px; padding: 4px 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.stat-card .q { font-size: 11px; letter-spacing: 2px; color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.stat-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.stat-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.rank-row { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.rank-row .ord { font-size: 26px; font-weight: 900; font-style: italic; color: #3a3a48; }
.rank-row .ord.won { color: var(--primary); }
.rank-row .cat { font-size: 15px; font-weight: 800; }
.rank-row .pct { color: var(--muted); font-size: 12px; margin-left: auto; }
.bar { height: 8px; border-radius: 999px; background: #232330; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: grow 1.1s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes grow { from { width: 0 !important; } }
.age-chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.age-chips span { background: #1d1d28; border-radius: 999px; padding: 7px 14px; font-size: 12px; color: #d6d6e4; font-weight: 700; }
.age-chips span b { color: var(--accent); }

/* Zodiac page (scraped /fortune-2026 structure) */
.zd-hero { position: relative; padding: 22px 20px 6px; }
.zd-hero .k { font-size: 12px; letter-spacing: 3px; color: var(--accent); font-weight: 700; }
.zd-hero h1 { font-size: 30px; font-weight: 900; margin: 8px 0 10px; }
.zd-hero p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.energy-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.energy-tags span { background: #1d1d28; border: 1px solid #2c2c3a; border-radius: 999px; padding: 7px 13px; font-size: 12px; color: #d6d6e4; }
.zd-sort { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 0; font-size: 12px; color: var(--muted); }
.zd-list { display: grid; gap: 14px; padding: 10px 20px 20px; }
.zd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.zd-top { display: flex; align-items: center; gap: 14px; padding: 16px 18px 6px; }
.zd-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #262636, #17171f);
  border: 1px solid #333344;
}
.zd-top h3 { font-size: 17px; font-weight: 800; }
.zd-grade { margin-left: auto; text-align: right; }
.zd-grade .g { display: block; font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.zd-grade .s { font-size: 22px; font-weight: 900; font-style: italic; }
.zd-card > p { padding: 0 18px 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.zd-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 16px; }
.zd-chips span { background: #1d1d28; border-radius: 999px; padding: 6px 12px; font-size: 11.5px; color: #cfcfdd; font-weight: 600; }
.zd-chips span.best { color: var(--accent); font-weight: 800; }

/* Date row: three English selects (native date input renders in browser locale) */
.date-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.date-row select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: #1a1a24; border: 1px solid #2e2e3c; border-radius: 12px;
  color: var(--ink); font-size: 16px; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%239b9ba8' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* Hero carousel refinements: tighter peek + clamped lettering (user feedback) */
.hero-swipe { gap: 10px; }
.hero-card { flex: 0 0 76%; border-radius: 20px; }
.hero-card .poster-title h2 {
  font-size: clamp(22px, 7vw, 28px);
  overflow-wrap: anywhere;
}
.hero-card .poster-title .who {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   Motion tokens — installed from ui-design-languages skill
   (transitions.dev token system, single source of truth)
   ============================================================ */
:root {
  --duration-stagger: 40ms;
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --duration-very-slow: 500ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: ease-in-out;
  --ease-out: ease-out;
  --ease-linear: linear;
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
  --ease-bounce-strong: cubic-bezier(0.34, 3.85, 0.64, 1);
  --scale-large: 0.96;
  --scale-medium: 0.97;
  --blur-small: 2px;
  --blur-medium: 3px;
  --blur-large: 8px;
  --digit-dur: 500ms; --digit-distance: 8px; --digit-blur: 2px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --stagger-dur: 500ms; --stagger-distance: 12px; --stagger-stagger: 40ms;
  --stagger-blur: 3px; --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --toast-open: 350ms; --toast-close: 250ms; --toast-distance: 16px;
  --toast-blur: 2px; --toast-scale: 0.97;
  --toast-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 400ms; --reveal-blur: 2px; --reveal-ease: ease-in-out;
  --pulse-dur: 1000ms; --pulse-min: 0.5;
}

/* Page side-by-side (transitions.dev): 250ms + blur signature */
.page-enter { animation: pageIn var(--duration-fast) var(--ease-smooth-out) both; }
.page-exit  { animation: pageOut var(--duration-quick) var(--ease-smooth-out) both; }
.page-up    { animation: pageUp var(--duration-fast) var(--ease-smooth-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translate3d(var(--distance-base, 8px), 0, 0); filter: blur(var(--blur-medium)); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}
@keyframes pageOut {
  to { opacity: 0; transform: translate3d(calc(-1 * var(--distance-base, 8px)), 0, 0); filter: blur(var(--blur-small)); }
}
@keyframes pageUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); filter: blur(var(--blur-medium)); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

/* Skeleton: shimmer + reveal (进慢出快, blur reveal) */
.skel.is-revealed { animation: skelReveal var(--reveal-dur) var(--reveal-ease) both; }
@keyframes skelReveal { to { filter: blur(0); opacity: 1; } }
.skel { filter: blur(var(--blur-small)); }

/* Coupon modal: 开慢关快 + scale 0.96 (进慢出快铁律) */
.modal-ov { transition: opacity var(--duration-fast) var(--ease-smooth-out); }
.modal-ov.show { opacity: 1; }
.modal-ov.is-closing { opacity: 0; transition: opacity var(--duration-quick) var(--ease-smooth-out); }
.sheet { animation: sheetIn var(--duration-fast) var(--ease-bounce) both; }
.modal-ov.is-closing .sheet { animation: sheetOut var(--duration-quick) var(--ease-smooth-out) both; }
@keyframes sheetIn {
  from { transform: translate3d(0, 100%, 0) scale(var(--scale-large)); }
  to   { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes sheetOut {
  to { transform: translate3d(0, 100%, 0) scale(var(--scale-large)); }
}

/* Section titles: texts reveal (错开上升 + blur) */
.text-reveal { opacity: 0; }
.text-reveal.in { animation: textsReveal var(--stagger-dur) var(--stagger-ease) both; }
.text-reveal.in:nth-child(2) { animation-delay: var(--stagger-stagger); }
@keyframes textsReveal {
  from { opacity: 0; transform: translate3d(0, var(--stagger-distance), 0); filter: blur(var(--stagger-blur)); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

/* Number pop-in (live counter / scores) */
.num-pop { animation: numPop var(--digit-dur) var(--digit-ease) both; }
@keyframes numPop {
  from { opacity: .2; transform: translate3d(0, var(--digit-distance), 0); filter: blur(var(--digit-blur)); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

/* Toast (轻通知, 替代 alert) */
.toast {
  position: fixed; bottom: 96px; left: 50%; z-index: 70;
  transform: translateX(-50%);
  background: #24242e; color: #fff; border: 1px solid #38384a;
  border-radius: 999px; padding: 12px 22px; font-size: 13.5px; font-weight: 700;
  animation: toastIn var(--toast-open) var(--toast-ease) both;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.toast.is-closing { animation: toastOut var(--toast-close) var(--toast-ease) both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translate3d(0, var(--toast-distance), 0) scale(var(--toast-scale)); filter: blur(var(--toast-blur)); }
  to   { opacity: 1; transform: translateX(-50%) translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(-50%) translate3d(0, var(--toast-distance), 0) scale(var(--toast-scale)); filter: blur(var(--toast-blur)); }
}

/* 无障碍 (skill 强制要求) */
@media not all { /* 动效照常播放：忽略系统「减少动态效果」（原 reduce 降级规则保留，改回此行即可恢复） */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ Forensics v2 (2026-11-18, from sajutight.me runtime capture) ============ */
/* Section pattern: muted eyebrow + bold title (matches 궁합 분야 / 우리 둘의 케미는 어때?) */
.sec-eyebrow {
  display: block; color: var(--muted); font-size: 12.5px; font-weight: 600;
  letter-spacing: .2px; margin-bottom: 4px;
}
.sec-title { margin-bottom: 14px; }

/* 2026 insight banner: pink gradient frame + glow (matches original) */
.insight-banner {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 22px 18px; border-radius: 18px; text-decoration: none; overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(255,31,102,.28), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(255,31,102,.16), transparent 50%),
    linear-gradient(180deg, #1a1418, #121014);
  border: 1px solid rgba(255,31,102,.45);
  box-shadow: 0 0 0 1px rgba(255,31,102,.12), 0 10px 40px rgba(255,31,102,.14);
}
.insight-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,143,199,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,143,199,.07) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(80% 90% at 70% 40%, #000 30%, transparent 75%);
}
.insight-banner h3 { font-size: 19px; font-weight: 800; color: var(--ink); }
.insight-banner .ins-big { color: var(--pink-light); }
.insight-banner .ins-arrow {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}

/* Reviews (matches original layout: emoji avatar, name | masked id, stars, time) */
.review { background: transparent; border: 0; padding: 0; border-radius: 0; }
.review-list { display: flex; flex-direction: column; gap: 26px; }
.r-row { display: flex; align-items: flex-start; gap: 12px; }
.r-ava {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
}
.r-meta { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; }
.r-name { font-size: 13.5px; color: rgba(255,255,255,.8); font-weight: 600; white-space: nowrap; }
.r-name .bar { color: rgba(255,255,255,.2); margin: 0 6px; font-weight: 400; }
.r-id { color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-buy { font-size: 12px; color: var(--muted); justify-self: end; }
.r-stars { grid-column: 1; display: flex; gap: 1px; color: #facc15; }
.r-time { grid-column: 2; font-size: 11px; color: rgba(255,255,255,.4); align-self: center; }
.review > p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.9); white-space: pre-line; }

/* SOLO collab wide media card */
.solo-card {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); text-decoration: none; background: var(--surface);
}
.solo-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; opacity: .92; }
.solo-card .solo-cap {
  position: absolute; left: 14px; bottom: 12px; right: 52px;
  font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.9);
}
.solo-card .solo-fs {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px;
  border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.solo-lockup {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
}
.solo-lockup .x { color: rgba(255,255,255,.35); }

/* Pure-poster cards (matches original: poster IS the card, no border/info bar) */
.cover-card.poster { background: transparent; border: 0; padding: 0; border-radius: 14px; overflow: hidden; }
.cover-card.poster:active { transform: scale(.98); }
.cover-card.poster .imgwrap { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.cover-card.poster .imgwrap::after { content: none; }
.cover-card.poster img { aspect-ratio: 3/4.1; }
.cover-card.poster .badge-hot {
  position: absolute; top: 10px; left: 10px; z-index: 3; margin: 0;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; letter-spacing: .4px;
}
.cover-card.poster .poster-title-sm { z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,.95); }
.cover-card.poster .poster-title-sm .sub { display: block; font-size: 11px; font-weight: 600; color: #e4e4e7; margin-top: 4px; letter-spacing: .2px; }

/* Book-turn reading preview (product page) */
.book-preview { margin: 18px 0 6px; }
.book-stage {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); height: 360px;
}
.book-page { position: absolute; inset: 0; background: var(--surface); }
.book-page[hidden] { display: none; }
.book-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-page p {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 14px;
  font-size: 12.5px; color: #f4f4f5; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.88));
}
.book-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.book-dots i { width: 6px; height: 6px; border-radius: 999px; background: #3f3f46; transition: all .25s; }
.book-dots i.on { width: 18px; background: var(--primary); }
.book-hint { text-align: center; color: var(--muted); font-size: 11px; margin-top: 8px; }

/* ============ Ambient animated background (original-site style: dark breathing aura + rising motes) ============ */
.bg-aura {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(52% 36% at 82% -6%, rgba(255,31,102,.13), transparent 65%),
    radial-gradient(46% 32% at 8% 30%, rgba(124,58,237,.08), transparent 60%),
    radial-gradient(60% 40% at 50% 110%, rgba(255,31,102,.1), transparent 65%);
  animation: auraShift 14s ease-in-out infinite alternate;
}
@keyframes auraShift {
  0%   { filter: brightness(1) hue-rotate(0deg); transform: translateY(0); }
  50%  { filter: brightness(1.35) hue-rotate(-8deg); transform: translateY(-8px); }
  100% { filter: brightness(1.1) hue-rotate(6deg); transform: translateY(6px); }
}
.bg-mote {
  position: fixed; bottom: -10px; z-index: -1; width: 3px; height: 3px; border-radius: 999px;
  background: rgba(255,143,199,.5); filter: blur(.5px); pointer-events: none;
  animation: moteRise linear infinite;
}
@keyframes moteRise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .7; }
  90% { opacity: .25; }
  100% { transform: translateY(-104vh) translateX(18px); opacity: 0; }
}

/* hero card shine sweep + gentle float on the active card */
.hero-card { will-change: transform, filter; }
.hero-card::before {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -80%; width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.16), transparent);
  transform: skewX(-18deg); z-index: 4; pointer-events: none; opacity: 0;
}
.hero-card.is-active::before { animation: heroShine 5.2s ease-in-out infinite; }
@keyframes heroShine {
  0%, 55% { left: -80%; opacity: 0; }
  62% { opacity: 1; }
  82%, 100% { left: 130%; opacity: 0; }
}
.hero-card.is-active { animation: heroFloat 6.5s ease-in-out infinite; }
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
.hero-card.is-active img { animation: heroZoom 9s ease-in-out infinite alternate; }
@keyframes heroZoom { from { scale: 1; } to { scale: 1.06; } }

@media not all { /* 动效照常播放：忽略系统「减少动态效果」（原 reduce 降级规则保留，改回此行即可恢复） */
  .bg-aura, .bg-mote, .hero-card.is-active, .hero-card.is-active::before, .hero-card.is-active img { animation: none !important; }
}

/* Admin-driven announcement bar */
.ann-bar {
  position: sticky; top: 52px; z-index: 24;
  background: linear-gradient(90deg, rgba(255,31,102,.22), rgba(255,31,102,.1));
  border-block: 1px solid rgba(255,31,102,.35);
  color: #ffd7e4; font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 8px 16px; text-align: center;
  animation: annGlow 3s ease-in-out infinite;
}
@keyframes annGlow { 0%,100% { background-color: rgba(255,31,102,.06) } 50% { background-color: rgba(255,31,102,.14) } }

/* ---- 全局：原生控件跟随深色主题（否则日期/月份下拉是白底，字看不清） ---- */
select { color-scheme: dark; }
select option,
select optgroup { background-color: #17131e; color: #f4f1f7; }
input[type="date"], input[type="time"], input[type="month"] { color-scheme: dark; }
/* global select fix */

/* 海報亮度歸一（首頁/其他頁共用）：少數海報頂部接近純白，深色站裡會像「白色輪播圖」 */
.hero-card img { filter: brightness(.82) saturate(.96) contrast(1.04); }
.hero-card:not(.is-active) img { filter: brightness(.58) saturate(.9) contrast(1.02); }

/* ---------- 分享钩子卡（命盘报告页） ---------- */
.share-hook {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 16px; padding: 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 31, 102, .14), rgba(255, 31, 102, .05));
  border: 1px dashed rgba(255, 31, 102, .45);
}
.sh-ico { font-size: 26px; flex: 0 0 auto; }
.sh-txt { flex: 1; min-width: 0; }
.sh-txt b { font-size: 13.5px; color: var(--ink); }
.sh-txt p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.sh-txt em { color: var(--primary); font-style: normal; font-weight: 800; }
.sh-btn {
  flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 13px;
  font-family: inherit; cursor: pointer;
}
.sh-btn:active { transform: scale(.96); }
.sh-btn.got { background: #23281f; color: #f2efe6; }

/* 左上角「AI生成」角标的暗角遮罩已废弃：微信里会显示成一块黑斑 */
.wm-mask { display: none !important; }
