:root{font-family:Inter,"Helvetica Neue",Arial,"Noto Sans JP",sans-serif;color:#202b38;background:#f6f7f9;font-synthesis:none;--blue:#376be8;--muted:#78818e}*{box-sizing:border-box}body{margin:0;min-width:320px}button,a,textarea{-webkit-tap-highlight-color:transparent}button,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #78a0ff;outline-offset:5px}.header{height:94px;max-width:1240px;margin:auto;padding:0 42px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:14px;letter-spacing:2px;font-weight:700;text-decoration:none;color:inherit}.brand-icon{display:block;width:32px;height:32px;flex-shrink:0;color:var(--blue)}.brand-ai{font-size:10px;letter-spacing:0;color:var(--blue);border:1px solid #ccdaf5;border-radius:5px;padding:3px 5px}.header-note{font-size:11px;color:var(--muted);letter-spacing:1px}main{min-height:calc(100svh - 166px);display:flex;align-items:center;justify-content:center;padding:28px 24px 60px}footer{max-width:1156px;margin:auto;border-top:1px solid #e3e7ec;padding:24px 0;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#939ba6}.home{width:1050px;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:40px}.eyebrow{font-size:10px;letter-spacing:2.2px;color:var(--blue);font-weight:600;display:flex;align-items:center;gap:9px}.eyebrow:before{content:'';width:6px;height:6px;background:var(--blue);border-radius:50%}h1{font-size:clamp(32px,3.5vw,48px);line-height:1.65;letter-spacing:-1.5px;font-weight:600;margin:24px 0}h1 em{font-style:normal;color:var(--blue)}.intro{font-size:14px;line-height:2.1;color:#707a87;margin-bottom:32px}.primary{background:var(--blue);border:1px solid var(--blue);color:white;padding:18px 26px;border-radius:10px;font-size:14px;font-weight:600;box-shadow:0 7px 18px #376be81a;transition:background .2s,transform .2s;display:inline-flex;align-items:center;justify-content:center;gap:42px;min-height:54px}.primary:hover:not(:disabled){background:#285bd0;transform:translateY(-1px)}.meta{display:flex;gap:22px;margin-top:21px;color:#8a929d;font-size:11px}.visual{height:440px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#e7edf9 0%,transparent 66%)}.orb{width:260px;height:300px;position:relative;border-radius:48% 52% 56% 44% / 42% 43% 57% 58%;background:radial-gradient(at 30% 24%,#fff 0%,#e2eaff 24%,#b4c9fa 45%,#7598df 66%,#416dc8 82%,#c8d7f3 100%);box-shadow:inset -12px -14px 24px #416dc855,inset 10px 12px 32px #fff,0 25px 50px #8fa9df35;animation:float 9s ease-in-out infinite;transform:rotate(-17deg)}.orb:after{content:'';position:absolute;inset:18px;border:1px solid #ffffff65;border-radius:inherit;transform:rotate(30deg)}.orbit{position:absolute;width:380px;height:380px;border:1px solid #d9e0ed;border-radius:50%;transform:rotateX(55deg) rotate(-30deg)}.orbit.two{width:420px;height:420px;transform:rotateY(60deg) rotate(35deg)}.visual-label{position:absolute;bottom:14px;font-size:9px;letter-spacing:2.5px;color:#8c9ab3}.visual-dot{position:absolute;left:26px;top:130px;width:6px;height:6px;border-radius:50%;background:#8fa7d5}.panel{width:680px;animation:appear .35s ease}.topline{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8a94a2;letter-spacing:1.5px}.topline strong{color:var(--blue);font-size:13px}.track{height:3px;background:#e1e6ee;border-radius:5px;overflow:hidden;margin-top:16px}.fill{height:100%;background:var(--blue);transition:width .3s}.question-card{margin-top:56px}.step{color:var(--blue);font-size:11px;letter-spacing:2px}.question{font-size:25px;line-height:1.9;letter-spacing:.2px;font-weight:500;margin:16px 0 44px;min-height:96px}.hint{font-size:12px;color:var(--muted);text-align:center}.choices{display:flex;justify-content:space-between;align-items:center;max-width:530px;margin:30px auto 16px;gap:12px}.choice{width:66px;height:66px;flex-shrink:0;border-radius:50%;border:1.5px solid #b7c8e9;background:transparent;color:#8299c2;transition:all .18s}.choice:nth-child(2),.choice:nth-child(4){width:58px;height:58px}.choice:nth-child(3){width:50px;height:50px;border-color:#c7cdd5;color:#a1a8b2}.choice:hover:not(:disabled){background:#eaf0ff;border-color:var(--blue)}.choice.selected{background:var(--blue);color:white;border-color:var(--blue);box-shadow:0 0 0 6px #376be810}.choice.selected:after{content:'✓';font-size:22px}.choice.selected span{display:none}.choice:disabled{opacity:1}.scale-labels{max-width:550px;margin:auto;display:flex;justify-content:space-between;color:#7a879b;font-size:10px;line-height:1.8}.scale-labels span:last-child{text-align:right}.selection-label{height:20px;text-align:center;margin:20px 0 0;font-size:11px;color:var(--blue)}.question-bottom{margin-top:54px;border-top:1px solid #e2e6ec;padding-top:23px;display:flex;align-items:center;justify-content:space-between}.text-button{border:0;background:none;color:#788495;padding:10px 0;font-size:12px}.small-note{font-size:10px;color:#969ea9}.support{font-size:13px;line-height:1.9;color:#77818e;margin:-20px 0 22px}textarea{resize:vertical;width:100%;min-height:170px;border:1px solid #dce2ec;border-radius:12px;padding:20px;background:#fff;font-size:14px;line-height:1.9;color:#253247}textarea::placeholder{color:#abb3bf}.privacy{font-size:10px;color:#8b95a3;line-height:1.8;margin:10px 0 24px}.generate{width:100%;gap:18px}.loading{text-align:center;width:520px}.loading .visual{height:300px}.loading .orb{width:170px;height:190px;filter:blur(2px);animation:float 4s ease-in-out infinite}.loading .orbit{width:240px;height:240px}.loading .orbit.two{width:270px;height:270px}.loading h2{font-size:22px;font-weight:500;margin:22px 0 12px}.loading-message{font-size:12px;color:#7b8798;height:22px}.loading-progress{max-width:350px;margin:30px auto}.loading-progress .topline{font-size:9px}.result{width:640px;text-align:center}.result .eyebrow{justify-content:center}.result h1{font-size:30px;letter-spacing:0;margin:16px 0 28px}.result-image{width:100%;max-height:480px;object-fit:contain;border-radius:14px;background:#edf0f5;animation:appear .7s ease;display:block}.description{white-space:pre-wrap;line-height:1.9;color:#6d7889;font-size:14px;margin:24px 0 30px}.result-actions{display:flex;gap:12px;justify-content:center}.secondary{background:white;color:#53647d;border:1px solid #dce2eb;padding:16px 22px;border-radius:10px;font-size:13px;min-height:54px}.retry{display:block;margin:22px auto 0}.save-status{font-size:11px;color:#7a879b;min-height:16px}.fallback{padding:80px 20px;border:1px solid #dce2eb;border-radius:14px;color:#8490a1;font-size:13px} @keyframes float{0%,100%{transform:translateY(0) rotate(-17deg)}50%{transform:translateY(-15px) rotate(-7deg)}}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1000px){.home{padding-bottom:30px}.home .primary{min-width:245px}}@media(max-width:700px){.header{height:76px;padding:0 22px}.header-note{font-size:9px}.brand{font-size:11px;gap:7px}.brand-icon{width:27px;height:27px}main{padding:20px 24px 40px;min-height:calc(100svh - 145px)}footer{margin:0 24px;font-size:8px;padding:23px 0}.home{display:flex;flex-direction:column-reverse;gap:14px;max-width:440px}.visual{height:235px;width:100%}.orb{width:145px;height:170px}.orbit{width:230px;height:230px}.orbit.two{width:250px;height:250px}.visual-label{bottom:0;font-size:7px}.home h1{font-size:31px;line-height:1.55;margin:18px 0}.home .intro{font-size:12px;margin:0 0 24px}.home .primary{width:100%}.home .meta{justify-content:center;font-size:10px}.eyebrow{font-size:9px}.question-card{margin-top:36px}.question{font-size:21px;min-height:120px;margin-bottom:28px}.choices{gap:8px;margin-top:28px}.choice{width:54px;height:54px}.choice:nth-child(2),.choice:nth-child(4){width:48px;height:48px}.choice:nth-child(3){width:44px;height:44px}.scale-labels{font-size:9px}.question-bottom{margin-top:34px}.result-actions{flex-direction:column}.result h1{font-size:26px}.loading h2{font-size:20px}}@media(max-width:355px){main{padding-left:16px;padding-right:16px}.choice{width:50px;height:50px}.choices{gap:6px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Progressive image reveal: large mosaic blocks and blur resolve together. */
.reveal{width:100%;max-width:440px;aspect-ratio:4/3;margin:0 auto 28px;overflow:hidden;border-radius:16px;border:1px solid #e1e6ee;background:radial-gradient(ellipse at 35% 30%,#dce6f9,#bfcde6 48%,#edf0f5);isolation:isolate}
.reveal canvas{display:block;width:100%;height:100%;opacity:0;filter:blur(18px)}
@media(max-width:700px){.reveal{max-width:360px;margin-bottom:24px}}


/* Six supplied sample portraits float independently on the title screen. */
.portrait-gallery{position:relative;width:100%;height:440px;isolation:isolate;background:radial-gradient(ellipse at center,#e6ecf8 0%,transparent 68%)}
.portrait-card{position:absolute;width:31%;aspect-ratio:1;border-radius:16px;padding:5px;background:#fff;box-shadow:0 12px 28px #253f6a17,0 2px 5px #253f6a0a;transform:rotate(var(--tilt));animation:portrait-drift var(--duration,8s) ease-in-out infinite;animation-delay:var(--delay,0s);will-change:transform}
.portrait-card img{display:block;width:100%;height:100%;object-fit:cover;border-radius:12px;user-select:none}
.portrait-1{left:2%;top:11%;--tilt:-8deg;--duration:8.6s;--delay:-2s;z-index:3}
.portrait-2{left:36%;top:3%;--tilt:5deg;--duration:9.4s;--delay:-5s;z-index:2}
.portrait-3{left:67%;top:19%;--tilt:9deg;--duration:7.8s;--delay:-1s;z-index:1}
.portrait-4{left:3%;top:53%;--tilt:-5deg;--duration:9.1s;--delay:-4s;z-index:2}
.portrait-5{left:36%;top:45%;--tilt:6deg;--duration:8.2s;--delay:-3s;z-index:3}
.portrait-6{left:66%;top:60%;--tilt:-7deg;--duration:10s;--delay:-6s;z-index:2}
.gallery-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:8px;letter-spacing:2.4px;color:#8996ab}
@keyframes portrait-drift{0%,100%{transform:translate3d(0,0,0) rotate(var(--tilt))}50%{transform:translate3d(3px,-12px,0) rotate(calc(var(--tilt) + 3deg))}}
@media(max-width:700px){.portrait-gallery{height:260px;max-width:380px;margin:0 auto 8px}.portrait-card{width:29%;padding:4px;border-radius:12px}.portrait-card img{border-radius:9px}.portrait-1{left:3%;top:9%}.portrait-2{top:1%}.portrait-3{left:68%;top:13%}.portrait-4{top:51%}.portrait-5{top:45%}.portrait-6{top:51%}.gallery-caption{font-size:7px;letter-spacing:1.7px}}
@media(prefers-reduced-motion:reduce){.portrait-card{animation:none;will-change:auto}}
