:root{--bg:#14171C;--ivory:#FAF4E6;--ink:#2B2519;--lite:#F3EFE6;--teal:#1B8F87;--btn:#1EA79D;--gold:#E4B04A;--soc:#E08793;--fin:#D7BF89;--cul:#B8A3BB;--tec:#7DACB5}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:var(--ivory);font-family:'Noto Sans TC',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
body{min-height:100svh;display:flex;flex-direction:column;align-items:center;padding:var(--topbarH,53px) 0 0}
footer.site-footer{width:100%;margin-top:auto}
a{color:inherit}
.top{width:100%;max-width:560px;display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.top .logo{font-family:'Noto Serif TC',serif;font-weight:700;font-size:16px;text-decoration:none;color:var(--gold);letter-spacing:.06em}
.top .tag{font-size:12px;color:#9aa0a6;border:1px solid #3a3f47;border-radius:999px;padding:2px 10px}
.wrap{width:100%;max-width:592px;padding:18px 16px 0}
.card{background:var(--ivory);color:var(--ink);border-radius:20px;padding:22px 18px;box-shadow:0 12px 40px rgba(0,0,0,.35)}
h1{font-family:'Noto Serif TC',serif;font-size:26px;line-height:1.3;font-weight:700}
h2{font-size:18px;font-weight:700;line-height:1.45}
.sub{font-size:14px;color:#6b6457;margin-top:8px;line-height:1.6}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:999px;padding:13px 22px;font-size:16px;font-weight:700;font-family:inherit;cursor:pointer;text-decoration:none;transition:transform .08s,opacity .2s}
.btn:active{transform:scale(.97)}
.btn.pri{background:var(--btn);color:#fff;width:100%}
.btn.sec{background:#fff;color:var(--ink);border:1.5px solid #d9d2c3}
.btn.gold{background:var(--gold);color:#2B2519;width:100%}
.btn.sm{padding:9px 14px;font-size:14px}
.btn[disabled]{opacity:.5;pointer-events:none}
.intro .chibis{display:flex;justify-content:center;align-items:flex-end;gap:0;margin:14px 0 6px;min-height:80px}
.intro .chibis img{width:12.5%;height:min(96px,calc(24vw - 22px));object-fit:contain;object-position:bottom;animation:bob 2.4s ease-in-out infinite}
.intro .chibis img:nth-child(2n){animation-delay:-.8s}.intro .chibis img:nth-child(3n){animation-delay:-1.5s}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.intro .n104{font-family:'Outfit','Noto Sans TC',sans-serif;font-size:44px;font-weight:600;color:var(--teal);line-height:1}
.intro .cta{margin-top:18px}
.prog{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#6b6457;margin-bottom:8px}
.bar{height:6px;background:#e6dfd0;border-radius:3px;overflow:hidden;margin-bottom:18px}
.bar i{display:block;height:100%;background:var(--teal);border-radius:3px;transition:width .3s}
.opts{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.opt{text-align:left;background:#fff;border:1.5px solid #d9d2c3;border-radius:14px;padding:14px 16px;font-size:15px;line-height:1.45;font-family:inherit;color:var(--ink);cursor:pointer;display:flex;gap:10px;align-items:center;transition:border-color .15s,background .15s}
.opt b{flex:0 0 26px;height:26px;border-radius:50%;background:var(--lite);display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:#6b6457}
.opt:hover{border-color:var(--teal)}
.opt.on{background:var(--teal);border-color:var(--teal);color:#fff}.opt.on b{background:rgba(255,255,255,.25);color:#fff}
.qnav{display:flex;justify-content:space-between;margin-top:16px}
.qnav button{background:none;border:0;color:#6b6457;font-size:13px;font-family:inherit;cursor:pointer;padding:6px 0}
.calc{text-align:center;padding:30px 0}
.calc .chibis{display:flex;justify-content:center;gap:0;height:80px;overflow:hidden;margin-bottom:14px}
.calc .chibis img{height:80px;animation:run .9s linear infinite}
@keyframes run{0%{transform:translateX(-40px)}100%{transform:translateX(40px)}}
.res .hero{position:relative;border-radius:16px;overflow:hidden;background:#1d2127;aspect-ratio:512/410}
.res .hero img.p{width:100%;height:100%;object-fit:cover;display:block}
.res .hero .kicker{position:absolute;left:12px;top:12px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:4px 10px;border-radius:999px}
.res .hero .chibi{position:absolute;right:8px;bottom:0;height:110px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.4))}
.res .nm{display:flex;align-items:center;gap:10px;margin-top:16px}
.res .nm h2{font-family:'Noto Serif TC',serif;font-size:28px}
.gradeTx{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 8px;border-radius:9px;font-family:'Outfit',sans-serif;font-weight:600;font-size:20px;color:#fff}
.res .meta{font-size:13px;color:#6b6457;margin-top:4px}
.res .bub{position:relative;background:#fff;border:1.5px solid #e6dfd0;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.6;margin-top:14px}
.res .bub:before{content:'';position:absolute;left:22px;top:-8px;width:14px;height:14px;background:#fff;border-left:1.5px solid #e6dfd0;border-top:1.5px solid #e6dfd0;transform:rotate(45deg)}
.res .desc{font-size:14px;line-height:1.7;margin-top:14px}
.radar{display:flex;gap:14px;align-items:center;margin-top:16px}
.radar svg{flex:0 0 150px}
.abis{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
.abi{font-size:13px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px dashed #e0d8c8;padding-bottom:4px}
.abi .gradeTx{min-width:28px;height:26px;font-size:15px;border-radius:7px}
.sim{margin-top:18px}
.sim .t{font-size:13px;color:#6b6457;margin-bottom:8px}
.sim .row{display:flex;gap:8px}
.sim .c{flex:1;background:#fff;border:1.5px solid #e6dfd0;border-radius:12px;padding:8px 6px;text-align:center;font-size:12px;line-height:1.3}
.sim .c img{height:56px;display:block;margin:0 auto 4px}
.share{margin-top:18px}
.share .t{font-size:13px;color:#6b6457;margin-bottom:8px}
.share .row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.share .row .btn{font-size:14px;padding:11px 8px}
.share .line{background:#06C755;color:#fff}.share .th{background:#000;color:#fff}
.acts{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#2B2519;color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;opacity:0;transition:opacity .25s;pointer-events:none}
.toast.on{opacity:1}
.foot{margin:18px 16px 36px;font-size:12px;color:#7d8590;text-align:center;line-height:1.7}
.hide{display:none!important}
@media (min-width:600px){.card{padding:28px 30px}h1{font-size:30px}}
/* 1111 用戶 22276：每題選完隨機位置跳出一位名人＋特效 */
.pop{position:fixed;z-index:200;pointer-events:none;width:100px;height:120px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;animation:popIn .55s cubic-bezier(.2,1.6,.4,1) both,popOut .35s ease-in .95s forwards}
.pop img{height:84px;width:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.45));animation:popBob 1.3s ease-in-out}
.pop .nm{margin-top:3px;background:#2B2519;color:#FAF4E6;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.pop .ring{position:absolute;left:50%;top:50%;width:90px;height:90px;margin:-45px 0 0 -45px;border-radius:50%;background:radial-gradient(circle,rgba(228,176,74,.65) 0%,rgba(228,176,74,0) 70%);animation:ringOut .8s ease-out both}
.pop i{position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;background:var(--gold);border-radius:2px;transform:rotate(45deg);animation:spark .8s ease-out both}
.pop i:nth-child(1){--dx:-70px;--dy:-60px}.pop i:nth-child(2){--dx:72px;--dy:-48px}.pop i:nth-child(3){--dx:-62px;--dy:50px}.pop i:nth-child(4){--dx:66px;--dy:58px}.pop i:nth-child(5){--dx:0px;--dy:-84px;background:#fff}.pop i:nth-child(6){--dx:-86px;--dy:-4px;background:#fff}.pop i:nth-child(7){--dx:88px;--dy:6px;background:#fff}.pop i:nth-child(8){--dx:4px;--dy:80px}
@keyframes popIn{0%{transform:scale(.2) rotate(-12deg);opacity:0}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes popOut{to{transform:scale(.6) translateY(-30px);opacity:0}}
@keyframes popBob{0%,100%{transform:translateY(0)}30%{transform:translateY(-10px)}60%{transform:translateY(0)}80%{transform:translateY(-4px)}}
@keyframes ringOut{0%{transform:scale(.2);opacity:1}100%{transform:scale(2.2);opacity:0}}
@keyframes spark{0%{transform:translate(0,0) rotate(45deg) scale(1);opacity:1}100%{transform:translate(var(--dx),var(--dy)) rotate(225deg) scale(.2);opacity:0}}
@media (prefers-reduced-motion:reduce){.pop{display:none}}

/* 1111 用戶 22289：每次彈出特效不同（8 種）；sim 卡點了放大閃動（22288） */
.pop.fxSpin{animation:popSpin .7s cubic-bezier(.2,1.4,.4,1) both,popOut .35s ease-in .95s forwards}
.pop.fxLeft{animation:popLeft .5s cubic-bezier(.2,1.4,.4,1) both,popOut .35s ease-in .95s forwards}
.pop.fxRight{animation:popRight .5s cubic-bezier(.2,1.4,.4,1) both,popOut .35s ease-in .95s forwards}
.pop.fxDrop{animation:popDrop .6s cubic-bezier(.3,1.5,.5,1) both,popOut .35s ease-in .95s forwards}
.pop.fxFlash{animation:popFlash .7s ease-out both,popOut .35s ease-in .95s forwards}
.pop.fxShake{animation:popIn .3s ease-out both,popShake .5s ease-in-out .3s,popOut .35s ease-in .95s forwards}
.pop.fxRise{animation:popRise .6s ease-out both,popOut .35s ease-in .95s forwards}
.pop.fxSpin .ring{background:radial-gradient(circle,rgba(27,143,135,.7) 0%,rgba(27,143,135,0) 70%)}.pop.fxSpin i{background:#1B8F87}
.pop.fxLeft .ring,.pop.fxRight .ring{background:radial-gradient(circle,rgba(224,135,147,.65) 0%,rgba(224,135,147,0) 70%)}.pop.fxLeft i,.pop.fxRight i{background:#E08793}
.pop.fxDrop .ring{background:radial-gradient(circle,rgba(125,172,181,.7) 0%,rgba(125,172,181,0) 70%)}.pop.fxDrop i{background:#7DACB5}
.pop.fxFlash .ring{background:radial-gradient(circle,rgba(255,255,255,.9) 0%,rgba(255,255,255,0) 70%);animation:ringOut .5s ease-out both,ringOut .5s ease-out .4s both}
.pop.fxShake .ring{background:radial-gradient(circle,rgba(184,163,187,.7) 0%,rgba(184,163,187,0) 70%)}.pop.fxShake i{background:#B8A3BB}
.pop.fxRise .ring{background:radial-gradient(circle,rgba(215,191,137,.7) 0%,rgba(215,191,137,0) 70%)}.pop.fxRise i{background:#D7BF89}
@keyframes popSpin{0%{transform:scale(.1) rotate(-540deg);opacity:0}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes popLeft{0%{transform:translateX(-140px) rotate(-20deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes popRight{0%{transform:translateX(140px) rotate(20deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes popDrop{0%{transform:translateY(-160px);opacity:0}100%{transform:none;opacity:1}}
@keyframes popFlash{0%{transform:scale(1.6);opacity:0;filter:brightness(4)}30%{opacity:1;filter:brightness(3)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes popShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px) rotate(-4deg)}40%{transform:translateX(8px) rotate(4deg)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}}
@keyframes popRise{0%{transform:translateY(60px) scale(.6);opacity:0}100%{transform:none;opacity:1}}
.sim .c{cursor:pointer;font-family:inherit;color:var(--ink);transition:transform .12s}.sim .c:active{transform:scale(.95)}
.big{position:fixed;inset:0;z-index:300;background:rgba(10,12,16,.82);display:flex;align-items:center;justify-content:center;animation:bigIn .2s ease-out;cursor:pointer}
.big.out{opacity:0;transition:opacity .25s}
.big .bx{position:relative;text-align:center;color:#FAF4E6;animation:bigPop .5s cubic-bezier(.2,1.5,.4,1)}
.big .glow{position:absolute;left:50%;top:40%;width:320px;height:320px;margin:-160px 0 0 -160px;border-radius:50%;background:radial-gradient(circle,rgba(228,176,74,.55) 0%,rgba(228,176,74,0) 65%);animation:glowBlink .9s ease-in-out infinite}
.big img{position:relative;height:min(52vh,360px);width:auto;filter:drop-shadow(0 10px 20px rgba(0,0,0,.6));animation:bigBlink 1.1s ease-in-out infinite}
.big .bn{position:relative;font-family:'Noto Serif TC',serif;font-size:28px;font-weight:700;margin-top:10px}
.big .bg2{position:relative;font-size:14px;color:#c9d1d9;margin-top:6px;display:flex;gap:8px;justify-content:center;align-items:center}
.big .bt{position:relative;font-size:12px;color:#7d8590;margin-top:16px}
@keyframes bigIn{from{opacity:0}to{opacity:1}}
@keyframes bigPop{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes bigBlink{0%,100%{filter:drop-shadow(0 10px 20px rgba(0,0,0,.6)) brightness(1)}50%{filter:drop-shadow(0 0 28px rgba(228,176,74,.9)) brightness(1.35)}}
@keyframes glowBlink{0%,100%{transform:scale(.9);opacity:.6}50%{transform:scale(1.15);opacity:1}}
/* 1111 用戶 22342：結果頁名人圖閃耀：光帶掃過＋星芒閃爍＋金色邊光呼吸＋出現時一閃 */
.res .hero{isolation:isolate;box-shadow:0 0 0 1.5px rgba(228,176,74,.35),0 0 18px rgba(228,176,74,.25);animation:heroGlow 2.8s ease-in-out infinite}
.res .hero::after{content:'';position:absolute;top:-30%;bottom:-30%;left:-60%;width:42%;pointer-events:none;z-index:3;background:linear-gradient(105deg,rgba(255,255,255,0) 0%,rgba(255,236,170,.25) 30%,rgba(255,255,255,.85) 46%,rgba(255,226,140,.8) 50%,rgba(255,255,255,.85) 54%,rgba(255,236,170,.25) 70%,rgba(255,255,255,0) 100%);opacity:.7;transform:skewX(-14deg) translateX(0);animation:heroShine 4.2s cubic-bezier(.4,0,.2,1) .3s infinite}
.res .hero .flash{position:absolute;inset:0;z-index:4;pointer-events:none;background:radial-gradient(circle at 50% 40%,rgba(255,248,220,.95),rgba(255,248,220,0) 70%);animation:heroFlash .9s ease-out forwards}
.res .hero .sp{position:absolute;z-index:5;pointer-events:none;width:var(--s,14px);height:var(--s,14px);opacity:0;animation:spTwinkle var(--d,2.4s) ease-in-out var(--dl,0s) infinite}
.res .hero .sp::before,.res .hero .sp::after{content:'';position:absolute;left:50%;top:50%;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 35%,#FFE9A8 50%,#fff 65%,rgba(255,255,255,0));border-radius:999px}
.res .hero .sp::before{width:100%;height:18%;transform:translate(-50%,-50%)}
.res .hero .sp::after{width:18%;height:100%;transform:translate(-50%,-50%);background:linear-gradient(180deg,rgba(255,255,255,0),#fff 35%,#FFE9A8 50%,#fff 65%,rgba(255,255,255,0))}
.res .hero .kicker,.res .hero .chibi{z-index:6}
@keyframes heroShine{0%{transform:skewX(-14deg) translateX(0)}40%{transform:skewX(-14deg) translateX(480%)}100%{transform:skewX(-14deg) translateX(480%)}}
@keyframes heroGlow{0%,100%{box-shadow:0 0 0 1.5px rgba(228,176,74,.3),0 0 14px rgba(228,176,74,.18)}50%{box-shadow:0 0 0 2px rgba(228,176,74,.8),0 0 28px rgba(228,176,74,.45)}}
@keyframes heroFlash{0%{opacity:1}100%{opacity:0}}
@keyframes spTwinkle{0%,100%{opacity:0;transform:scale(.2) rotate(0deg)}50%{opacity:1;transform:scale(1) rotate(45deg)}}
@media (prefers-reduced-motion:reduce){.res .hero,.res .hero::after,.res .hero .sp,.res .hero .flash{animation:none}.res .hero .sp,.res .hero .flash{display:none}}
