*{box-sizing:border-box} :root{color-scheme:light;--ink:#634638;--pink:#b63770;--cream:#fff7df}body{margin:0;background:radial-gradient(ellipse at top,#ffefcf,#fff9ef 55%,#fff0f6);color:var(--ink);font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:16px;line-height:1.7}button,select{font:inherit}a{color:#854263}button,a,select{-webkit-tap-highlight-color:transparent}button,a,summary,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}[hidden]{display:none!important}.ranking-page{width:min(100% - 32px,680px);margin:auto;padding:20px 0 36px}.top-nav{display:flex;justify-content:space-between;gap:12px;font-size:14px;flex-wrap:wrap}.top-nav a{min-height:44px;display:inline-flex;align-items:center}.page-heading{text-align:center;padding:18px 0 10px}.badge{display:inline-block;padding:5px 13px;border-radius:50px;background:#ffe7f0;color:#9b3f67;font-size:13px;font-weight:bold}.heading-stars{color:#d89630;font-size:36px;letter-spacing:14px;margin:12px 0 0}h1{font-size:clamp(23px,5.3vw,34px);line-height:1.5;margin:8px 0 12px}h1 span{color:var(--pink)}h2{font-size:21px;line-height:1.5}h3{font-size:18px}p{margin:10px 0}.date{font-size:14px;color:#846d60}.selection-card,.result-card,.save-preview{padding:24px;border:2px solid #eabccc;border-radius:24px;background:#fffdf6;box-shadow:0 5px 0 #f3d9ab}.selection-card h2{margin-top:0}.select-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:grid;gap:7px;font-weight:700}select{width:100%;min-width:0;min-height:52px;border:1.5px solid #d0b4a8;border-radius:12px;background:#fff;padding:10px;color:var(--ink)}.selection-note{font-size:13px;color:#816b5e;margin:14px 0}.primary,.secondary,.store-link{display:inline-flex;justify-content:center;align-items:center;min-height:50px;padding:11px 18px;border-radius:30px;text-decoration:none;font-weight:700;text-align:center;line-height:1.5}.primary{width:100%;border:0;background:#bc3d75;color:white;box-shadow:0 4px 0 #8e2e58}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #8e2e58}.secondary{border:1.5px solid #d7b2bf;background:#fff2f6;color:#854263}.primary:focus-visible,.secondary:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #247c9c;outline-offset:4px}.status{text-align:center;min-height:26px;font-size:14px}.reveal-show{height:240px;position:relative;display:flex;align-items:center;justify-content:center;gap:26px;overflow:hidden;color:#d29a35;font-size:45px;background:radial-gradient(#fff0b9,transparent 70%)}.reveal-show b{font-size:80px;animation:moon 1.3s ease-in-out}.reveal-show span,.reveal-show i{animation:spark 1.3s ease-out infinite}.reveal-show i{position:absolute;top:15px;left:48%;font-size:30px;animation-delay:.15s}.reveal-show p{position:absolute;bottom:10px;font-size:16px;color:var(--ink)}@keyframes spark{0%{opacity:0;transform:scale(.3) translateY(10px)}45%{opacity:1;transform:scale(1.25) translateY(-15px)}100%{opacity:0;transform:scale(.8) translateY(-35px)}}@keyframes moon{0%{transform:scale(.5) rotate(-25deg);opacity:0}60%{transform:scale(1.12) rotate(10deg);opacity:1}100%{transform:scale(1) rotate(0)}}.result-card{text-align:center;scroll-margin-top:16px}.result-card h2{margin:8px 0}.rank-badge{font-size:22px;font-weight:bold;margin:14px 0;color:#ae3e6f}.rank-badge strong{font-size:64px;line-height:1.25;color:#b23d70}.rank-badge small{font-size:16px;color:#846b56}.result-card h3{margin:8px 0}.reference-note{font-size:14px;background:#fff2cf;border-radius:12px;padding:12px;text-align:left}.theme{font-size:14px;color:#876750}.stamp-stage{min-height:190px;display:grid;place-items:center}.stamp-stage img{display:block;width:min(100%,260px);height:auto;object-fit:contain}.stamp-stage>span{font-size:60px;color:#daa94f}.tier{font-weight:bold;color:#a4456c}.ratings{max-width:380px;margin:20px auto}.ratings>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed #e8d8bd}.ratings dt{font-weight:bold}.ratings dd{margin:0;font-size:21px;letter-spacing:2px;color:#9d6516;white-space:nowrap}.message,.pinachi-quote{padding:16px;border-radius:18px;background:#fff0d4;text-align:left}.message p{line-height:1.9}.lucky{display:grid;gap:12px;text-align:left}.lucky div{padding:8px 0}.lucky dt{font-size:14px;color:#89705d}.lucky dd{margin:3px 0;font-weight:bold}.pinachi-quote{background:#fff0f6;text-align:center}.pinachi-quote span{font-size:14px}.pinachi-quote p{font-weight:bold;font-size:18px}.action-grid{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:22px}.text-button{min-height:48px;border:0;background:none;color:#854263;text-decoration:underline;margin:8px 0}.stamp-shop{border-top:1px dashed #e9cfda;margin:16px 0 22px;padding-top:16px;font-size:14px}.store-link{background:#edf6e8;border:1px solid #a3bd90;color:#436238;min-height:48px}.stamp-shop small{display:block;margin-top:8px;color:#876f65}details{text-align:left;border-top:1px solid #ead2bc;margin-top:20px;padding-top:12px}summary{cursor:pointer;min-height:52px;font-weight:bold;padding:10px 2px;line-height:1.6}details>p{font-size:14px}.ranking-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:6px}.ranking-list li{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:12px;border:1px solid #ecdfce;background:#fff;min-height:48px}.ranking-list b{min-width:46px;color:#8a4f65}.ranking-list .podium{background:#fff2c9;border-color:#dfba63}.ranking-list .mine{background:#ffe4ee;border:2px solid #c45785}.ranking-list small{margin-left:auto;font-size:12px;color:#9b3964;flex:none}.save-preview{margin:22px 0}.save-preview img{width:100%;height:auto;border-radius:12px;display:block;margin:12px 0}.save-preview .secondary{width:100%}footer{text-align:center;padding:24px 5px;font-size:14px}footer .disclaimer{text-align:left;color:#80695f;font-size:12px;line-height:1.8;margin:22px 0}@media(max-width:420px){.ranking-page{width:calc(100% - 24px)}.selection-card,.result-card,.save-preview{padding:18px 15px}.select-grid{grid-template-columns:1fr;gap:12px}.rank-badge strong{font-size:56px}.ranking-list li{font-size:14px;padding:10px 8px;gap:5px}.ratings dd{font-size:20px}.ranking-list small{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}

/* Star letter: a daily reading, distinct from the pink draw-again cards. */
:root{--ink:#353451;--pink:#6d55ae;--cream:#f4f2ff}body{background:radial-gradient(circle at 15% 10%,#65618a55 0,transparent 32%),radial-gradient(circle at 90% 28%,#7f69aa33 0,transparent 28%),#24254c;color:var(--ink)}.ranking-page{width:min(100% - 32px,720px)}.top-nav a{color:#eee7ff;text-decoration-color:#9e95bf}.page-heading{color:#fff8ec;padding:20px 0 24px}.badge{background:#ffffff17;border:1px solid #b5a4d46b;color:#f1d894;font-size:14px}.zodiac-emblem{display:flex;align-items:center;justify-content:center;gap:24px;margin:20px auto 6px}.zodiac-emblem svg{padding:8px;border:1px solid #cbb5ea75;border-radius:50%;background:#ffffff0d;filter:drop-shadow(0 0 18px #d5c0ed33)}.zodiac-emblem>span{color:#edd08c;font-size:27px}.heading-stars{display:none}.page-heading h1{margin:4px 0 12px;line-height:1.4}.page-heading h1 span{color:#efd38a}.page-heading .date{color:#e4dbf4}.mode-note{font-size:14px;line-height:1.7;color:#e1d5f2}.selection-card,.result-card,.save-preview{background:#faf9ff;border:1px solid #c5b9db;border-radius:24px;box-shadow:0 6px 0 #12142d55}.selection-card h2{color:#53417e}.selection-card>p{font-size:16px}.selection-note{font-size:14px;color:#696078}select{color:#353451;border-color:#bcb3cf;appearance:none;padding:12px 36px 12px 14px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%236d55ae' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center}.primary{background:#65519c;box-shadow:0 4px 0 #403165}.primary:active{box-shadow:0 2px 0 #403165}.secondary{background:#eee9fa;color:#53417e;border-color:#bdb0d1}.text-button,a{color:#594486}.rank-badge,.rank-badge strong{color:#65519c}.rank-badge{border-block:1px solid #dcd4eb;padding:18px 0;margin:20px 0}.rank-badge strong{font-size:76px}.result-card .date{color:#736986}.theme,.tier{color:#685381}.stamp-stage{padding:8px 0}.ratings>div{border-color:#d7d0e5}.ratings dd{color:#856a26}.message{background:#eeebf7;border-left:4px solid #aa91c9}.message h3{color:#5a4781}.lucky{grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.lucky>div{background:#fff;border:1px solid #ddd4eb;border-radius:16px;padding:14px;min-width:0;overflow-wrap:anywhere}.lucky dt{color:#766586}.lucky dd{color:#58417e}.pinachi-quote{background:#f4edfb}.status{color:#f1e6ff}.reveal-show p{color:#fff0c0}.ranking-list .mine{background:#ede5fc;border-color:#8d6db6}.ranking-list b{color:#63498c}.ranking-list small{color:#63498c}.other-fortune{margin-top:28px;text-align:center;color:#e2d8ef;font-size:14px}.other-fortune>a{display:grid;gap:3px;margin-top:10px;padding:18px;background:#fff0f5;color:#a43868;border:1px solid #efb1ce;border-radius:20px;text-decoration:none}.other-fortune strong{font-size:19px}.other-fortune small{font-size:14px}footer,footer .disclaimer{color:#cfc5e0}footer a{color:#f2d88c}footer .disclaimer{font-size:13px}@media(max-width:420px){.ranking-page{width:calc(100% - 24px)}.page-heading{padding-top:12px}.zodiac-emblem{margin:12px 0 4px;gap:20px}.zodiac-emblem svg{width:100px;height:100px}.page-heading h1{font-size:27px}.page-heading>p{font-size:15px}.page-heading .mode-note{font-size:14px}.rank-badge strong{font-size:68px}.lucky{grid-template-columns:1fr}.selection-card,.result-card{padding:22px 16px}.stamp-stage img{max-height:250px;width:auto;max-width:100%}}

/* The star deck shuffles, chooses one card, then turns it toward the reader. */
.reveal-show.tarot-reveal{display:block;height:360px;width:100%;max-width:480px;margin:12px auto 24px;overflow:hidden;isolation:isolate;font-size:16px;background:radial-gradient(ellipse at 50% 46%,#b4a1de25,transparent 68%);border-radius:24px;perspective:850px}
.tarot-reveal span,.tarot-reveal b,.tarot-reveal i{animation:none}.tarot-halo{position:absolute;width:216px;height:216px;top:42px;left:calc(50% - 108px);border:1px solid #e6cc9460;border-radius:50%;box-shadow:0 0 0 15px #d0b8f00a,0 0 0 30px #d0b8f008;transition:transform .7s,opacity .7s;opacity:.55}
.tarot-deck{position:relative;width:280px;height:290px;margin:auto;perspective:850px}.tarot-card{position:absolute;left:calc(50% - 62px);top:55px;width:124px;height:188px;z-index:var(--order);transform:translateX(var(--spread)) rotate(var(--tilt));transform-origin:center 85%;transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .4s;will-change:transform}
.tarot-card-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .65s cubic-bezier(.25,.6,.2,1)}.tarot-back,.tarot-front{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:2px solid #e8cc91;border-radius:15px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 7px 18px #0b0d2b55;overflow:hidden}.tarot-back{color:#f2dba4;background:repeating-linear-gradient(45deg,#39305b 0 10px,#403661 10px 20px)}.tarot-back:before{content:"";position:absolute;inset:7px;border:1px solid #d9bf875e;border-radius:10px;pointer-events:none}.tarot-back strong,.tarot-front strong{font-size:16px;line-height:1.5;text-align:center;font-weight:700}.tarot-back .tarot-corner{font-size:19px;line-height:1}.tarot-back .tarot-moon{font-size:45px;line-height:1.2;font-family:Georgia,serif}.tarot-front{transform:rotateY(180deg);background:radial-gradient(ellipse at center,#fff7e5,#eee5fc);color:#665087;gap:2px}.tarot-front>span{font-size:22px;color:#b89548}.tarot-front svg{width:82px;height:82px}.tarot-front strong{font-size:14px}.tarot-reveal .tarot-caption{position:absolute;inset:auto 8px 12px;margin:0;font-size:16px;color:#fff0c0;text-align:center;line-height:1.7}
.is-shuffling .tarot-card{animation:star-deck-shuffle .86s ease-in-out 3;animation-delay:0s}.is-shuffling .tarot-halo{animation:star-halo-breathe 1.3s ease-in-out 2}.tarot-reveal.is-chosen .tarot-card:not(.tarot-selected){opacity:0;transform:translateX(calc(var(--spread) * 1.55)) translateY(24px) rotate(var(--tilt)) scale(.87)}.tarot-reveal.is-chosen .tarot-selected{transform:translateY(-12px) scale(1.08);z-index:10}.tarot-reveal.is-flipping .tarot-card-inner{transform:rotateY(180deg)}.tarot-reveal.is-flipping .tarot-halo{transform:scale(1.15);opacity:1;box-shadow:0 0 38px #dbbf8c44,0 0 0 15px #d0b8f00a,0 0 0 30px #d0b8f008}
.tarot-sparkles{position:absolute;inset:0;pointer-events:none}.tarot-sparkles>span{position:absolute;left:var(--x);top:var(--y);color:#f5d894;font-size:20px;opacity:0;transform:scale(.4)}.is-shuffling .tarot-sparkles>span{animation:star-deck-twinkle 1.1s ease-in-out infinite;animation-delay:var(--spark-delay)}.is-flipping .tarot-sparkles>span{animation:star-deck-burst .8s ease-out both;animation-delay:calc(var(--spark-delay) * .25)}.result-card.result-unveiled{animation:star-result-enter .65s ease-out both}.result-unveiled .rank-badge{animation:star-rank-enter .85s ease-out both}.result-unveiled .stamp-stage{animation:star-stamp-enter 1.05s ease-out both}
@keyframes star-deck-shuffle{0%,100%{transform:translateX(var(--spread)) rotate(var(--tilt));z-index:var(--order)}18%{transform:translateX(var(--swing)) translateY(-24px) rotate(var(--mix-tilt));z-index:calc(7 - var(--order))}38%{transform:translateX(calc(var(--swing) * -1)) translateY(10px) rotate(calc(var(--mix-tilt) * -1));z-index:var(--order)}55%{transform:translateX(calc(var(--spread) * .15)) translateY(-14px) rotate(0);z-index:calc(7 - var(--order))}76%{transform:translateX(calc(var(--swing) * .85)) translateY(-22px) rotate(var(--mix-tilt));z-index:var(--order)}90%{transform:translateX(calc(var(--spread) * -1)) translateY(6px) rotate(calc(var(--tilt) * -1));z-index:calc(7 - var(--order))}}
@keyframes star-halo-breathe{0%,100%{opacity:.4;transform:scale(.9)}50%{opacity:.8;transform:scale(1.05)}}@keyframes star-deck-twinkle{0%,100%{opacity:.1;transform:scale(.5)}50%{opacity:.8;transform:scale(1)}}@keyframes star-deck-burst{0%{opacity:0;transform:translateY(10px) scale(.3)}35%{opacity:1;transform:translateY(-4px) scale(1.2)}100%{opacity:0;transform:translateY(-30px) scale(.6)}}@keyframes star-result-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes star-rank-enter{from{opacity:.2;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes star-stamp-enter{0%,35%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.reveal-show.tarot-reveal{height:340px}.tarot-deck{width:260px}.tarot-card{width:114px;height:176px;left:calc(50% - 57px)}.tarot-reveal .tarot-caption{font-size:15px}}
@media(prefers-reduced-motion:reduce){.tarot-reveal *,.result-card.result-unveiled,.result-unveiled .rank-badge,.result-unveiled .stamp-stage{animation:none!important;transition:none!important}.tarot-reveal .tarot-sparkles{display:none}}
.profile-trait{max-width:540px;margin:12px auto 18px;padding:12px 15px;border-radius:14px;background:#f0edf7;color:#645773;font-size:14px;line-height:1.9;text-align:left;overflow-wrap:anywhere}.daily-details{border:1px solid #d6cae5;border-radius:16px;padding:6px 14px;margin:16px 0;background:#fff}.daily-details summary{font-size:16px;color:#5d4784}.daily-details dl{margin:6px 0}.daily-details dl>div{padding:12px 0;border-top:1px dashed #d9d0e4}.daily-details dt{font-weight:700;color:#685181}.daily-details dd{margin:5px 0 0;line-height:1.9;font-size:16px}

/* JS owns card positions so system animation settings cannot silently skip the draw. */
.is-js-shuffling .tarot-card{animation:none!important;transition:none!important;will-change:transform}
.is-gentle .tarot-sparkles{display:none}
.motion-settings{margin-top:1rem;font-size:.95rem}.motion-settings summary{cursor:pointer;padding:.5rem 0}.motion-settings label{display:block;margin-top:.5rem}.motion-settings select{display:block;width:100%;font:inherit;padding:.75rem;border-radius:12px;border:1px solid #a5a0c5;background:#fff;color:#272348}
.tarot-card-inner{-webkit-transform-style:preserve-3d}.tarot-front,.tarot-back{-webkit-backface-visibility:hidden}
.message p,.pinachi-quote p,.profile-trait,.daily-details dd{line-height:1.95;overflow-wrap:anywhere}

.sound-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;margin:1rem auto;color:inherit}.sound-toggle{font:inherit;font-weight:700;border:1px solid currentColor;border-radius:999px;padding:.65rem 1.1rem;color:inherit;background:transparent;cursor:pointer;min-height:44px}.sound-toggle[aria-pressed="true"]{background:#e8ddff;color:#302249}.sound-toggle:focus-visible{outline:3px solid #b276d6;outline-offset:3px}.sound-controls span{font-size:.875rem}

.ranking-intro{font-size:1.1rem;line-height:1.8}.page-heading .type-count{font-size:.875rem;line-height:1.7}.stamp-shop h3{font-size:1.2rem;line-height:1.6;margin:0 0 .75rem}.stamp-shop h4{font-size:1.05rem;line-height:1.65;margin:.85rem 0}.stamp-shop p{font-size:1rem;line-height:1.8}.stamp-shop a{overflow-wrap:anywhere}.stamp-collections{margin-top:1.25rem;text-align:left}.stamp-collections summary{cursor:pointer;padding:.7rem 0;font-weight:700}.stamp-collections ul{list-style:none;padding:0;margin:.5rem 0}.stamp-collections li{border-top:1px solid #d8d0e8}.stamp-collections li a{display:block;min-height:44px;padding:.8rem .25rem;font-size:.95rem;line-height:1.7;color:inherit;text-decoration:underline}.page-heading h1 span{font-size:clamp(1.55rem,6vw,2.65rem)}
