:root{--bg:#fffbf8;--ink:#382146;--muted:#7c7083;--lavender:#dcc5f3;--peach:#f8dde5;--lime:#e4f57b;--shadow:0 12px 30px rgba(56,33,70,.075)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a36bcc;outline-offset:3px}a{text-decoration:none;color:inherit}[hidden]{display:none!important}.page{width:min(100%,560px);margin:auto;padding:0 20px calc(110px + env(safe-area-inset-bottom))}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:800;letter-spacing:-1px}.brand-flower{display:grid;place-items:center;width:33px;height:33px;background:var(--ink);color:white;border-radius:50%;font-size:25px;line-height:1}.profile-link{width:39px;height:39px;border:0;border-radius:50%;background:#f0e6f4;color:var(--ink);font-size:26px;line-height:1}
.hero{position:relative;min-height:278px;display:flex;align-items:center;padding:11px 0 24px}.hero-copy{z-index:1;max-width:67%}.hero h1{font-size:clamp(28px,8vw,40px);letter-spacing:-1.4px;line-height:1.26;margin:0 0 13px;font-weight:800}.hero p{margin:0 0 25px;color:var(--muted);font-size:13px;line-height:1.65;max-width:215px}.button{min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:15px;padding:0 19px;border-radius:30px;border:0;font-weight:700;font-size:13px;white-space:nowrap}.button-primary{background:var(--ink);color:white}.button-disabled{background:#afa3b5;color:white}.hero-art{position:absolute;right:3px;top:30px;width:35%;height:198px}.art-placeholder{position:relative;display:flex;align-items:center;justify-content:center}.art-placeholder small{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:9px;color:#9e8ea9;letter-spacing:1px}.hero-star{position:absolute;top:0;right:0;font-size:83px;color:#855cb2;transform:rotate(-14deg);text-shadow:6px 7px 0 #dcc5f3}.hero-ball{position:absolute;right:12px;bottom:14px;width:96px;height:96px;display:grid;place-items:center;background:var(--lime);border-radius:50%;font-size:56px;color:var(--ink);box-shadow:inset -11px -12px 0 rgba(105,136,32,.1),var(--shadow)}
.search-area{margin:0 0 30px}.searchbox{height:54px;display:flex;align-items:center;gap:11px;padding:0 17px;background:white;border-radius:18px;box-shadow:var(--shadow)}.searchbox>span{font-size:30px;color:var(--ink);line-height:1}.searchbox input{min-width:0;flex:1;border:0;outline:0;background:none;color:var(--ink);font-size:13px}.searchbox input::placeholder{color:#aa9eae}.searchbox kbd{font:inherit;font-size:11px;color:#a59aa9;background:#f6f1f6;border-radius:9px;padding:5px 8px}
.section{margin-top:34px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px}.section-heading h2{margin:0;font-size:21px;letter-spacing:-.6px;line-height:1.3}.heading-spark{font-size:23px;color:#a982cd}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-card{position:relative;overflow:hidden;text-align:left;min-height:191px;padding:19px 15px;border:2px solid transparent;border-radius:24px;color:var(--ink);box-shadow:var(--shadow)}.category-card.is-active{border-color:var(--ink)}.category-personality{background:var(--lavender)}.category-menstrual{background:var(--peach)}.category-title,.category-count,.category-desc{position:relative;z-index:1;display:block}.category-title{font-size:19px;font-weight:800;letter-spacing:-.5px}.category-count{font-size:12px;font-weight:700;margin-top:5px}.category-desc{font-size:10px;color:#6a5673;margin-top:5px;white-space:nowrap}.category-art{position:absolute;right:9px;bottom:13px;width:80px;height:86px;color:#805baa;font-size:64px;text-shadow:3px 5px 0 rgba(255,255,255,.6)}.category-art.calendar{color:#f49caf;font-size:70px}.category-arrow{position:absolute;bottom:16px;left:18px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#fff9;color:var(--ink);font-size:17px}
.filters{margin-top:21px}.segmented{display:flex;background:#f0e8f2;padding:4px;border-radius:18px}.segmented button{flex:1;border:0;background:transparent;color:var(--muted);padding:11px 5px;border-radius:14px;font-size:13px;font-weight:700}.segmented button.is-active{background:white;color:var(--ink);box-shadow:0 2px 6px #38214612}.chip-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:15px 0 2px}.chip-row::-webkit-scrollbar{display:none}.chip,.quick-chip{flex:none;min-height:36px;padding:0 14px;border:1px solid #e9deec;border-radius:30px;background:white;color:var(--muted);font-size:12px;font-weight:600}.chip.is-active,.quick-chip.is-active{background:var(--ink);border-color:var(--ink);color:white}.quick-row{padding-top:11px}.quick-chip{min-height:31px;background:#f7eff7}.stage-hint{margin:8px 0 0;font-size:12px;color:var(--muted)}
.featured{margin-top:39px}.featured-card{position:relative;display:flex;align-items:center;min-height:241px;overflow:hidden;border-radius:27px;background:#e9dcf7;padding:25px 21px}.featured-copy{position:relative;z-index:1;width:66%}.eyebrow{display:block;margin-bottom:9px;font-size:11px;font-weight:800;letter-spacing:2px;color:#79569b}.featured h3{margin:0;font-size:25px;line-height:1.25;letter-spacing:-.7px}.featured p{font-size:11px;color:#74647c;margin:10px 0 20px}.featured-art{position:absolute;right:-8px;bottom:22px;width:42%;height:160px}.featured-art span{position:absolute;display:grid;place-items:center;font-size:68px;line-height:1;text-shadow:4px 7px 0 #3821461a}.featured-art span:first-child{top:4px;left:4px;color:var(--lime);transform:rotate(17deg)}.featured-art span:nth-child(2){right:3px;top:41px;color:#8057ae;transform:rotate(-15deg)}.featured-art span:nth-child(3){bottom:4px;left:16px;color:#f7aa71}
.random-card{display:flex;align-items:center;gap:10px;min-height:113px;margin:18px 0 0;padding:15px 13px;background:var(--lime);border-radius:24px}.dice{width:57px;height:62px;flex:none;color:#714895;font-size:60px;line-height:1;transform:rotate(-12deg)}.random-copy{flex:1;min-width:0}.random-copy strong{font-size:14px;line-height:1.42}.random-copy span{display:block;margin-top:5px;color:#6c6e53;font-size:10px}.random-button{flex:none;min-height:35px;padding:0 9px;border:0;border-radius:20px;background:var(--ink);color:white;font-size:11px;font-weight:700}
.discovery{margin-top:39px}.result-count{font-size:12px;color:var(--muted);white-space:nowrap}.quiz-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quiz-card{display:flex;flex-direction:column;min-height:178px;padding:17px 15px;border-radius:22px;background:white;box-shadow:var(--shadow)}.quiz-icon{display:grid;place-items:center;width:31px;height:31px;margin-bottom:12px;border-radius:10px;background:#eee2f6;color:#805bb0;font-size:18px}.quiz-card:nth-child(even) .quiz-icon{background:#fde9ee;color:#db8ca7}.quiz-title{font-size:14px;font-weight:800;line-height:1.4}.quiz-intro{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:7px 0 12px;font-size:11px;line-height:1.5;color:var(--muted)}.quiz-go{margin-top:auto;color:#765499;font-size:11px;font-weight:700}.empty-state{text-align:center;padding:36px 15px;background:#f5eef8;border-radius:22px}.empty-state>span{display:block;font-size:34px;color:#a580c5}.empty-state strong{display:block;margin:5px 0;font-size:15px}.empty-state p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.more-button{display:block;min-height:43px;margin:22px auto 0;padding:0 23px;background:transparent;color:var(--ink);border:1px solid #d9c9df;border-radius:30px;font-size:13px;font-weight:700}
.bottom-nav{position:fixed;z-index:10;left:0;right:0;bottom:0;background:#fffbf8ed;backdrop-filter:blur(12px);border-top:1px solid #efe7ef;padding-bottom:env(safe-area-inset-bottom)}.bottom-inner{max-width:560px;margin:auto;display:flex;align-items:center;justify-content:space-around;height:64px}.bottom-inner a,.bottom-inner button{min-width:90px;height:55px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:none;border:0;color:#9c8ea3;font-size:11px;font-weight:700}.bottom-inner span{font-size:22px;line-height:1}.bottom-inner .is-active{color:var(--ink)}.my-dialog{width:min(calc(100% - 40px),340px);border:0;border-radius:25px;padding:32px 24px;text-align:center;color:var(--ink);box-shadow:0 20px 60px #38214638}.my-dialog::backdrop{background:#38214680}.my-dialog>span{font-size:44px}.my-dialog h2{margin:4px 0}.my-dialog p{font-size:13px;line-height:1.7;color:var(--muted)}.dialog-close{position:absolute;right:15px;top:10px;border:0;background:none;font-size:26px;color:var(--muted)}
@media(max-width:350px){.page{padding-left:14px;padding-right:14px}.category-card{padding-left:12px}.category-title{font-size:17px}.category-desc{font-size:9px}.hero-art{right:0}.random-copy strong{font-size:12px}.random-button{font-size:10px;padding:0 7px}}@media(min-width:600px){.hero{min-height:315px}.hero-art{right:30px;top:45px}.category-card{min-height:210px}.featured-card{min-height:260px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
img.hero-art{top:30px;right:0;width:46%;height:200px;object-fit:contain;object-position:center right}
img.category-art{right:5px;bottom:7px;width:83px;height:83px;object-fit:contain}
img.featured-art{right:-2px;bottom:10px;width:50%;height:180px;object-fit:contain}
img.dice{width:62px;height:68px;object-fit:contain}
@media(max-width:350px){img.hero-art{width:44%;top:40px}img.category-art{width:72px;height:72px}}
@media(min-width:600px){img.hero-art{right:20px;top:45px;width:43%;height:230px}img.category-art{width:105px;height:105px}img.featured-art{width:48%;height:205px}}
@media(max-width:599px){
  .page{padding-right:16px;padding-left:16px}
  .topbar{height:62px}.brand{font-size:21px}.brand-flower{width:30px;height:30px;font-size:22px}.profile-link{width:36px;height:36px;font-size:24px}
  .hero{min-height:225px;padding:3px 0 14px}.hero-copy{max-width:68%}.hero h1{font-size:clamp(25px,6.7vw,30px);line-height:1.23;letter-spacing:-1px;margin-bottom:9px}.hero p{font-size:12px;line-height:1.55;margin-bottom:17px;max-width:200px}
  .button{min-height:40px;padding:0 16px;gap:10px;font-size:12px}img.hero-art{top:30px;right:0;width:45%;height:155px}
  .search-area{margin-bottom:23px}.searchbox{height:48px;border-radius:16px;padding:0 14px}.searchbox input{font-size:12px}.searchbox>span{font-size:26px}
  .section{margin-top:27px}.section-heading{margin-bottom:13px}.section-heading h2{font-size:18px}.heading-spark{font-size:20px}
  .category-grid{gap:10px}.category-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-height:132px;padding:13px 12px;border-radius:21px}.category-title{font-size:16px}.category-count{margin-top:3px;font-size:11px}.category-desc{margin-top:4px;font-size:9px}.category-arrow{left:14px;bottom:10px;width:25px;height:25px;font-size:15px}img.category-art{right:2px;bottom:2px;width:78px;height:78px}
  .filters{margin-top:17px}.segmented button{padding:9px 5px;font-size:12px}.chip-row{padding-top:11px}.chip,.quick-chip{font-size:11px;min-height:33px}
  .featured{margin-top:30px}.featured-card{min-height:205px;padding:20px 18px;border-radius:23px}.eyebrow{font-size:10px;margin-bottom:7px}.featured h3{font-size:21px}.featured p{font-size:10px;margin:8px 0 15px}img.featured-art{right:-3px;bottom:8px;width:47%;height:155px}
  .random-card{min-height:96px;margin-top:14px;padding:12px 11px}.random-copy strong{font-size:12px}.random-copy span{font-size:9px}.random-button{font-size:10px}img.dice{width:56px;height:60px}
  .discovery{margin-top:30px}.quiz-grid{gap:10px}.quiz-card{min-height:156px;padding:14px 12px;border-radius:19px}.quiz-icon{margin-bottom:10px}.quiz-title{font-size:13px}.quiz-intro{font-size:10px}.bottom-inner{height:58px}.bottom-inner a,.bottom-inner button{height:51px;font-size:10px}.bottom-inner span{font-size:20px}
}
@media(max-width:350px){.category-title{font-size:15px}img.category-art{width:64px;height:64px}.hero h1{font-size:24px}}
.category-card{display:block;min-height:190px;padding:0;text-align:left}
.category-card.is-active{border-color:#9b7aaf}
.category-copy{position:absolute;z-index:1;inset:19px 14px 17px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:5px;pointer-events:none}
.category-copy-inner{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left}
.category-title{line-height:1.2}
.category-desc{max-width:58%;margin:0;white-space:normal;line-height:1.35}
img.category-art{position:absolute;right:5px;bottom:3px;width:51%;height:92%;max-width:none;margin:0;object-fit:contain;object-position:right bottom}
@media(max-width:599px){
  .category-card{height:120px;min-height:120px}
  .category-copy{inset:11px auto 12px 2%;width:58%;align-items:center;justify-content:center;text-align:left}
  .category-title{font-size:16px}
  .category-desc{font-size:9px;max-width:none;width:auto}
  img.category-art{right:-13px;bottom:2px;width:55%;height:110px}
  img.hero-art{width:60%;height:170px}
  .hero p{max-width:170px}
  img.featured-art{width:70%;height:180px}
}
@media(max-width:350px){.category-title{font-size:15px}.category-desc{font-size:8px}img.category-art{height:105px}}
.search-submit{flex:none;border:0;border-radius:9px;padding:5px 8px;background:#f6f1f6;color:#a59aa9;font-size:11px}
.catalog-lead{padding:11px 0 0}.catalog-back{font-size:12px;color:#806993;font-weight:700}.catalog-lead h1{margin:12px 0 4px;font-size:28px;line-height:1.2;letter-spacing:-.6px}.catalog-lead p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.catalog-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:22px;padding:5px;border-radius:19px;background:#f0e8f2}.catalog-switch a{display:grid;place-items:center;min-height:42px;border-radius:15px;color:var(--muted);font-size:13px;font-weight:700}.catalog-switch a.is-active{background:white;color:var(--ink);box-shadow:0 2px 6px #38214612}
.catalog-page .catalog-filters{margin-top:18px}.catalog-page .catalog-discovery{margin-top:28px}.catalog-search{margin-top:18px}
@media(max-width:599px){.catalog-lead h1{font-size:24px}.catalog-switch{margin-top:18px}.catalog-switch a{min-height:39px;font-size:12px}.catalog-page .catalog-discovery{margin-top:25px}}
