@font-face{font-family:SanfuUI;src:url('assets/fonts/sanfu-ui-regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:SanfuUI;src:url('assets/fonts/sanfu-ui-bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:SanfuDisplay;src:url('assets/fonts/sanfu-display.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
:root{--font:SanfuUI,"Microsoft YaHei","PingFang SC",sans-serif;--mood-accent:#00a6e7;font-size:15px}
body{font-family:var(--font);font-weight:400}
body[data-mood=chill]{--mood-accent:#89aa64}
body[data-mood=spark]{--mood-accent:#f59c00}
body[data-mood=explore]{--mood-accent:#00a6e7}
h1,h2,strong,b{font-weight:700}
.site-header{height:84px}
.brand-idea{letter-spacing:.06em;font-size:13px}
.text-button{font-size:14px;font-weight:700}
.about-button{display:flex;align-items:center;gap:7px}
.intro-screen{min-height:calc(100svh - 84px);padding-top:37px}
.intro-copy h1{font-size:inherit;max-width:510px;width:100%;line-height:1;white-space:normal;letter-spacing:normal}
.cover-title{display:block;width:100%;height:auto;overflow:visible}
.theme-line{font-size:16px;margin-bottom:13px}
.intro-description{font-size:21px;font-weight:700;line-height:1.5;letter-spacing:0;margin-top:22px}
.intro-action{margin-top:27px}
.intro-footnote{font-size:13px;color:#616359}
.hero-art{border-radius:100px 100px 28px 28px;padding-top:50px}
.hero-word{top:20px;font-size:15px;color:#173d4f;letter-spacing:.02em}
.intro-scene svg{max-height:425px}
.hero-sticker{font-family:SanfuDisplay,var(--font);font-weight:400;font-size:22px}
.ip-invite{justify-content:center;gap:8px;margin-top:0;padding:12px}
.ip-invite p{font-size:13px;font-weight:700}
.tap-icon{font-size:24px;color:#a56300}
.ip-invite>.tap-icon{margin-left:0}
.intro-bottom{font-size:12px;color:#62655b}
.primary-button{font-weight:700;font-size:16px;gap:20px}
.resume-button{font-size:14px}
.game-screen{padding-top:23px;min-height:calc(100svh - 84px)}
.step-nav{max-width:690px;margin-bottom:25px}
.step-tab{font-size:13px;font-weight:700}
.step-tab:disabled{color:#777b70}
.step-heading h1{font-size:32px;font-weight:700;line-height:1.3;letter-spacing:-.035em}
.step-description{font-size:14px;line-height:1.6;margin-top:10px;color:#62665b}
.step-counter{font-size:13px;margin-bottom:9px}
.step-counter b{color:#006d97;font-size:19px}
.game-layout{gap:42px;grid-template-columns:1.15fr 1fr}
.scene-frame{isolation:isolate;max-width:570px;overflow:hidden}
.scene-frame[data-scene=solo]{background:#f7e7ce}
.scene-frame[data-mood=chill]{background:#d9eff4}
.scene-frame[data-mood=spark]{background:#ffe0eb}
.scene-frame[data-mood=explore]{background:#b9eafa}
.scene-frame[data-scene=solo]{background:#f7e7ce}
.live-scene svg{width:100%;max-height:490px}
.scene-label{font-size:12px;bottom:12px;z-index:4;pointer-events:none;padding:6px 13px}
.pet-replay-button{position:absolute;left:28%;top:1%;width:58%;height:88%;padding:0;background:none;border:2px solid transparent;border-radius:48%;z-index:3;cursor:pointer;touch-action:manipulation}
.pet-replay-button:focus-visible{outline:3px dashed #075e89;outline-offset:2px}
.intro-pet-button{left:28%;top:12%;height:72%}
.guide{min-height:45px;padding:12px 6px 0;gap:9px}
.guide p{font-size:14px;line-height:1.6;max-width:none}
.guide-star{font-size:23px;color:#007ea9;flex-shrink:0;line-height:1}
.pet-hint{font-size:12px;color:#696d62;margin:5px 6px 0;line-height:1.6}
.choice-fieldset{margin-top:21px}
.choices{gap:12px}
.choice-inner{min-height:86px;border-radius:15px;gap:16px;padding:12px;transition:border-color .15s,background-color .15s,box-shadow .15s}
.choice-label input:checked+.choice-inner{background:#f5fadf;box-shadow:3px 3px 0 var(--ink);border-width:1.5px}
.choice-icon{width:59px;height:58px}
.choice-icon svg{overflow:visible}
.choice-text strong{font-size:16px;letter-spacing:-.015em;line-height:1.5}
.choice-text small{font-size:13px;color:#63675b;line-height:1.6}
.choice-check{width:20px;height:20px}
.game-controls{margin-top:25px;position:static;gap:20px}
.game-controls .primary-button{min-height:56px;font-size:15px}
.back-button{font-size:14px}
.illustration-note{font-size:12px;color:#686b61;line-height:1.5;margin-top:15px}
.result-screen{padding-top:36px;min-height:calc(100svh - 84px)}
.poster-wrap{position:relative;max-width:420px}
.poster-pet-button{left:28%;top:24%;width:52%;height:48%}
.poster-tap-note{display:block;text-align:center;margin-top:16px;font-size:12px;color:#686b61;transform:rotate(2deg)}
.result-kicker{font-size:14px}
.result-copy h1{font-family:SanfuDisplay,var(--font);font-weight:400;font-size:44px;line-height:1.35;letter-spacing:-.025em;max-width:390px}
.result-copy h1[data-mood=chill]{letter-spacing:.035em}
.result-copy h1[data-mood=explore]{transform:rotate(-1deg);transform-origin:left center}
.result-description{font-size:15px;line-height:1.85;max-width:370px}
.result-picks{gap:8px;margin-top:20px}
.result-picks li{font-size:12px;padding:7px 9px;background:#f0f2e9}
.result-copy>.primary-button{max-width:390px}
.result-copy>.outline-button{max-width:390px;font-size:15px}
.result-secondary .text-button{font-size:13px}
.result-footnote{font-size:12px;color:#676b60}
.poster svg{background:#fff}
dialog{font-family:var(--font)}
dialog h2{font-size:29px;font-weight:700;line-height:1.4;letter-spacing:-.04em}
dialog p{font-size:14px;line-height:1.8}
.dialog-note{font-size:12px!important}
.save-dialog p{font-size:13px}
.share-dialog label,.share-dialog input{font-size:13px}
.toast{font-size:13px;line-height:1.6;max-width:min(440px,calc(100vw - 30px))}

/* Base poses are SVG transforms; these wrappers add one short response. */
.scene-frame.is-reacting{animation:none}
.scene-frame.is-reacting .character-good,.scene-frame.is-reacting .character-accessory{animation:none}
.pet-bob-motion{transform-box:fill-box;transform-origin:50% 100%}
.pet-head-motion{transform-box:fill-box;transform-origin:50% 97%}
.pet-eye-motion{transform-box:fill-box;transform-origin:50% 50%}
.pet-left-arm-motion{transform-box:fill-box;transform-origin:82% 5%}
.pet-right-arm-motion{transform-box:fill-box;transform-origin:18% 5%}
.pet-good-motion,.character-accessory{transform-box:fill-box;transform-origin:50% 0}
.character-accessory[data-accessory=charm]{transform-origin:50% 8%}
.pet-shirt-motion{transform-box:fill-box;transform-origin:50% 90%}
.pet-ground-shadow{transform-box:fill-box;transform-origin:50% 50%}
.is-reacting[data-reaction=mood][data-mood=chill] .pet-bob-motion{animation:pet-relax 1s ease-in-out}
.is-reacting[data-reaction=mood][data-mood=chill] .pet-head-motion{animation:head-relax 1s ease-in-out}
.is-reacting[data-reaction=mood][data-mood=spark] .pet-bob-motion{animation:pet-joy .9s cubic-bezier(.25,.6,.28,1)}
.is-reacting[data-reaction=mood][data-mood=spark] .pet-left-arm-motion{animation:arm-left-cheer .9s ease-out}
.is-reacting[data-reaction=mood][data-mood=spark] .pet-right-arm-motion{animation:arm-right-cheer .9s ease-out}
.is-reacting[data-reaction=mood][data-mood=spark] .pet-ground-shadow{animation:joy-shadow .9s ease-out}
.is-reacting[data-reaction=mood][data-mood=explore] .pet-head-motion{animation:head-peek 1s ease-in-out}
.is-reacting[data-reaction=mood][data-mood=explore] .pet-eye-motion{animation:eye-peek 1s ease-in-out}
.is-reacting[data-reaction=mood][data-mood=explore] .pet-bob-motion{animation:pet-peek 1s ease-in-out}
.is-reacting[data-reaction=scene] .pet-head-motion{animation:head-peek .8s ease-in-out}
.is-reacting[data-reaction=outfit] .pet-shirt-motion{animation:shirt-tug .7s ease-in-out}
.is-reacting[data-reaction=outfit] .pet-left-arm-motion{animation:arm-tug-left .7s ease-in-out}
.is-reacting[data-reaction=outfit] .pet-right-arm-motion{animation:arm-tug-right .7s ease-in-out}
.is-reacting[data-reaction=accessory] .character-accessory{animation:accessory-pop .7s ease-out}
.is-reacting[data-reaction=good] .pet-good-motion{animation:good-swing .8s ease-out}
.is-reacting[data-reaction=good] .character-accessory{animation:good-swing .8s ease-out}
.mood-wordmark{transform-box:fill-box;transform-origin:50% 80%}
.is-reacting[data-reaction=mood][data-mood=spark] .mood-wordmark{animation:title-pop .8s ease-out}
.is-reacting[data-reaction=mood][data-mood=chill] .mood-wordmark{animation:title-relax 1s ease-in-out}
.is-reacting[data-reaction=mood][data-mood=explore] .mood-wordmark{animation:title-peek 1s ease-in-out}
.choice-icon .icon-face{transform-box:fill-box;transform-origin:50% 50%}
.choice-icon .icon-eyes,.choice-icon .icon-mouth{transform-box:fill-box;transform-origin:50% 50%}
.choice-label[data-value=chill] input:checked+.choice-inner .icon-eyes{transform:scaleY(.76)}
.choice-label[data-value=spark] input:checked+.choice-inner .icon-mouth{transform:scale(1.08)}
.choice-label[data-value=explore] input:checked+.choice-inner .icon-eyes{transform:translate(2px,-1px)}
.choice-label.is-reacting[data-value=chill] .icon-face{animation:icon-relax 1s ease-in-out}
.choice-label.is-reacting[data-value=spark] .icon-face{animation:icon-joy .9s ease-out}
.choice-label.is-reacting[data-value=explore] .icon-face{animation:icon-peek 1s ease-in-out}

@keyframes pet-relax{0%,100%{transform:translateY(0) scale(1)}40%{transform:translateY(8px) scale(1.015,.975)}70%{transform:translateY(3px) scale(1.005,.99)}}
@keyframes head-relax{0%,100%{transform:rotate(0)}45%{transform:rotate(-4deg)}75%{transform:rotate(1deg)}}
@keyframes pet-joy{0%,100%{transform:translateY(0) scale(1)}18%{transform:translateY(5px) scale(1.025,.97)}44%{transform:translateY(-30px) scale(.99,1.01)}69%{transform:translateY(2px) scale(1.015,.985)}86%{transform:translateY(-5px) scale(1)}}
@keyframes arm-left-cheer{0%,100%{transform:rotate(0)}42%{transform:rotate(10deg)}72%{transform:rotate(-2deg)}}
@keyframes arm-right-cheer{0%,100%{transform:rotate(0)}42%{transform:rotate(-10deg)}72%{transform:rotate(2deg)}}
@keyframes joy-shadow{0%,100%{transform:scale(1);opacity:.18}44%{transform:scale(.78);opacity:.1}}
@keyframes head-peek{0%,100%{transform:rotate(0)}28%{transform:rotate(-4deg)}65%{transform:rotate(5deg)}}
@keyframes eye-peek{0%,100%{transform:translate(0,0)}28%{transform:translate(-4px,0)}65%{transform:translate(6px,-2px)}}
@keyframes pet-peek{0%,100%{transform:translateX(0)}65%{transform:translateX(5px)}}
@keyframes shirt-tug{0%,100%{transform:scale(1)}45%{transform:scale(1.025,1.018)}}
@keyframes arm-tug-left{0%,100%{transform:rotate(0)}45%{transform:rotate(-5deg)}}
@keyframes arm-tug-right{0%,100%{transform:rotate(0)}45%{transform:rotate(5deg)}}
@keyframes title-pop{0%,100%{transform:translateY(0)}40%{transform:translateY(-4px)}}
@keyframes title-relax{0%,100%{transform:translateY(0)}50%{transform:translateY(2px)}}
@keyframes title-peek{0%,100%{transform:rotate(0)}60%{transform:rotate(1.5deg)}}
@keyframes icon-relax{0%,100%{transform:rotate(0) translateY(0)}50%{transform:rotate(-7deg) translateY(3px)}}
@keyframes icon-joy{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-6px) scale(1.05)}70%{transform:translateY(1px) scale(.99)}}
@keyframes icon-peek{0%,100%{transform:rotate(0)}28%{transform:rotate(-7deg)}65%{transform:rotate(7deg)}}

@media(max-width:850px){
  .intro-copy h1{font-size:inherit}.intro-description{font-size:17px}.hero-word{font-size:13px}
  .game-layout{gap:25px}.step-heading h1{font-size:27px}.choice-inner{gap:9px;padding:10px}
  .choice-icon{width:50px;height:50px}.choice-text strong{font-size:14px}.choice-text small{font-size:12px}
  .result-copy h1{font-size:36px}.result-description{font-size:14px}
}
@media(max-width:600px){
  .site-header{height:62px;padding:18px 19px}.brand,.brand img{width:145px}
  .site-header>.text-button{font-size:13px}.site-header>.text-button span{width:18px;height:18px;font-size:11px}
  .intro-screen{min-height:calc(100svh - 62px);padding:20px 22px 0}
  .theme-line{font-size:14px;margin-bottom:10px}
  .intro-copy h1{width:min(100%,340px);font-size:inherit;white-space:normal;line-height:1}
  .intro-description{font-size:17px;line-height:1.5;margin-top:12px}
  .hero-art{margin-top:19px;border-radius:65px 65px 23px 23px;padding:34px 10px 10px}
  .hero-word{font-size:12px;top:13px}
  .intro-scene svg{max-height:260px}
  .hero-sticker{top:51px;width:75px;height:75px;font-size:16px;right:-5px}
  .ip-invite{padding:8px 10px;gap:6px;min-height:39px}.ip-invite p{font-size:12px}.tap-icon{font-size:22px}
  .intro-pet-button{top:11%;height:74%}.intro-action{margin-top:17px;position:static}
  .intro-bottom{font-size:10px;padding-top:24px;line-height:1.6;gap:10px}
  .resume-button{font-size:13px;margin-top:8px}
  .start-button{font-size:16px;min-height:56px}
  .game-screen{padding:16px 17px 18px;min-height:calc(100svh - 62px)}
  .game-layout{gap:0}
  .step-nav{margin-bottom:16px;gap:3px}.step-tab{font-size:12px;gap:5px;padding:0 2px;font-weight:700}
  .step-tab span{width:25px;height:25px;font-size:12px}.step-nav:before{top:12px}
  .step-heading{order:0;margin-bottom:14px}.step-counter{font-size:12px;margin-bottom:5px}.step-counter b{font-size:17px}
  .step-heading h1{font-size:26px;line-height:1.3;letter-spacing:-.04em}.step-description{font-size:13px;line-height:1.5;margin-top:6px}
  .scene-frame{order:1;border-radius:22px;max-width:410px;align-self:center;width:100%}
  .live-scene svg{max-height:285px}.scene-label{font-size:11px;bottom:9px;padding:5px 11px}
  .guide{order:2;padding:10px 5px 0;min-height:38px;gap:7px}.guide p{font-size:13px;line-height:1.5}
  .guide-star{font-size:20px}.pet-hint{order:3;font-size:12px;line-height:1.5;margin:3px 5px 0}
  .choice-fieldset{order:4;margin-top:13px}.choices{gap:8px}
  .choice-inner{gap:4px;padding:9px 2px 11px;min-height:136px;border-radius:13px}
  .choice-icon{width:51px;height:46px}.choice-text{gap:4px;width:100%;justify-items:center}
  .choice-text strong{font-size:14px;line-height:1.3;letter-spacing:-.025em;max-width:100%;word-break:normal;overflow-wrap:anywhere}
  .choice-text small{font-size:12px;line-height:1.4;padding:0 2px;max-width:100%;color:#63675b}
  .choice-check{top:6px;right:6px;width:15px;height:15px;font-size:10px}
  .game-controls{order:5;position:static;margin-top:17px;padding:0 0 calc(5px + env(safe-area-inset-bottom));gap:14px}
  .game-controls .primary-button{min-height:52px;font-size:15px;padding:10px 11px 10px 17px;max-width:none}
  .back-button{font-size:13px;padding-right:0}.illustration-note{order:6;font-size:12px;line-height:1.5;text-align:center;margin:8px 0 0}
  .result-screen{padding:25px 23px 30px;gap:30px;min-height:auto}
  .poster-wrap{max-width:330px}.poster-tap-note{font-size:12px;margin-top:13px}
  .result-kicker{font-size:13px;margin-bottom:9px}.result-copy h1{font-size:31px;line-height:1.4;max-width:none}
  .result-description{font-size:14px;line-height:1.8;margin-top:13px;max-width:none}
  .result-picks{gap:7px;margin:17px 0 21px}.result-picks li{font-size:12px;padding:6px 8px}
  .result-copy>.primary-button,.result-copy>.outline-button{max-width:none;font-size:15px;min-height:53px}
  .result-secondary{margin-top:16px}.result-secondary .text-button{font-size:13px}.result-footnote{font-size:12px;margin-top:15px}
  .toast{font-size:13px}.save-dialog h2{font-size:25px}.save-dialog p{font-size:13px}
}
@media(max-width:360px){
  .intro-screen{padding:18px 18px 0}.intro-copy h1{width:290px;max-width:100%;font-size:inherit}
  .intro-description{font-size:15px}.hero-art{margin-top:16px}.intro-scene svg{max-height:230px}
  .hero-word{font-size:11px}.hero-sticker{width:67px;height:67px;font-size:15px}
  .game-screen{padding-left:15px;padding-right:15px}.step-tab{font-size:11px}
  .step-heading h1{font-size:24px}.live-scene svg{max-height:249px}
  .choice-inner{min-height:133px}.choice-icon{width:45px;height:43px}
  .choice-text strong{font-size:14px}.choice-text small{font-size:12px}
  .guide p{font-size:13px}.game-controls{margin-top:15px}.result-copy h1{font-size:29px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.result-copy h1[data-mood=explore]{transform:none}}
