:root {
  --ink: #241d31;
  --muted: #756d82;
  --purple: #6f55df;
  --purple-dark: #5940c5;
  --surface: rgba(255, 255, 255, 0.75);
  --line: rgba(58, 42, 78, 0.09);
  --shadow: 0 24px 60px rgba(77, 55, 110, 0.14);
  --card-back-image: url("./assets/card-back-rose-serpent.webp");
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 5%, rgba(192, 227, 255, 0.75), transparent 28%),
    radial-gradient(circle at 15% 34%, rgba(236, 199, 255, 0.7), transparent 33%),
    linear-gradient(160deg, #faf7ff 0%, #f4effa 50%, #f8f4f5 100%);
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(111, 85, 223, 0.24); outline-offset: 3px; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}
.ambient-one { top: 32vh; left: -180px; background: #eab7f1; }
.ambient-two { top: 70vh; right: -180px; background: #b9d9fa; }

.app-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 18px calc(68px + env(safe-area-inset-bottom));
}

.topbar { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.brand { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 24px; font-weight: 650; letter-spacing: -1px; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: #fff; background: linear-gradient(145deg, #ccb2ee, #8e70d7); border-radius: 11px; box-shadow: 0 8px 20px rgba(105, 76, 159, .22); font-size: 22px; }
.top-actions { display: flex; gap: 9px; }
.icon-button, .close-button { display: grid; place-items: center; border: 1px solid rgba(54, 39, 74, .09); background: rgba(255,255,255,.66); box-shadow: 0 6px 18px rgba(62,45,88,.08); cursor: pointer; }
.icon-button { width: 39px; height: 39px; border-radius: 50%; backdrop-filter: blur(14px); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.muted .sound-wave { display: none; }
.icon-button.muted::after { content: ""; position: absolute; width: 22px; height: 1.5px; background: currentColor; transform: rotate(-45deg); }

.notice { display: flex; align-items: center; gap: 9px; min-height: 54px; margin: 8px 0 18px; padding: 9px 12px; border: 1px solid rgba(117, 83, 182, .06); border-radius: 14px; background: linear-gradient(90deg, rgba(226,211,255,.76), rgba(255,255,255,.48)); box-shadow: 0 7px 24px rgba(92,69,131,.06); }
.notice-orb { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 9px; background: #fff7c8; color: #8f71cd; font-size: 12px; box-shadow: 0 5px 12px rgba(120,87,150,.13); }
.notice p { display: -webkit-box; margin: 0; min-width: 0; flex: 1; color: #766a83; overflow: hidden; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notice p strong { color: #5f4f72; }
.notice-arrow { color: #8c7a9d; font-size: 22px; line-height: 1; }

.view { display: none; animation: view-in .38s ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

.hero-card { position: relative; min-height: 350px; padding: 46px 25px 28px; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; background:
  linear-gradient(180deg, rgba(246,238,255,.28), rgba(255,255,255,.07)),
  url("./assets/moon-card.webp") center 29% / cover;
  box-shadow: var(--shadow); overflow: hidden; text-align: center; isolation: isolate; }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24,22,68,.04) 12%, rgba(60,43,108,.22) 54%, rgba(50,37,82,.5) 100%); }
.hero-card::after { content: ""; position: absolute; inset: auto 0 0; height: 58%; z-index: -1; background: linear-gradient(transparent, rgba(44,31,74,.7)); }
.hero-stars { position: absolute; inset: 19px 0 auto; color: rgba(255,248,221,.92); font-size: 14px; letter-spacing: 8px; }
.eyebrow { margin: 0 0 8px; color: #8e7aa5; font-size: 10px; font-weight: 750; letter-spacing: 2.1px; }
.hero-card .eyebrow { color: rgba(255,255,255,.72); }
.hero-card h1 { margin: 0; color: #fffdfb; font-family: "Songti SC", "STSong", Georgia, serif; font-size: clamp(34px, 9vw, 46px); font-weight: 500; line-height: 1.18; letter-spacing: 1px; text-shadow: 0 2px 22px rgba(35,22,65,.3); }
.hero-card > p:not(.eyebrow) { margin: 18px auto 25px; color: rgba(255,255,255,.78); font-size: 13px; }
.primary-button { display: inline-flex; align-items: center; gap: 15px; min-width: 150px; justify-content: center; padding: 13px 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(255,255,255,.9); color: #5840b4; box-shadow: 0 12px 30px rgba(29,21,61,.22); font-size: 14px; font-weight: 650; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(29,21,61,.28); }
.primary-button:active { transform: scale(.97); }
.button-spark { font-size: 11px; }

.custom-question-card { margin-top: 17px; padding: 19px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: linear-gradient(140deg, rgba(255,255,255,.76), rgba(235,226,250,.67)); box-shadow: 0 12px 30px rgba(75,55,100,.08); }
.custom-question-heading { display: flex; align-items: center; gap: 11px; }
.custom-question-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #b59ce8, #785bc8); color: #fff8cf; box-shadow: 0 8px 18px rgba(92,66,151,.2); }
.custom-question-heading .eyebrow { margin-bottom: 3px; }
.custom-question-heading h2 { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 23px; }
.custom-question-card > p { margin: 12px 0 10px; color: var(--muted); font-size: 11px; }
.custom-question-card textarea { display: block; width: 100%; min-height: 70px; padding: 12px 13px; resize: vertical; border: 1px solid rgba(77,58,105,.1); border-radius: 15px; outline: none; background: rgba(255,255,255,.68); color: var(--ink); font-size: 13px; line-height: 1.6; }
.custom-question-card textarea::placeholder { color: #aaa1b4; }
.question-suggestions { display: flex; gap: 7px; margin: 9px 0 12px; overflow-x: auto; scrollbar-width: none; }
.question-suggestions::-webkit-scrollbar { display: none; }
.question-suggestions button { flex: 0 0 auto; padding: 5px 10px; border: 1px solid rgba(105,79,151,.1); border-radius: 99px; background: rgba(255,255,255,.6); color: #76678b; font-size: 10px; cursor: pointer; }
.custom-question-submit { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 15px; background: linear-gradient(135deg, #8b6ee5, #6042ca); color: #fff; box-shadow: 0 8px 20px rgba(91,61,190,.2); font-size: 13px; font-weight: 650; cursor: pointer; }
.custom-question-submit:disabled { background: #d9d2df; color: #99909f; box-shadow: none; cursor: default; }
.custom-question-echo { margin: 18px 0 4px; padding: 13px 15px; border-left: 3px solid #8a6dd8; border-radius: 0 14px 14px 0; background: rgba(255,255,255,.58); text-align: left; }
.custom-question-echo span { color: #8e79a7; font-size: 8px; font-weight: 750; letter-spacing: 1px; }
.custom-question-echo p { margin: 5px 0 0; color: #51475a; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 14px; line-height: 1.65; }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 28px 2px 13px; }
.hero-card + .section-heading { margin-top: 22px; }
.section-heading h2, .page-heading h1 { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-weight: 600; }
.section-heading h2 { font-size: 25px; }
.text-button { padding: 7px 0; border: 0; background: none; color: #77688b; font-size: 12px; cursor: pointer; }
.text-button span { margin-left: 3px; }
.text-button.danger { color: #a77883; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-card { position: relative; display: flex; min-height: 174px; padding: 19px; border: 1px solid rgba(255,255,255,.75); border-radius: 24px; overflow: hidden; text-align: left; cursor: pointer; box-shadow: 0 13px 30px rgba(75,55,100,.09); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(75,55,100,.14); }
.feature-card:active { transform: scale(.98); }
.feature-card.wide { grid-column: 1 / -1; min-height: 152px; }
.feature-copy { position: relative; z-index: 2; max-width: 70%; align-self: flex-start; }
.feature-kicker { color: rgba(54,43,72,.53); font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.feature-card h3 { margin: 7px 0 6px; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 23px; font-weight: 650; }
.feature-card p { margin: 0; color: rgba(54,43,72,.62); font-size: 11px; line-height: 1.6; }
.card-lilac { background: linear-gradient(145deg, #f0e1ff, #d6c2fb); }
.card-blue { background: linear-gradient(145deg, #e2f4ff, #bddeed); }
.card-rose { background: linear-gradient(145deg, #ffebf1, #efc7d7); }
.card-sage { background: linear-gradient(145deg, #e9f3df, #c9ddc5); }
.card-camera { background: linear-gradient(135deg, #ddd0ff 0%, #c6dafa 52%, #efd8f2 100%); }
.card-avoidant { background: linear-gradient(135deg, #efe2d2 0%, #d8d8ce 48%, #d8e5e2 100%); }
.spread-section-heading { margin-top: 22px; }
.spread-feature-grid .feature-card { min-height: 166px; }
.spread-feature-grid .feature-card.wide { min-height: 132px; }
.spread-feature-grid .feature-card:not(.wide) .feature-copy { max-width: 100%; }
.spread-feature-grid .feature-card:not(.wide) .feature-copy p { max-width: 62%; }
.card-two-spread { background: linear-gradient(145deg, #e8e1fa, #cadbf3); }
.card-cross-spread { background: linear-gradient(145deg, #f6e5df, #e7d2ee); }
.card-nine-spread { background: linear-gradient(145deg, #e8efe1, #cfe2dc); }
.card-grand-spread { background: linear-gradient(135deg, #dfd2ec, #cbd9e7 48%, #e8dfcd); }
.spread-question-card { margin-top: 10px; padding: 16px; }
.spread-question-card textarea { min-height: 64px; }
.spread-glyph { position: absolute; right: 16px; bottom: 14px; color: rgba(255,255,255,.9); filter: drop-shadow(0 7px 10px rgba(56,41,84,.16)); }
.two-glyph { display: flex; gap: 5px; transform: rotate(5deg); }
.two-glyph i { display: grid; width: 38px; height: 57px; place-items: center; border: 2px solid rgba(255,255,255,.85); border-radius: 8px; background: #78649c; font-style: normal; }
.two-glyph i:first-child { transform: rotate(-9deg); background: #899cc2; }
.cross-card-glyph { position: absolute; right: 20px; bottom: 16px; display: grid; grid-template: repeat(3, 25px) / repeat(3, 17px); gap: 3px; width: 57px; height: 81px; transform: rotate(3deg); filter: drop-shadow(0 6px 9px rgba(56,41,84,.16)); }
.cross-card-glyph i { display: block; border: 1px solid rgba(255,255,255,.9); border-radius: 3px; background: var(--card-back-image) center / cover no-repeat; box-shadow: 0 2px 5px rgba(52,39,73,.14); }
.cross-card-glyph i:nth-child(1) { grid-area: 1 / 2; }
.cross-card-glyph i:nth-child(2) { grid-area: 2 / 1; }
.cross-card-glyph i:nth-child(3) { z-index: 2; grid-area: 2 / 2; transform: scale(1.06); }
.cross-card-glyph i:nth-child(4) { grid-area: 2 / 3; }
.cross-card-glyph i:nth-child(5) { grid-area: 3 / 2; }
.nine-glyph { position: absolute; right: 23px; bottom: 20px; display: grid; grid-template-columns: repeat(3, 19px); gap: 3px; transform: rotate(4deg); }
.nine-glyph i, .grand-glyph i { display: block; aspect-ratio: 3 / 4; border: 1px solid rgba(255,255,255,.88); border-radius: 3px; background: linear-gradient(145deg, #8470a8, #5d4a7f); box-shadow: 0 3px 7px rgba(52,39,73,.15); }
.grand-glyph { position: absolute; right: 16px; bottom: 14px; display: grid; grid-template-columns: repeat(4, 14px); gap: 2px; width: 64px; transform: rotate(3deg); }
.grand-glyph i:nth-child(3n) { background: linear-gradient(145deg, #899c90, #667a6b); }
.extension-fan { position: absolute; right: 17px; bottom: 8px; width: 142px; height: 126px; }
.extension-fan img { position: absolute; bottom: 0; width: 51px; aspect-ratio: 2 / 3; border: 2px solid rgba(255,255,255,.8); border-radius: 7px; object-fit: cover; box-shadow: 0 8px 17px rgba(64,48,42,.2); }
.extension-fan img:nth-child(1) { left: 0; transform: rotate(-12deg); }
.extension-fan img:nth-child(2) { left: 30px; bottom: 7px; transform: rotate(-4deg); }
.extension-fan img:nth-child(3) { left: 60px; bottom: 7px; transform: rotate(4deg); }
.extension-fan img:nth-child(4) { left: 90px; transform: rotate(12deg); }
.camera-feature-art { position: absolute; right: 22px; bottom: 18px; width: 104px; height: 94px; color: rgba(73,54,112,.78); transform: rotate(3deg); }
.camera-feature-art svg { width: 88px; height: 88px; fill: rgba(255,255,255,.4); stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 10px 13px rgba(66,46,101,.15)); }
.camera-feature-art span { position: absolute; top: 2px; right: 0; color: #fff7cf; font-size: 18px; text-shadow: 0 4px 10px rgba(90,64,130,.2); }
.mini-deck { position: absolute; right: 18px; bottom: 18px; width: 105px; height: 85px; }
.mini-deck span { position: absolute; display: grid; place-items: center; width: 50px; height: 72px; border: 3px solid rgba(255,255,255,.86); border-radius: 9px; background: #514075; color: #fff7da; box-shadow: 0 7px 14px rgba(56,41,84,.2); font-size: 20px; }
.three-deck span:nth-child(1) { left: 0; transform: rotate(-10deg); background: #6e5d95; }
.three-deck span:nth-child(2) { left: 28px; top: -6px; background: #57457c; }
.three-deck span:nth-child(3) { left: 56px; transform: rotate(10deg); background: #7d6ca4; }
.stacked span:nth-child(1) { right: 0; transform: rotate(10deg); }
.stacked span:nth-child(2) { right: 25px; top: -6px; background: #758966; }
.stacked span:nth-child(3) { right: 50px; transform: rotate(-10deg); background: #9aaa7f; }
.question-mark, .feature-symbol { position: absolute; right: 18px; bottom: 5px; color: rgba(255,255,255,.92); font-family: Georgia, serif; font-size: 94px; line-height: 1; text-shadow: 0 9px 18px rgba(71,62,95,.14); transform: rotate(7deg); }
.feature-symbol { right: 11px; bottom: 7px; font-size: 90px; transform: rotate(-7deg); }

.moon-note { display: flex; gap: 10px; align-items: center; margin: 19px 0 2px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.75); border-radius: 14px; background: rgba(255,255,255,.46); backdrop-filter: blur(14px); }
.moon-note-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 11px; background: linear-gradient(145deg, #cbb7ef, #9475d1); color: #fff9e9; font-size: 18px; box-shadow: 0 6px 12px rgba(94,67,142,.16); }
.moon-note .eyebrow { margin-bottom: 1px; font-size: 7px; letter-spacing: 1.4px; }
.moon-note h3 { margin: 0 0 1px; font-size: 12px; line-height: 1.3; }
.moon-note > div > p:last-child { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.4; }

.page-heading { padding: 24px 4px 17px; }
.page-heading h1 { font-size: 32px; }
.page-heading > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.history-heading { display: flex; align-items: end; justify-content: space-between; }
.search-box { display: flex; align-items: center; gap: 10px; margin: 3px 0 18px; padding: 0 15px; height: 48px; border: 1px solid rgba(63,47,86,.09); border-radius: 16px; background: rgba(255,255,255,.66); box-shadow: 0 8px 22px rgba(76,56,104,.06); }
.search-box svg { width: 19px; fill: none; stroke: #8f849d; stroke-width: 1.7; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #aaa1b4; }
.deck-source-card { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; margin: 3px 0 14px; padding: 10px 12px; border: 1px solid rgba(116,88,67,.12); border-radius: 17px; background: linear-gradient(135deg, rgba(244,236,220,.84), rgba(255,255,255,.62)); box-shadow: 0 8px 22px rgba(76,56,104,.06); }
.deck-source-card img { width: 48px; height: 72px; border-radius: 7px; object-fit: cover; box-shadow: 0 5px 10px rgba(69,48,36,.16); }
.deck-source-card div { min-width: 0; }
.deck-source-card span { display: block; margin-bottom: 3px; color: #9b806b; font-size: 7px; font-weight: 750; letter-spacing: 1px; }
.deck-source-card strong { display: block; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 13px; }
.deck-source-card p { margin: 3px 0 0; color: #82776f; font-size: 9px; }
.deck-source-card a { padding: 6px 8px; border-radius: 99px; background: rgba(122,92,66,.08); color: #806b5b; font-size: 9px; text-decoration: none; }
.extension-source-card { background: linear-gradient(135deg, rgba(228,218,204,.85), rgba(220,234,231,.66)); }
.extension-source-card > span.source-count { margin: 0; padding: 6px 8px; border-radius: 99px; background: rgba(94,105,95,.09); color: #6f7c72; font-size: 9px; letter-spacing: .4px; }
.card-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.library-card { position: relative; min-height: 193px; padding: 6px 6px 10px; border: 1px solid rgba(255,255,255,.8); border-radius: 17px; background: rgba(255,255,255,.55); overflow: hidden; text-align: center; box-shadow: 0 9px 22px rgba(69,50,92,.08); cursor: pointer; }
.library-card::before { content: none; }
.library-card-image { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; margin-bottom: 8px; border-radius: 11px; object-fit: cover; box-shadow: 0 6px 13px rgba(69,50,42,.14); transition: transform .25s ease; }
.library-card:hover .library-card-image { transform: translateY(-2px) scale(1.015); }
.library-number { display: none; }
.library-symbol { display: none; }
.library-card strong { position: relative; display: block; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 14px; }
.library-card small { position: relative; display: block; margin-top: 4px; color: rgba(48,37,62,.55); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-card.extension-card { border-color: rgba(132,112,82,.18); background: linear-gradient(160deg, rgba(246,238,225,.84), rgba(232,240,237,.65)); }
.extension-badge { position: absolute; z-index: 2; top: 11px; right: 10px; padding: 3px 6px; border-radius: 99px; background: rgba(54,45,39,.72); color: #fff8e9; font-size: 7px; font-weight: 700; letter-spacing: .3px; backdrop-filter: blur(8px); }

.history-list { display: grid; gap: 12px; }
.history-entry { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.76); border-radius: 20px; background: rgba(255,255,255,.6); box-shadow: 0 9px 22px rgba(72,51,99,.07); }
.history-symbol { width: 52px; height: 78px; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.7); border-radius: 10px; object-fit: cover; box-shadow: 0 6px 13px rgba(62,45,76,.13); }
.history-entry h3 { margin: 0 0 5px; font-size: 14px; }
.history-entry p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.history-entry time { display: block; margin-top: 6px; color: #a69daf; font-size: 9px; }
.empty-state { padding: 60px 25px; text-align: center; color: var(--muted); }
.empty-state span { display: block; margin-bottom: 14px; color: #9a81ca; font-size: 48px; }
.empty-state h3 { margin: 0 0 7px; color: var(--ink); font-family: "Songti SC", "STSong", Georgia, serif; }
.empty-state p { margin: 0; font-size: 12px; line-height: 1.7; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); display: flex; width: min(calc(100% - 46px), 440px); height: 40px; padding: 3px 16px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.82); border-radius: 15px; background: rgba(255,255,255,.84); box-shadow: 0 9px 24px rgba(59,43,82,.16); backdrop-filter: blur(20px); }
.nav-item { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 34px; border: 0; background: none; color: #958b9f; font-size: 7px; cursor: pointer; }
.nav-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--purple); }
.nav-item.active::before { content: ""; position: absolute; top: -1px; width: 18px; height: 2px; border-radius: 99px; background: #8267dd; }

.modal { position: fixed; z-index: 50; inset: 0; display: none; align-items: flex-end; justify-content: center; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(29,21,42,.32); backdrop-filter: blur(6px); animation: fade-in .25s ease both; }
.reading-sheet { position: relative; width: min(100%, 560px); max-height: min(88vh, 790px); padding: 27px 22px calc(28px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: linear-gradient(160deg, #fbf8ff, #f4eef8); box-shadow: 0 -20px 70px rgba(34,24,50,.22); overflow-y: auto; animation: sheet-up .38s cubic-bezier(.2,.85,.3,1) both; }
.modal.picker-fullscreen { align-items: stretch; background: linear-gradient(160deg, #fbf8ff, #f4eef8); }
.modal.picker-fullscreen .modal-backdrop { display: none; }
.modal.picker-fullscreen .reading-sheet { width: min(100%, 560px); height: 100dvh; max-height: none; padding: calc(17px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: none; animation: picker-page-in .34s ease both; }
@keyframes picker-page-in { from { opacity: 0; transform: scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
.close-button { position: absolute; z-index: 3; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; color: #7a6f84; font-size: 23px; }
.reading-intro { padding: 12px 25px 2px; text-align: center; }
.reading-intro .eyebrow { color: #8c74b6; }
.reading-intro h2 { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 28px; font-weight: 600; }
.reading-intro p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.picker-status { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 10px; color: #6e6278; font-size: 11px; }
.picker-status strong { color: var(--ink); font-size: 13px; }
.picker-status span { padding: 4px 8px; border-radius: 99px; background: rgba(116,91,169,.1); color: #765eaa; font-weight: 700; }
.video-shuffle-stage { display: grid; min-height: 330px; place-items: center; padding: 22px 0; overflow: hidden; }
.shuffle-card-orbit { position: relative; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.72), rgba(221,209,243,.36) 46%, transparent 70%); }
.shuffle-petal-card { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 58px; height: 84px; place-items: center; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.82); border-radius: 10px; background: repeating-radial-gradient(circle at 50% 50%, #765ca3 0 4px, #49366e 5px 9px); color: #fff3bf; box-shadow: 0 12px 25px rgba(43,28,67,.26); animation: video-card-shuffle 3s cubic-bezier(.48,.02,.42,1) both; }
.shuffle-petal-card i { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; font-style: normal; font-size: 22px; }
.shuffle-orbit-center { position: absolute; z-index: 20; top: 50%; left: 50%; display: grid; width: 36px; height: 36px; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,250,224,.9); color: #7356ad; box-shadow: 0 5px 15px rgba(68,45,101,.2); font-size: 13px; animation: orbit-center-pulse 3s ease both; }
@keyframes video-card-shuffle {
  0% { opacity: .2; transform: translate(-50%, -50%) rotate(0) translateY(0) rotate(0) scale(.65); }
  18% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--petal-angle)) translateY(-72px) rotate(78deg) scale(1); }
  64% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--petal-spin)) translateY(-72px) rotate(78deg) scale(1); }
  84% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--petal-spin)) translateY(-28px) rotate(24deg) scale(.9); }
  100% { opacity: .7; transform: translate(-50%, -50%) rotate(var(--petal-spin)) translateY(0) rotate(0) scale(.72); }
}
@keyframes orbit-center-pulse { 0%,100% { opacity: .25; transform: translate(-50%, -50%) scale(.6); } 38%,72% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.circle-picker-stage { position: relative; height: 390px; margin: 2px 0 0; border: 1px solid rgba(255,255,255,.76); border-radius: 22px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.78), rgba(225,214,245,.5) 57%, rgba(255,255,255,.3)); box-shadow: inset 0 1px rgba(255,255,255,.75); overflow: visible; touch-action: none; cursor: grab; user-select: none; }
.circle-picker-stage.dragging { cursor: grabbing; }
.circle-picker-stage::before { content: ""; position: absolute; top: 45px; left: 50%; width: 300px; height: 300px; transform: translateX(-50%); border: 1px solid rgba(121,94,175,.12); border-radius: 50%; }
.circle-picker-viewport { position: absolute; inset: 0; overflow: visible; }
.circle-picker-wheel { position: absolute; inset: 0; transform: rotate(var(--wheel-angle, 0deg)); transform-origin: 50% 195px; will-change: transform; }
.picker-card { position: absolute; z-index: var(--arc-z); left: 50%; top: 0; display: grid; width: 36px; height: 54px; place-items: center; padding: 0; transform: translate(-50%, -50%) translate(var(--arc-x), var(--arc-y)) rotate(var(--arc-rotate)); border: 2px solid rgba(255,255,255,.78); border-radius: 7px; appearance: none; background: repeating-radial-gradient(circle at 50% 50%, #7d66aa 0 2px, #60498a 3px 5px); color: #fff5d6; box-shadow: 0 5px 10px rgba(56,40,83,.2); pointer-events: auto; cursor: pointer; touch-action: manipulation; animation: arc-deal .38s var(--deal-delay, 0s) ease both; transition: border-color .18s, box-shadow .18s; }
.picker-card.selected { z-index: 100; border-color: #ffe8a2; box-shadow: 0 0 0 2px rgba(151,116,218,.35), 0 10px 18px rgba(59,40,91,.3); animation: selected-card-spin .62s cubic-bezier(.22,.76,.24,1) both; }
.picker-card.consumed { opacity: 0; pointer-events: none; transition: opacity .24s ease; }
.picker-back-symbol { display: grid; width: 68%; aspect-ratio: 1; margin: auto; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 15px; }
.picker-number { position: absolute; bottom: -17px; left: 50%; display: grid; min-width: 18px; height: 15px; padding: 0 3px; place-items: center; transform: translateX(-50%) rotate(var(--arc-counter)); border-radius: 99px; background: rgba(255,255,255,.92); color: #746985; box-shadow: 0 2px 5px rgba(35,24,53,.08); font-size: 7px; font-weight: 800; line-height: 1; }
.picker-order { position: absolute; top: -9px; right: -8px; display: none; width: 19px; height: 19px; place-items: center; transform: rotate(var(--arc-counter)); border: 2px solid #fff9e9; border-radius: 50%; background: #6d50c5; color: #fff; font-size: 9px; font-weight: 800; }
.picker-card.selected .picker-order { display: grid; }
@keyframes arc-deal { from { opacity: 0; transform: translate(-50%, -50%) translate(var(--arc-x), calc(var(--arc-y) + 18px)) rotate(0) scale(.65); } }
@keyframes selected-card-spin {
  0% { transform: translate(-50%, -50%) translate(var(--arc-x), var(--arc-y)) rotate(var(--arc-rotate)) scale(1); }
  55% { transform: translate(-50%, -50%) translate(var(--arc-x), var(--arc-y)) rotate(calc(var(--arc-rotate) + 220deg)) translateY(-9px) scale(1.2); }
  100% { transform: translate(-50%, -50%) translate(var(--arc-x), var(--arc-y)) rotate(calc(var(--arc-rotate) + 360deg)) translateY(-7px) scale(1.14); }
}
.picker-number-grid { display: grid; grid-template-columns: repeat(var(--number-columns, 10), minmax(0, 1fr)); gap: 5px; margin: 9px 1px 0; }
.number-choice { position: relative; min-width: 0; height: 25px; padding: 0; border: 1px solid rgba(101,78,143,.11); border-radius: 8px; background: rgba(255,255,255,.72); color: #77658d; font-size: 9px; font-weight: 750; box-shadow: 0 3px 8px rgba(67,48,91,.06); cursor: pointer; }
.number-choice.selected { border-color: #8b6bd6; background: linear-gradient(145deg, #9073df, #6145bf); color: #fff; box-shadow: 0 5px 11px rgba(90,61,177,.24); }
.number-choice.selected::after { content: attr(data-order); position: absolute; top: -6px; right: -5px; display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #fff9e9; border-radius: 50%; background: #463078; color: #fff; font-size: 7px; }
.picker-selected { min-height: 21px; margin: 10px 2px 0; color: #8c8195; font-size: 10px; line-height: 1.5; text-align: center; }
.picker-actions { margin-top: 8px; }
.picker-note { margin: 9px 4px 0; color: #9a909f; font-size: 9px; line-height: 1.55; text-align: center; }
.deck-stage { position: relative; height: 310px; margin: 16px auto 5px; perspective: 1100px; }
.draw-card { position: absolute; left: 50%; top: 50%; width: 160px; height: 240px; transform: translate(-50%, -50%); transform-style: preserve-3d; transition: transform .9s cubic-bezier(.18,.82,.22,1); cursor: pointer; }
.draw-card::before, .draw-card::after { content: ""; position: absolute; inset: 0; border-radius: 19px; background: #604888; box-shadow: 0 15px 30px rgba(54,38,79,.23); transition: transform .55s; }
.draw-card::before { transform: translate(-12px, 5px) rotate(-5deg); }
.draw-card::after { transform: translate(12px, 6px) rotate(5deg); }
.draw-card.revealed { transform: translate(-50%, -50%) rotateY(180deg); }
.card-face { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border: 5px solid #fff9ed; border-radius: 19px; overflow: hidden; box-shadow: 0 18px 40px rgba(55,39,79,.25); }
.card-back { background: var(--card-back-image) center / cover no-repeat; color: transparent; }
.card-back::before { display: none; }
.card-front { transform: rotateY(180deg); grid-template-rows: 1fr; background: var(--card-color, #e7dbf6); }
.card-front-art { width: 100%; height: 100%; overflow: hidden; }
.card-front-art img { display: block; width: 100%; height: 100%; object-fit: contain; background: #160f14; }
.card-front-label { display: none; width: 100%; padding: 10px 8px; border-top: 1px solid rgba(61,43,82,.1); background: rgba(255,255,255,.66); text-align: center; }
.card-front-label small { display: block; margin-bottom: 2px; color: #8c8096; font: 9px Georgia, serif; }
.card-front-label strong { font-family: "Songti SC", "STSong", Georgia, serif; font-size: 17px; }
.draw-prompt { text-align: center; color: #897b96; font-size: 12px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .48; } }
.result-copy { animation: result-in .45s .4s ease both; }
@keyframes result-in { from { opacity: 0; transform: translateY(10px); } }
.result-copy h3 { margin: 4px 0 8px; text-align: center; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 24px; }
.result-copy > p { margin: 0; color: #685f72; font-size: 13px; line-height: 1.85; text-align: center; }
.keyword-row { display: flex; justify-content: center; gap: 7px; margin: 14px 0; }
.keyword-row span { padding: 5px 9px; border-radius: 99px; background: rgba(121,93,178,.1); color: #6f55a4; font-size: 10px; }
.reading-actions { display: flex; gap: 10px; margin-top: 18px; }
.reading-actions button { flex: 1; padding: 12px; border-radius: 14px; cursor: pointer; }
.secondary-button { border: 1px solid rgba(87,63,123,.13); background: rgba(255,255,255,.6); color: #766a82; }
.solid-button { border: 0; background: linear-gradient(135deg, #8b6ee5, #6042ca); color: #fff; box-shadow: 0 8px 20px rgba(91,61,190,.2); }
.solid-button:disabled { background: #d9d2df; color: #99909f; box-shadow: none; cursor: default; }

.three-result { display: flex; justify-content: center; gap: 8px; margin: 25px 0 18px; }
.small-result-card { width: 30%; text-align: center; }
.small-card-art { aspect-ratio: 2 / 3; border: 4px solid rgba(255,255,255,.8); border-radius: 13px; overflow: hidden; box-shadow: 0 10px 22px rgba(60,43,82,.15); animation: small-card-in .5s var(--delay) cubic-bezier(.2,.8,.3,1) both; }
.small-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes small-card-in { from { opacity: 0; transform: translateY(30px) rotate(4deg); } }
.small-result-card strong { display: block; margin-top: 8px; font-size: 12px; }
.small-result-card span { color: #94899d; font-size: 9px; }
.three-summary { padding: 15px; border-radius: 17px; background: rgba(255,255,255,.56); color: #625869; font-size: 12px; line-height: 1.75; }
.spread-result { margin: 22px auto 14px; }
.spread-position { min-width: 0; text-align: center; }
.spread-position-art { aspect-ratio: 2 / 3; border: 3px solid rgba(255,255,255,.86); border-radius: 10px; overflow: hidden; background: #eee7f4; box-shadow: 0 7px 16px rgba(60,43,82,.14); }
.spread-position-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spread-position strong { display: block; margin-top: 5px; font-size: 10px; }
.spread-position span { display: block; margin-top: 1px; color: #94899d; font-size: 7px; }
.two-spread-result { display: grid; grid-template-columns: repeat(2, minmax(0, 104px)); justify-content: center; gap: 15px; }
.cross-spread-result { display: grid; grid-template-columns: repeat(3, minmax(0, 82px)); grid-template-rows: repeat(3, auto); justify-content: center; gap: 7px; }
.cross-spread-result .cross-pos-1 { grid-area: 2 / 2; }
.cross-spread-result .cross-pos-2 { grid-area: 1 / 2; }
.cross-spread-result .cross-pos-3 { grid-area: 3 / 2; }
.cross-spread-result .cross-pos-4 { grid-area: 2 / 1; }
.cross-spread-result .cross-pos-5 { grid-area: 2 / 3; }
.nine-spread-result { display: grid; grid-template-columns: repeat(3, minmax(0, 88px)); justify-content: center; gap: 8px; }
.grand-tableau-wrap { margin: 19px 0 14px; padding: 12px 8px; border: 1px solid rgba(100,77,136,.1); border-radius: 18px; background: rgba(255,255,255,.48); overflow: hidden; }
.grand-layout-label { display: flex; align-items: baseline; justify-content: space-between; margin: 0 3px 8px; }
.grand-layout-label strong { font-family: "Songti SC", "STSong", Georgia, serif; font-size: 13px; }
.grand-layout-label span { color: #92879a; font-size: 8px; }
.grand-main-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 3px; }
.grand-tail-grid, .grand-extension-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; width: 53%; margin: 6px auto 0; }
.grand-extension-grid { width: 68%; }
.grand-card { position: relative; min-width: 0; text-align: center; }
.grand-card img { display: block; width: 100%; aspect-ratio: 2 / 3; border: 1.5px solid rgba(255,255,255,.9); border-radius: 4px; object-fit: cover; box-shadow: 0 3px 7px rgba(59,42,80,.12); }
.grand-card small { position: absolute; top: 2px; left: 2px; display: grid; min-width: 11px; height: 11px; place-items: center; border-radius: 99px; background: rgba(39,30,50,.7); color: #fff; font-size: 5px; }
.grand-card b { display: block; margin-top: 2px; font-size: 5.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grand-card.extension img { border-color: rgba(141,117,74,.42); }
.extension-label { margin-top: 12px; }
.grand-letter { margin: 18px 0 15px; padding: 20px 17px; border: 1px solid rgba(137,104,76,.13); border-radius: 20px; background: linear-gradient(150deg, rgba(250,244,230,.9), rgba(246,238,252,.84)); box-shadow: 0 12px 28px rgba(72,53,91,.08); text-align: left; }
.grand-letter .eyebrow { margin-bottom: 4px; color: #927c70; }
.grand-letter h3 { margin: 0 0 13px; color: #352b3e; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 23px; font-weight: 600; }
.grand-letter-body { display: grid; gap: 10px; }
.grand-letter-body p { margin: 0; color: #5c515f; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 13px; line-height: 1.9; text-align: justify; }
.grand-letter > small { display: block; margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(108,81,121,.09); color: #978b98; font-size: 8px; line-height: 1.55; }
.nine-question-card { margin-top: 18px; }
.direct-reading { display: grid; gap: 8px; margin: 14px 0 2px; text-align: left; counter-reset: insight; }
.insight-section { padding: 12px 13px; border: 1px solid rgba(92,69,126,.09); border-radius: 15px; background: rgba(255,255,255,.56); box-shadow: 0 5px 14px rgba(67,48,91,.04); counter-increment: insight; }
.insight-section.emphasis { border-color: rgba(114,82,190,.16); background: linear-gradient(135deg, rgba(224,211,251,.88), rgba(255,255,255,.72)); box-shadow: 0 8px 20px rgba(91,61,160,.08); }
.insight-section span { display: block; margin-bottom: 5px; color: #8067aa; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.insight-section span::before { content: counter(insight, decimal-leading-zero) " · "; color: #a18dbd; }
.insight-section p { margin: 0; color: #5f5667; font-size: 12px; line-height: 1.75; }
.insight-section.emphasis p { color: #3f3351; font-size: 13px; font-weight: 650; }
.further-reading { margin: 15px 0 4px; }
.further-reading-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 15px; border: 1px solid rgba(121,87,176,.16); border-radius: 17px; background: linear-gradient(135deg, rgba(232,217,252,.92), rgba(250,240,244,.88)); color: #554366; box-shadow: 0 9px 22px rgba(83,58,111,.08); text-align: left; cursor: pointer; }
.further-reading-trigger span { display: grid; gap: 2px; }
.further-reading-trigger small { color: #9a80aa; font-size: 7px; font-weight: 800; letter-spacing: 1.4px; }
.further-reading-trigger strong { font-family: "Songti SC", "STSong", Georgia, serif; font-size: 16px; }
.further-reading-trigger b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.72); color: #7b5cab; font-size: 18px; font-weight: 400; }
.further-reading-content { margin-top: 9px; padding: 18px 16px; border: 1px solid rgba(147,110,121,.12); border-radius: 19px; background: linear-gradient(155deg, rgba(255,247,242,.94), rgba(243,234,251,.9)); box-shadow: 0 12px 28px rgba(72,53,91,.08); text-align: left; }
.further-reading-content .eyebrow { margin-bottom: 4px; color: #a17a8d; }
.further-reading-content h3 { margin: 0 0 12px; color: #3e3046; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 21px; }
.further-reading-content > p:not(.eyebrow) { margin: 0 0 10px; color: #63535f; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 13px; line-height: 1.9; text-align: justify; }
.further-reading-content > small { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(104,76,111,.09); color: #9a8b96; font-size: 8px; line-height: 1.55; }
.further-reading-content .followup-intro { margin-bottom: 12px; color: #756674; font-family: inherit; font-size: 11px; line-height: 1.75; text-align: left; }
.followup-context { margin: 0 0 12px; padding: 10px 11px; border: 1px solid rgba(119,89,154,.11); border-radius: 13px; background: rgba(255,255,255,.58); }
.followup-context span { display: block; margin-bottom: 3px; color: #9c80a8; font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.followup-context p { margin: 0; color: #4f4355; font-size: 11px; line-height: 1.55; }
.followup-thread { display: grid; gap: 9px; max-height: 390px; padding: 2px 1px 4px; overflow-y: auto; scroll-behavior: smooth; }
.followup-message { width: 91%; padding: 10px 11px; border-radius: 15px; animation: result-in .28s ease both; }
.followup-message span { display: block; margin-bottom: 4px; color: #9a7da7; font-size: 7px; font-weight: 800; letter-spacing: .8px; }
.followup-message p { margin: 0 0 7px; color: #5e505d; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 11px; line-height: 1.75; text-align: left; }
.followup-message p:last-child { margin-bottom: 0; }
.followup-message.assistant { justify-self: start; border: 1px solid rgba(139,103,146,.11); border-bottom-left-radius: 5px; background: rgba(255,255,255,.68); }
.followup-message.assistant:not(.welcome) { width: 96%; padding: 13px; background: linear-gradient(145deg, rgba(255,251,246,.92), rgba(248,241,252,.9)); box-shadow: 0 8px 18px rgba(72,53,91,.06); }
.followup-message.user { justify-self: end; border-bottom-right-radius: 5px; background: linear-gradient(135deg, #8b70d8, #694dc0); }
.followup-message.user span, .followup-message.user p { color: #fff; }
.followup-message.user span { opacity: .72; }
.followup-message.thinking p { display: flex; gap: 4px; align-items: center; min-height: 16px; }
.followup-message.thinking i { width: 5px; height: 5px; border-radius: 50%; background: #9b82aa; animation: followup-dot 1s ease-in-out infinite; }
.followup-message.thinking i:nth-child(2) { animation-delay: .14s; }
.followup-message.thinking i:nth-child(3) { animation-delay: .28s; }
@keyframes followup-dot { 0%,60%,100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.followup-suggestions { display: flex; gap: 6px; margin: 12px 0 9px; overflow-x: auto; scrollbar-width: none; }
.followup-suggestions::-webkit-scrollbar { display: none; }
.followup-suggestions button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid rgba(112,82,150,.12); border-radius: 99px; background: rgba(255,255,255,.62); color: #74617d; font-size: 8px; cursor: pointer; }
.followup-form { display: flex; align-items: flex-end; gap: 7px; padding: 7px; border: 1px solid rgba(117,87,151,.14); border-radius: 16px; background: rgba(255,255,255,.76); box-shadow: 0 8px 20px rgba(70,49,91,.07); }
.followup-form textarea { flex: 1; min-height: 42px; max-height: 105px; padding: 7px 6px; resize: vertical; border: 0; outline: 0; background: transparent; color: #46394d; font-size: 11px; line-height: 1.5; }
.followup-form textarea::placeholder { color: #a398aa; }
.followup-form button { display: flex; min-width: 62px; height: 38px; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #8c70df, #6143c4); color: #fff; box-shadow: 0 6px 14px rgba(91,61,190,.2); font-size: 9px; cursor: pointer; }
.followup-form button b { font-size: 15px; font-weight: 400; }
.followup-form button:disabled { opacity: .55; cursor: default; }
.relationship-result { margin: 22px auto 4px; text-align: center; }
.relationship-result img { display: block; width: 154px; height: 231px; margin: 0 auto 10px; border: 5px solid rgba(255,255,255,.82); border-radius: 17px; object-fit: cover; box-shadow: 0 16px 34px rgba(64,48,55,.18); }
.relationship-result span { color: #8b7b70; font-size: 9px; letter-spacing: .7px; }
.relationship-result h3 { margin: 4px 0 0; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 25px; }
.reflection-note { margin: 12px 8px 0; color: #938991; font-size: 9px; line-height: 1.6; text-align: center; }
.yesno-orb { display: grid; place-items: center; width: 170px; height: 170px; margin: 30px auto 20px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff, #d7caf1 48%, #856ac5 100%); box-shadow: 0 20px 50px rgba(81,57,121,.25), inset 0 0 30px rgba(255,255,255,.7); color: #594292; text-align: center; }
.yesno-orb strong { display: block; font-family: Georgia, serif; font-size: 40px; }
.yesno-orb span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 1px; }
.detail-card { text-align: center; }
.detail-symbol { display: block; width: 150px; height: 225px; margin: 16px auto; border: 5px solid rgba(255,255,255,.8); border-radius: 18px; object-fit: cover; box-shadow: 0 16px 34px rgba(65,46,89,.17); }
.detail-card h2 { margin: 0 0 6px; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 28px; }
.detail-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.playing-card-pill { display: inline-block; margin: 0 0 9px; padding: 4px 9px; border-radius: 99px; background: rgba(132,103,72,.09); color: #80684f; font: 10px Georgia, serif; }
.playing-card-pill.extension { background: rgba(82,112,102,.1); color: #58766c; font-family: inherit; }
.meaning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; text-align: left; }
.meaning-panel { padding: 12px; border: 1px solid rgba(255,255,255,.72); border-radius: 15px; background: rgba(255,255,255,.5); }
.meaning-panel.core { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(229,217,249,.66), rgba(255,255,255,.52)); }
.meaning-panel.advice { grid-column: 1 / -1; }
.meaning-panel span { display: block; margin-bottom: 5px; color: #947ea8; font-size: 8px; font-weight: 750; letter-spacing: 1px; }
.meaning-panel p { margin: 0; color: #62596b; font-size: 11px; line-height: 1.65; }
.deck-credit { margin: 15px 4px 0; color: #9a8f99; font-size: 9px; line-height: 1.6; }
.yesno-card-image { display: block; width: 88px; height: 132px; margin: -15px auto 12px; border: 4px solid rgba(255,255,255,.8); border-radius: 12px; object-fit: cover; box-shadow: 0 11px 24px rgba(65,46,89,.17); }

.account-shell { text-align: left; }
.account-hero { display: flex; align-items: center; gap: 13px; padding: 5px 2px 14px; }
.account-hero img { width: 58px; height: 58px; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.84); border-radius: 18px; box-shadow: 0 10px 22px rgba(87,59,132,.16); }
.account-hero .eyebrow { margin-bottom: 2px; }
.account-hero h2 { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 25px; }
.account-hero p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.membership-banner { position: relative; display: grid; width: 100%; gap: 3px; padding: 16px 45px 16px 16px; border: 1px solid rgba(255,225,165,.3); border-radius: 20px; background: linear-gradient(135deg, #2d213c, #604270 55%, #a06f78); color: #fff; box-shadow: 0 14px 30px rgba(55,35,68,.18); text-align: left; cursor: pointer; }
.membership-banner span { color: #f4d9a2; font-size: 8px; font-weight: 800; letter-spacing: 1.6px; }
.membership-banner strong { font-family: "Songti SC", "STSong", Georgia, serif; font-size: 20px; }
.membership-banner small { color: rgba(255,255,255,.68); font-size: 9px; }
.membership-banner b { position: absolute; top: 50%; right: 17px; transform: translateY(-50%); color: #f5dfb2; font-size: 27px; font-weight: 300; }
.account-login-list { display: grid; gap: 8px; margin-top: 13px; }
.account-login-button { display: flex; width: 100%; align-items: center; gap: 11px; padding: 12px 13px; border: 1px solid rgba(80,59,106,.1); border-radius: 16px; background: rgba(255,255,255,.64); color: #4e4356; text-align: left; cursor: pointer; }
.account-login-button > i { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #eee7f8; color: #6c50a5; font-style: normal; font-weight: 800; }
.account-login-button.apple > i { background: #1f1c22; color: #fff; }
.account-login-button.google > i { background: #fff; color: #4285f4; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.account-login-button > span { display: grid; min-width: 0; flex: 1; gap: 2px; }
.account-login-button strong { font-size: 12px; }
.account-login-button small { color: #908697; font-size: 8px; }
.account-login-button > b { color: #a092aa; font-size: 20px; font-weight: 300; }
.account-disclaimer { margin: 12px 5px 0; color: #9a909f; font-size: 8px; line-height: 1.55; text-align: center; }
.phone-auth-card { display: grid; gap: 13px; margin-top: 18px; }
.phone-auth-card label { display: grid; gap: 6px; color: #5a4d63; font-size: 10px; font-weight: 700; }
.phone-auth-card label > small { color: #9c92a1; font-size: 8px; font-weight: 400; line-height: 1.5; }
.phone-auth-card input, .phone-auth-card select { min-width: 0; height: 45px; border: 1px solid rgba(83,61,110,.12); border-radius: 13px; outline: none; background: rgba(255,255,255,.75); color: #44394d; font-size: 12px; }
.phone-auth-card input { width: 100%; padding: 0 12px; }
.phone-auth-card select { padding: 0 8px; }
.international-phone-row { display: grid; grid-template-columns: 105px 1fr; gap: 7px; }
.verification-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.verification-row button { padding: 0 12px; border: 0; border-radius: 13px; background: #e7dcfa; color: #684bad; font-size: 10px; font-weight: 700; cursor: pointer; }
.account-submit { min-height: 47px; border-radius: 14px; cursor: pointer; }
.auth-setup-note { margin-top: 13px; padding: 12px 13px; border: 1px solid rgba(135,103,154,.1); border-radius: 15px; background: rgba(255,255,255,.48); }
.auth-setup-note strong { color: #6c557e; font-size: 10px; }
.auth-setup-note p { margin: 4px 0 0; color: #918795; font-size: 8px; line-height: 1.55; }
.membership-card { margin-top: 18px; padding: 20px 17px; border: 1px solid rgba(255,225,165,.24); border-radius: 22px; background: linear-gradient(145deg, #30223f, #654971 62%, #9a6a77); color: #fff; box-shadow: 0 16px 35px rgba(57,36,70,.2); }
.membership-card .eyebrow { color: #efd8a5; }
.membership-card h3 { margin: 0 0 15px; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 22px; }
.membership-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.membership-card li { display: flex; align-items: flex-start; gap: 9px; }
.membership-card li > b { color: #f2d28c; }
.membership-card li span { display: grid; gap: 2px; }
.membership-card li strong { font-size: 11px; }
.membership-card li small { color: rgba(255,255,255,.64); font-size: 8px; line-height: 1.4; }
.membership-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.membership-plans button { position: relative; display: grid; gap: 3px; padding: 13px 9px; border: 1px solid rgba(91,66,123,.12); border-radius: 16px; background: rgba(255,255,255,.64); color: #574a61; cursor: pointer; }
.membership-plans button.recommended { border-color: rgba(120,84,184,.3); background: #eee4fb; }
.membership-plans em { position: absolute; top: -7px; right: 8px; padding: 2px 6px; border-radius: 99px; background: #7251b9; color: #fff; font-size: 7px; font-style: normal; }
.membership-plans span { font-size: 12px; font-weight: 750; }
.membership-plans strong { color: #918398; font-size: 8px; }

.photo-capture-stage { display: grid; place-items: center; min-height: 235px; margin: 22px 0 14px; padding: 25px; border: 1.5px dashed rgba(104,79,151,.27); border-radius: 24px; background: linear-gradient(145deg, rgba(230,220,248,.55), rgba(255,255,255,.45)); text-align: center; }
.photo-capture-icon { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 15px; border-radius: 26px; background: linear-gradient(145deg, #b9a1e7, #7658bf); color: #fff; box-shadow: 0 14px 30px rgba(88,61,145,.24); }
.photo-capture-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-capture-stage h3 { margin: 0 0 7px; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 21px; }
.photo-capture-stage p { max-width: 270px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.camera-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.camera-upload { display: flex; min-height: 47px; align-items: center; justify-content: center; border-radius: 15px; font-size: 13px; font-weight: 650; cursor: pointer; }
.camera-upload.primary { background: linear-gradient(135deg, #8b6ee5, #6042ca); color: #fff; box-shadow: 0 8px 20px rgba(91,61,190,.2); }
.camera-upload.secondary { border: 1px solid rgba(87,63,123,.13); background: rgba(255,255,255,.66); color: #6f637a; }
.privacy-note { display: flex; align-items: flex-start; gap: 7px; margin: 14px 4px 0; color: #92869b; font-size: 10px; line-height: 1.6; }
.privacy-note::before { content: "◇"; flex: 0 0 auto; color: #826ab1; }
.photo-preview { display: block; width: 100%; max-height: 235px; margin: 18px 0 13px; border-radius: 20px; object-fit: cover; box-shadow: 0 13px 30px rgba(60,43,82,.14); }
.photo-step { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 9px; }
.photo-step strong { font-size: 14px; }
.photo-step span { color: #93889c; font-size: 10px; }
.question-field { width: 100%; height: 44px; margin-bottom: 10px; padding: 0 13px; border: 1px solid rgba(79,59,108,.1); border-radius: 13px; outline: none; background: rgba(255,255,255,.68); color: var(--ink); font-size: 12px; }
.photo-selector-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.photo-selector-row select { min-width: 0; height: 46px; padding: 0 12px; border: 1px solid rgba(79,59,108,.11); border-radius: 13px; outline: none; background: rgba(255,255,255,.76); color: var(--ink); font: inherit; font-size: 13px; }
.photo-selector-row button { min-width: 72px; border: 0; border-radius: 13px; background: #7960c6; color: #fff; cursor: pointer; }
.selected-card-list { display: flex; gap: 8px; min-height: 108px; margin: 12px 0; padding: 11px; border-radius: 15px; background: rgba(255,255,255,.46); overflow-x: auto; }
.selected-card-list:empty::before { content: "按照片中从左到右的顺序添加 1–5 张牌"; margin: auto; color: #a096a9; font-size: 10px; }
.selected-photo-card { position: relative; display: grid; width: 58px; min-width: 58px; height: 87px; place-items: center; padding-top: 5px; border: 2px solid rgba(255,255,255,.8); border-radius: 11px; background: var(--card-color); box-shadow: 0 6px 13px rgba(62,45,87,.12); cursor: pointer; }
.selected-photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.selected-photo-card small { position: absolute; z-index: 1; right: 3px; bottom: 3px; left: 3px; padding: 2px; border-radius: 5px; background: rgba(34,25,42,.66); color: #fff; font-size: 8px; }
.selected-photo-card::after { content: "×"; position: absolute; top: -7px; right: -6px; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #4e405d; color: #fff; font-size: 12px; }
.photo-analyze { width: 100%; min-height: 48px; border: 0; border-radius: 15px; background: linear-gradient(135deg, #8b6ee5, #6042ca); color: #fff; box-shadow: 0 8px 20px rgba(91,61,190,.2); cursor: pointer; }
.photo-analyze:disabled { background: #d8d1df; box-shadow: none; color: #99909f; cursor: default; }
.photo-result-thumb { display: block; width: 100%; height: 145px; margin: 18px 0 8px; border-radius: 18px; object-fit: cover; filter: saturate(.85); }
.photo-result-cards { display: flex; justify-content: center; gap: 6px; margin: -31px 0 14px; position: relative; }
.photo-result-cards img { display: block; width: 50px; height: 75px; border: 3px solid rgba(255,255,255,.92); border-radius: 10px; object-fit: cover; box-shadow: 0 8px 17px rgba(57,40,82,.18); }
.photo-question { margin: 12px 0; padding: 10px 12px; border-left: 3px solid #a58ad8; border-radius: 0 10px 10px 0; background: rgba(255,255,255,.48); color: #6e6377; font-size: 11px; line-height: 1.6; }

/* One shared back design for every physical or decorative card back. */
.two-glyph i,
.two-glyph i:first-child,
.nine-glyph i,
.grand-glyph i,
.grand-glyph i:nth-child(3n),
.mini-deck span,
.three-deck span:nth-child(1),
.three-deck span:nth-child(2),
.three-deck span:nth-child(3),
.stacked span:nth-child(1),
.stacked span:nth-child(2),
.stacked span:nth-child(3),
.shuffle-petal-card,
.picker-card,
.draw-card::before,
.draw-card::after {
  background: var(--card-back-image) center / cover no-repeat;
}
.two-glyph i, .mini-deck span, .shuffle-petal-card, .picker-card { color: transparent; }
.nine-glyph i, .grand-glyph i { aspect-ratio: 2 / 3; }
.shuffle-petal-card i, .picker-back-symbol { opacity: 0; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 62px; padding: 10px 16px; transform: translate(-50%, 14px); border-radius: 99px; background: rgba(37,28,49,.9); color: #fff; opacity: 0; pointer-events: none; font-size: 12px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 620px) {
  .app-shell { padding-top: 28px; }
  .hero-card { min-height: 390px; }
  .bottom-nav { bottom: 14px; }
}

@media (max-width: 370px) {
  .app-shell { padding-inline: 13px; }
  .feature-card { min-height: 166px; padding: 15px; }
  .feature-card h3 { font-size: 20px; }
  .card-library { gap: 7px; }
  .library-card { min-height: 180px; }
  .modal.picker-fullscreen .reading-sheet { padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
