:root{font-family:"Zen Maru Gothic","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#51413f;background:#fff8f5;font-synthesis:none;text-rendering:optimizeLegibility;--pink:#d97f8e;--pink-dark:#bd6476;--rose:#f7e1df;--cream:#fff8f2;--ink:#51413f;--muted:#978582;--line:#f0e5df}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 78% 15%,#fff0e9 0,transparent 32%),#fffaf7}.app-shell{width:min(100% - 48px,1000px);min-height:100vh;margin:auto;display:flex;flex-direction:column}.site-header{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f4eae5}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:700;letter-spacing:.04em}.brand-mark{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#f8e3e2;color:var(--pink);font-size:19px}.header-note,.site-footer{color:var(--muted);font-size:12px;letter-spacing:.06em}.screen{flex:1}.intro-screen{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:40px;min-height:610px;padding:48px 4.5%}.eyebrow{font-size:11px;letter-spacing:.19em;font-weight:700;color:var(--pink);margin:0 0 18px}.intro-copy h1{font-size:clamp(43px,7vw,72px);line-height:1.25;letter-spacing:.08em;margin:0 0 22px;font-weight:700}.intro-copy h1 span{color:var(--pink)}.intro-lead{font-size:18px;line-height:1.9;font-weight:600;margin:0 0 9px}.intro-description{font-size:13px;color:var(--muted);line-height:1.9;margin:0 0 29px}.button{min-height:54px;padding:0 29px;border:0;border-radius:999px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:transform .18s,box-shadow .18s}.button:hover{transform:translateY(-2px);box-shadow:0 8px 20px #d9818e38}.button:focus-visible,.answer-button:focus-visible,.text-button:focus-visible{outline:3px solid #e7aab1;outline-offset:3px}.button-primary{background:var(--pink);color:white;box-shadow:0 5px 15px #d9818e2e}.button span{margin-left:14px;font-size:19px}.time-note{color:#ad9995;font-size:11px;margin:13px 0 0 14px}.hero-art{height:410px;position:relative;display:grid;place-items:center}.art-sun{position:absolute;width:260px;height:260px;border-radius:50%;background:#f8e8d8;top:48px;left:50%;transform:translateX(-50%)}.art-orbit{position:absolute;border:1px solid #e8b8b4;border-radius:50%;transform:rotate(-28deg)}.orbit-one{width:340px;height:180px}.orbit-two{width:300px;height:300px;border-color:#e9cec0}.art-heart{z-index:1;width:158px;height:158px;display:grid;place-items:center;background:#f2b8bb;border-radius:48% 52% 50% 50%;color:#fff6f1;font-size:100px;box-shadow:inset -12px -12px 0 #eaa8ad,0 18px 35px #cd8c8b30;transform:rotate(-8deg)}.art-spark{position:absolute;color:var(--pink);font-size:35px}.spark-one{top:45px;right:39px}.spark-two{bottom:70px;left:32px;color:#d8a887}.art-caption{position:absolute;right:2px;bottom:25px;font-family:Georgia,serif;font-size:13px;color:#bd9990;line-height:1.5;letter-spacing:.04em}.site-footer{height:54px;display:flex;align-items:center;justify-content:center;gap:8px;border-top:1px solid #f4eae5}.site-footer span{color:var(--pink)}
.quiz-screen{width:min(100%,660px);margin:58px auto 64px}.quiz-topline{display:flex;justify-content:space-between;align-items:center}.quiz-topline .eyebrow{margin:0}.question-count{font-size:11px;letter-spacing:.14em;color:var(--muted);font-weight:700}.progress-track{height:6px;background:#f2e8e3;border-radius:9px;margin:17px 0 31px;overflow:hidden}.progress-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#e8a2a8,#d77f8e);border-radius:9px;transition:width .35s}.question-card{background:#fff;border:1px solid #f1e6e0;border-radius:24px;padding:clamp(24px,6vw,48px);box-shadow:0 15px 45px #89685b0c}.question-number{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#f9e9e5;color:var(--pink-dark);font-weight:700;font-size:14px}.question-card h2{font-size:clamp(20px,4vw,26px);line-height:1.65;margin:18px 0 5px}.question-hint{font-size:12px;color:var(--muted);margin:0 0 23px}.answer-list{display:grid;gap:11px}.answer-button{width:100%;min-height:61px;display:flex;align-items:center;text-align:left;gap:14px;padding:13px 17px;border-radius:14px;border:1px solid var(--line);background:#fffdfa;color:var(--ink);font:inherit;font-size:14px;line-height:1.6;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}.answer-button:hover{border-color:#e5a6aa;background:#fff7f5;transform:translateX(3px)}.answer-letter{flex:0 0 29px;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#f8eeea;color:#bd8a85;font-size:12px;font-weight:700}.text-button{display:block;margin:22px auto 0;background:none;border:0;color:#a38e89;text-decoration:underline;text-underline-offset:4px;font:inherit;font-size:12px;cursor:pointer}
.result-screen{width:min(100%,760px);margin:44px auto 55px}.result-heading{text-align:center;margin-bottom:25px}.result-heading .eyebrow{margin-bottom:8px}.result-heading h2{font-size:28px;margin:0 0 3px;letter-spacing:.08em}.result-heading>p:last-child{font-size:13px;color:var(--muted);margin:0}.result-card{display:grid;grid-template-columns:220px 1fr;overflow:hidden;background:#fff;border:1px solid #f1e4de;border-radius:24px;box-shadow:0 15px 45px #89685b0c}.result-art{position:relative;min-height:100%;display:grid;place-items:center;background:linear-gradient(155deg,#f8e3df,#f7eee2)}.result-symbol{width:112px;height:112px;display:grid;place-items:center;background:#e9a6aa;border-radius:48% 52% 49% 51%;color:#fff8f2;font-size:74px;box-shadow:inset -8px -9px 0 #dc929a;transform:rotate(-9deg)}.result-spark{position:absolute;top:24%;right:23%;font-size:29px;color:#c88975}.result-content{padding:29px 32px}.type-kicker{font-size:10px;letter-spacing:.14em;color:var(--pink-dark);font-weight:700;margin:0 0 3px}.result-content h3{font-size:28px;margin:0;letter-spacing:.04em}.type-tagline{color:#9b7974;font-size:13px;font-weight:600;margin:4px 0 21px}.result-details{display:grid;gap:13px}.result-details section h4{font-size:13px;margin:0 0 3px}.result-details section h4 span{color:var(--pink);margin-right:5px}.result-details section p{font-size:12px;color:#776763;line-height:1.85;margin:0}.advice-box{padding:12px 14px;background:#fff7f2;border-radius:12px}.result-footnote{font-size:10px;line-height:1.8;color:#a28f89;text-align:center;margin:13px auto 18px;max-width:580px}.restart-button{display:block;margin:auto}.screen[hidden]{display:none}
@media(max-width:650px){.app-shell{width:min(100% - 32px,520px)}.site-header{height:66px}.header-note{font-size:10px}.brand{font-size:13px}.brand-mark{width:28px;height:28px}.intro-screen{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px;min-height:auto;padding:42px 2% 30px}.intro-copy h1{font-size:52px;margin-bottom:13px}.intro-lead{font-size:15px}.intro-description{font-size:12px;margin-bottom:20px}.hero-art{order:-1;height:230px;margin-bottom:10px}.art-sun{width:160px;height:160px;top:28px}.art-orbit{width:230px;height:132px}.orbit-two{width:190px;height:190px}.art-heart{width:105px;height:105px;font-size:69px}.spark-one{top:14px;right:19%}.spark-two{bottom:13px;left:16%}.art-caption{right:8%;bottom:6px;font-size:10px}.button{min-height:52px}.quiz-screen{margin:32px auto 42px}.progress-track{margin:13px 0 22px}.question-card{border-radius:19px;padding:24px 19px}.question-card h2{margin-top:13px}.answer-button{min-height:58px;font-size:13px;padding:11px 12px}.result-screen{margin:31px auto 39px}.result-heading h2{font-size:24px}.result-card{grid-template-columns:1fr}.result-art{min-height:145px}.result-symbol{width:80px;height:80px;font-size:54px}.result-spark{top:18%;right:29%}.result-content{padding:23px 20px}.result-content h3{font-size:25px}.type-tagline{margin-bottom:16px}.result-details{gap:12px}.site-footer{height:45px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Character artwork uses the complete source sheets without cropping or distortion. */
.hero-art .art-sun{z-index:0}
.hero-art .art-caption{display:none}
.start-characters{position:relative;z-index:1;width:min(100%,430px);min-width:0;display:flex;align-items:center;justify-content:center;gap:12px}
.character-figure,.result-character{margin:0;text-align:center;color:#987974;font-size:11px;font-weight:700;letter-spacing:.08em}
.character-figure{flex:1 1 0;width:47%;min-width:0}
.character-figure img{display:block;width:100%;max-width:100%;height:300px;object-fit:contain;border:0;border-radius:0;background:transparent;box-shadow:none}
.character-figure figcaption,.result-character figcaption{margin-top:6px}
.guide-card{display:flex;align-items:center;gap:14px;margin:-13px 0 20px;padding:10px 16px;background:#fff4ef;border:1px solid #f1e2dc;border-radius:16px}
.guide-card img{flex:0 0 96px;width:96px;height:105px;object-fit:contain;border-radius:0;background:transparent}
.guide-card p{margin:0;color:#806e68;font-size:13px;line-height:1.7}
.guide-card strong{font-size:14px;color:#bd7c79}
.result-art{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px 10px}
.result-character{flex:1 1 0;width:47%;min-width:0;font-size:10px}
.result-character img{display:block;width:100%;max-width:100%;height:160px;object-fit:contain;border-radius:0;background:transparent;box-shadow:none}
.result-details .miru-quote{padding:14px 16px;background:#fff0ef;border:1px solid #f3ddda;border-radius:14px}
.result-details .miru-quote h4 span{color:#bd7c79}
@media(max-width:650px){
  .hero-art{height:250px}
  .start-characters{width:min(100%,390px);gap:9px}
  .character-figure{width:46%;font-size:10px}
  .character-figure img{height:210px;border-radius:0}
  .guide-card{margin:-5px 0 15px;padding:8px 12px}
  .guide-card img{flex-basis:84px;width:84px;height:94px}
  .guide-card p{font-size:12px}
  .result-art{min-height:0;padding:16px;gap:10px}
  .result-character{width:min(42%,170px)}
  .result-content{padding:23px 18px}
  .result-details{gap:15px}
  .result-details section h4{font-size:14px;line-height:1.6}
  .result-details section p{font-size:13px;line-height:1.9}
  .result-details .miru-quote{padding:13px 14px}
}

/* A calm, starlit interlude between the final answer and the result. */
.analysis-screen{width:min(100%,760px);min-height:590px;margin:35px auto 48px;display:grid;place-items:center}
.analysis-panel{position:relative;isolation:isolate;width:100%;min-height:520px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:42px 28px;border:1px solid #ead8ef;border-radius:30px;background:radial-gradient(ellipse at 50% 44%,#4e3c68 0,#302641 56%,#241f32 100%);box-shadow:0 18px 50px #604b6c1c;color:#fff8fc;text-align:center}
.analysis-sky{position:absolute;z-index:-1;inset:0;overflow:hidden;pointer-events:none}
.analysis-glow{position:absolute;top:50%;left:50%;width:168px;height:168px;border-radius:50%;background:radial-gradient(circle,#ffd9ed 0,#e9b8ee55 28%,#c5a4ef00 72%);filter:blur(3px);transform:translate(-50%,-50%);animation:analysis-breathe 3.4s ease-in-out infinite}
.analysis-orbit{position:absolute;top:50%;left:50%;border:1px solid #f8d9f257;border-radius:50%;transform:translate(-50%,-50%) rotate(-24deg)}
.orbit-a{width:310px;height:145px;animation:analysis-orbit 15s linear infinite}
.orbit-b{width:245px;height:245px;border-color:#f1c8e52e;transform:translate(-50%,-50%);animation:analysis-orbit 21s linear infinite reverse}
.analysis-star{position:absolute;color:#ffe2f4;text-shadow:0 0 12px #ffd3f2;font-size:20px;animation:analysis-twinkle 3.6s ease-in-out infinite}
.star-a{top:18%;left:22%}.star-b{top:25%;right:21%;animation-delay:-1.1s}.star-c{top:47%;left:13%;font-size:36px;animation-delay:-2s}.star-d{right:15%;bottom:28%;animation-delay:-.7s}.star-e{left:27%;bottom:18%;font-size:30px;animation-delay:-2.6s}.star-f{right:30%;top:13%;animation-delay:-1.8s}
.analysis-eyebrow{margin:0 0 12px;color:#f3c8e5;font-size:10px;font-weight:700;letter-spacing:.22em}
.analysis-panel h2{margin:0;color:#fff9fd;font-size:clamp(21px,4vw,28px);line-height:1.6;letter-spacing:.06em;text-shadow:0 0 22px #e9b5ec55}
.analysis-message{min-height:3.2em;display:grid;place-items:center;margin:23px 0 8px;color:#ffe0ef;font-size:clamp(15px,3vw,18px);font-weight:700;line-height:1.8;text-shadow:0 0 15px #ffc9ed72}
.analysis-caption{margin:0;color:#e3d6e9;font-size:12px;line-height:1.8}
@keyframes analysis-breathe{0%,100%{opacity:.62;transform:translate(-50%,-50%) scale(.88)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.14)}}
@keyframes analysis-orbit{to{rotate:336deg}}
@keyframes analysis-twinkle{0%,100%{opacity:.4;transform:scale(.78)}50%{opacity:1;transform:scale(1.13)}}
@media(max-width:650px){.analysis-screen{min-height:calc(100svh - 130px);margin:20px auto 26px}.analysis-panel{min-height:490px;padding:34px 22px;border-radius:25px}.analysis-glow{width:140px;height:140px}.orbit-a{width:260px;height:125px}.orbit-b{width:210px;height:210px}.analysis-caption{max-width:250px}}
@media(prefers-reduced-motion:reduce){.analysis-glow,.analysis-orbit,.analysis-star{animation:none!important}.analysis-glow{opacity:.78}.analysis-orbit{rotate:0deg}}

.site-header{gap:14px}
.header-note{margin-left:auto}
.audio-toggle{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;padding:0 13px;border:1px solid #efd9dc;border-radius:999px;background:#fff8f7;color:#9e6e75;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.audio-toggle:hover{transform:translateY(-1px);border-color:#e8b9c1;background:#fff1f2}
.audio-toggle[aria-pressed="true"]{border-color:#dfaeb8;background:#f8e5e8;color:#995b68}
.audio-toggle:focus-visible{outline:3px solid #e7aab1;outline-offset:3px}
@media(max-width:650px){.site-header{gap:8px}.header-note{display:none}.audio-toggle{min-height:35px;padding:0 10px;font-size:11px}.brand{gap:7px;font-size:12px}}
