/* 2026-11-24: Unified iOS Celestial Liquid Glass + Feature Cover Avatars + Smooth Animations */
header nav a[aria-current="page"] {
  color: #13172e;
  background: linear-gradient(110deg, #ffd58a, #ffb5a6);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 194, 150, .28);
}
header nav a[aria-current="page"]:hover {
  color: #13172e;
  background: linear-gradient(110deg, #ffe3a8, #ffc2b6);
}
.crumbs { margin: 0 0 10px; font-size: .82rem; color: #aeb9da; }
.crumbs a { color: #c5b3fb; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Section Cover Avatars on every opened feature page */
body[data-section] .intro::before {
  content: "";
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 213, 138, .45);
  background-color: rgba(16, 23, 56, .8);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38px 38px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 12px 28px rgba(4, 7, 22, .42), 0 0 24px rgba(255, 213, 138, .18);
  animation: avatarFloat 4.2s ease-in-out infinite alternate;
}
body[data-section="quiz"] .intro::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffd58a'/%3E%3Cstop offset='1' stop-color='%23ff8e84'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='24' r='20' fill='url(%23g)' opacity='.16'/%3E%3Cpath d='M24 37s-11-6.9-11-15.2A6.6 6.6 0 0 1 24 16.5a6.6 6.6 0 0 1 11 5.3C35 30.1 24 37 24 37z' fill='url(%23g)'/%3E%3Ccircle cx='35' cy='12' r='2.5' fill='%23fff3dc'/%3E%3C/svg%3E");
}
body[data-section="dict"] .intro::before {
  border-color: rgba(197, 179, 251, .48);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 12px 28px rgba(4, 7, 22, .42), 0 0 24px rgba(197, 179, 251, .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23c5b3fb'/%3E%3Cstop offset='1' stop-color='%23ffd58a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='7' y='10' width='34' height='24' rx='10' fill='url(%23g)' opacity='.2' stroke='url(%23g)' stroke-width='2.4'/%3E%3Cpath d='M16 34l-3 7 8-7' fill='url(%23g)'/%3E%3Ccircle cx='18' cy='22' r='2.2' fill='%23fff3dc'/%3E%3Ccircle cx='24' cy='22' r='2.2' fill='%23fff3dc'/%3E%3Ccircle cx='30' cy='22' r='2.2' fill='%23fff3dc'/%3E%3C/svg%3E");
}
body[data-section="zodiac"] .intro::before {
  border-color: rgba(158, 212, 255, .45);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 12px 28px rgba(4, 7, 22, .42), 0 0 24px rgba(158, 212, 255, .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%239ed4ff'/%3E%3Cstop offset='1' stop-color='%23ffd58a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='24' r='16' fill='none' stroke='url(%23g)' stroke-width='2' stroke-dasharray='4 3'/%3E%3Cpath d='M24 10l3.2 10.8L38 24l-10.8 3.2L24 38l-3.2-10.8L10 24l10.8-3.2z' fill='url(%23g)'/%3E%3C/svg%3E");
}
body[data-section="guides"] .intro::before {
  border-color: rgba(167, 240, 203, .45);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 12px 28px rgba(4, 7, 22, .42), 0 0 24px rgba(167, 240, 203, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23a7f0cb'/%3E%3Cstop offset='1' stop-color='%23ffd58a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 12c5-2 10-1 14 2 4-3 9-4 14-2v23c-5-2-10-1-14 2-4-3-9-4-14-2z' fill='url(%23g)' opacity='.2' stroke='url(%23g)' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M24 14v23' stroke='url(%23g)' stroke-width='2'/%3E%3C/svg%3E");
}
@keyframes avatarFloat { from { transform: translateY(0); } to { transform: translateY(-4px); } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 14px; margin: 18px 0 8px; padding: 0; list-style: none; }
.card-grid li { padding: 0; animation: cardFadeUp .45s cubic-bezier(.16, 1, .3, 1) both; }
.card-grid li:nth-child(2) { animation-delay: .04s; }
.card-grid li:nth-child(3) { animation-delay: .08s; }
.card-grid li:nth-child(4) { animation-delay: .12s; }
.card-grid li:nth-child(5) { animation-delay: .16s; }
.card-grid li:nth-child(6) { animation-delay: .2s; }
@keyframes cardFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-grid a { position: relative; overflow: hidden; display: block; height: 100%; padding: 18px 18px 16px; border: 1px solid rgba(196, 210, 255, .2); border-radius: 20px; background: linear-gradient(155deg, rgba(24, 33, 74, .82), rgba(11, 16, 40, .9)); box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 14px 32px rgba(4, 7, 22, .28); text-decoration: none; color: #edf1ff; transition: border-color .22s, transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s; }
.card-grid a::after { content: ""; position: absolute; inset: 0; transform: translateX(-110%); background: linear-gradient(105deg, transparent 32%, rgba(255, 220, 175, .11) 50%, transparent 68%); pointer-events: none; transition: transform .55s ease; }
.card-grid a:hover::after { transform: translateX(110%); }
.card-grid a:hover, .card-grid a:focus-visible { border-color: rgba(255, 213, 138, .72); transform: translateY(-4px); box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 20px 44px rgba(4, 7, 22, .44); }
.card-grid .card-kicker { display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgba(197, 179, 251, .12); border: 1px solid rgba(197, 179, 251, .28); font-size: .72rem; letter-spacing: .1em; color: #d5c7ff; }
.card-grid strong { display: block; margin: 10px 0 6px; font-size: 1.08rem; color: #fff4df; }
.card-grid span.card-copy { display: block; font-size: .88rem; line-height: 1.7; color: #b9c4de; }
.zodiac-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.zodiac-grid .sign-glyph { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 14px; background: linear-gradient(145deg, rgba(255, 213, 138, .16), rgba(197, 179, 251, .16)); border: 1px solid rgba(255, 213, 138, .35); font-size: 1.45rem; line-height: 1; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.zodiac-grid a:hover .sign-glyph { transform: scale(1.1) rotate(-4deg); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pill-row li { padding: 4px 13px; border: 1px solid rgba(196, 210, 255, .24); background: rgba(14, 20, 48, .66); border-radius: 999px; font-size: .84rem; color: #e2e8fc; }
.meta-line { color: #aeb9da; font-size: .9rem; }
.disclaimer { margin-top: 22px; padding: 14px 18px; border-left: 3px solid #c5b3fb; background: rgba(17, 23, 52, .72); border-radius: 0 14px 14px 0; font-size: .86rem; color: #b9c4de; }

/* the shared call to the mini program */
.cta-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 34px 0 6px; padding: 24px 26px; border: 1px solid rgba(255, 213, 138, .55); border-radius: 24px; background: radial-gradient(circle at 12% 0%, rgba(255, 213, 138, .16), transparent 50%), linear-gradient(150deg, rgba(22, 31, 68, .88), rgba(11, 15, 38, .94)); box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 22px 50px rgba(4, 7, 22, .38); }
.cta-card .cta-copy { flex: 1 1 280px; min-width: 0; }
.cta-card h2 { margin: 0 0 .4em; font-size: 1.32rem; }
.cta-card p { margin: .3em 0; }
.cta-card .cta-how { color: #fff1d8; }
.cta-card img { width: 148px; height: 148px; border-radius: 18px; background: #fff; padding: 7px; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.cta-card .cta-hint { font-size: .8rem; color: #aeb9da; }

/* the interactive quiz with spring animations */
.quiz { position: relative; overflow: hidden; margin: 22px 0 10px; padding: 26px 26px 24px; border: 1px solid rgba(214, 224, 255, .22); border-radius: 26px; background: radial-gradient(circle at 86% 6%, rgba(197, 179, 251, .14), transparent 44%), linear-gradient(155deg, rgba(22, 31, 68, .86), rgba(11, 15, 38, .94)); box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 24px 56px rgba(4, 7, 22, .38); }
.quiz[hidden], .quiz [hidden] { display: none !important; }
.quiz-progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffd58a, #ff9d8e, #c5b3fb); background-size: 200% 100%; animation: barShimmer 2.4s linear infinite; transition: width .36s cubic-bezier(.32, .72, 0, 1); }
@keyframes barShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.quiz-count { margin: 12px 0 0; font-size: .84rem; color: #ffd58a; font-weight: 600; }
.quiz-q { margin: 8px 0 18px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.32rem; line-height: 1.55; color: #fff3dd; animation: quizSlideIn .32s cubic-bezier(.16, 1, .3, 1) both; }
.quiz-options { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.quiz-options li { animation: quizSlideIn .35s cubic-bezier(.16, 1, .3, 1) both; }
.quiz-options li:nth-child(2) { animation-delay: .05s; }
.quiz-options li:nth-child(3) { animation-delay: .1s; }
.quiz-options li:nth-child(4) { animation-delay: .15s; }
@keyframes quizSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-options button { width: 100%; padding: 14px 18px; text-align: left; font: inherit; line-height: 1.6; color: #edf1ff; background: rgba(14, 20, 48, .72); border: 1px solid rgba(196, 210, 255, .22); border-radius: 16px; cursor: pointer; transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), border-color .18s, background .18s, box-shadow .18s; }
.quiz-options button:hover, .quiz-options button:focus-visible { transform: translateY(-2px); border-color: #ffd58a; background: rgba(44, 38, 82, .85); box-shadow: 0 10px 24px rgba(4, 7, 22, .32); }
.quiz-options button:active { transform: scale(.985); }
.quiz-start { padding: 13px 28px; font: inherit; font-weight: 700; color: #13172e; background: linear-gradient(110deg, #ffd58a, #ffb5a6); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 28px rgba(255, 194, 150, .3); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s; }
.quiz-start:hover, .quiz-start:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 194, 150, .4); background: linear-gradient(110deg, #ffe3a8, #ffc2b6); }
.quiz-result { animation: quizResultPop .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes quizResultPop { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-result h2 { margin: 4px 0 .2em; font-size: clamp(1.65rem, 4vw, 2.25rem); color: #fff3dd; }
.quiz-result .result-tag { margin: 0 0 14px; color: #c5b3fb; font-size: 1.02rem; }
.quiz-result .result-body { color: #eef1ff; }
.quiz-result h3 { margin-top: 1.25em; }
.quiz-bars { display: grid; gap: 10px; margin: 16px 0; padding: 16px 18px; border-radius: 18px; background: rgba(9, 13, 34, .56); border: 1px solid rgba(196, 210, 255, .14); }
.quiz-bars div { display: grid; grid-template-columns: 6.5em 1fr 3.2em; align-items: center; gap: 10px; font-size: .88rem; color: #e2e8fc; }
.quiz-bars .bar { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.quiz-bars .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd58a, #c5b3fb); transform-origin: left center; animation: barGrow .75s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes barGrow { from { transform: scaleX(.1); opacity: .5; } to { transform: none; opacity: 1; } }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quiz-actions button { padding: 10px 20px; font: inherit; font-weight: 600; color: #ffe1aa; background: rgba(255, 255, 255, .05); border: 1px solid rgba(197, 179, 251, .42); border-radius: 999px; cursor: pointer; transition: transform .18s, border-color .18s, background .18s; }
.quiz-actions button:hover, .quiz-actions button:focus-visible { transform: translateY(-2px); border-color: #ffd58a; background: rgba(255, 213, 138, .12); }
.bridge { margin: 20px 0; padding: 18px 20px; border: 1px solid rgba(255, 213, 138, .48); border-radius: 18px; background: rgba(255, 213, 138, .08); }
.bridge h3 { margin: 0 0 .3em; color: #fff1d8; }
.bridge p { margin: .3em 0; }
.bridge .bridge-how { color: #ffe1aa; font-size: .9rem; }
.result-picture { margin: 18px 0 4px; }
.result-picture .picture-hint { margin: 0 0 8px; font-size: .84rem; color: #aeb9da; }
.result-card { display: block; width: min(330px, 100%); height: auto; border-radius: 20px; border: 1px solid rgba(255, 213, 138, .35); box-shadow: 0 18px 42px rgba(4, 7, 22, .45); }
.type-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.type-list li { padding: 14px 18px; border: 1px solid rgba(196, 210, 255, .18); border-radius: 16px; background: rgba(16, 22, 52, .72); }
.type-list strong { display: block; color: #fff1d8; }
.type-list span { font-size: .9rem; color: #b9c4de; }

/* the section the homepage shows */
.home-content { padding: 70px 0 10px; }
.home-content h2 { margin: 12px 0 10px; font: 600 clamp(26px, 3.4vw, 38px)/1.3 "Noto Serif SC", "Songti SC", serif; color: #f6f3ff; }
.home-content p.lead-copy { max-width: 720px; margin: 0 0 22px; color: #b9c6e6; line-height: 1.85; }
.home-content .card-grid a { background: linear-gradient(160deg, rgba(36, 42, 92, .55), rgba(14, 17, 44, .7)); border-color: rgba(214, 222, 255, .14); }

@media (max-width: 520px) {
  .quiz { padding: 20px 16px; border-radius: 22px; }
  .cta-card { padding: 18px; border-radius: 20px; }
  .cta-card img { width: 128px; height: 128px; }
  .quiz-bars div { grid-template-columns: 5.5em 1fr 2.6em; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-section] .intro::before, .card-grid li, .quiz-progress i, .quiz-q, .quiz-options li, .quiz-result, .quiz-bars .bar i { animation: none !important; }
}

/* 2026-11-13: one-tap open, the slim bar at the bottom, the line in the middle of a phrase page */
.cta-open { display: inline-block; margin-top: 10px; padding: 11px 22px; border-radius: 999px; background: linear-gradient(110deg, #ffd58a, #ffb5a6); color: #13172e; font-weight: 700; text-decoration: none; }
.cta-open:hover, .cta-open:focus-visible { background: linear-gradient(110deg, #ffe3a8, #ffc2b6); color: #13172e; }
.cta-open[hidden], .cta-fail[hidden] { display: none; }
.cta-fail { margin: 8px 0 0; font-size: .85rem; color: #ffb4a8; }
.inline-cta { margin: 6px 0 18px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 213, 138, .08); border: 1px dashed rgba(255, 213, 138, .55); font-size: .92rem; color: #eef1ff; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 19, 46, .94); backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 213, 138, .6); box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
.sticky-cta[hidden] { display: none; }
.sticky-cta .sticky-text { flex: 1; min-width: 0; font-size: .9rem; color: #fff1d8; }
.sticky-cta .sticky-go { padding: 8px 16px; font: inherit; font-weight: 700; color: #13172e; background: linear-gradient(110deg, #ffd58a, #ffb5a6); border: 0; border-radius: 999px; cursor: pointer; }
.sticky-cta .sticky-close { padding: 4px 8px; font-size: 1.2rem; line-height: 1; color: #aeb9da; background: transparent; border: 0; cursor: pointer; }
@media (min-width: 701px) { .sticky-cta { display: none; } }
@media (max-width: 700px) { body { padding-bottom: 64px; } }
