*{box-sizing:border-box}html{color-scheme:light;background:#faf7f0;color:#292420;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;line-height:1.8}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #af4b61;outline-offset:3px}.top{height:66px;border-bottom:1px solid #e5ded3;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 920px)/2));background:#faf7f0}.brand{text-decoration:none;font-weight:750;font-size:20px;letter-spacing:.06em}.language{font-size:12px;color:#766c62}#view{max-width:920px;margin:auto;padding:34px 22px 72px}.intro{max-width:620px;margin:0 auto 28px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.15em;color:#a05263;margin:0 0 9px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;line-height:1.45;letter-spacing:.02em}h1{font-size:clamp(29px,5vw,44px);margin-bottom:14px}.intro p{color:#675b52;font-size:15px}.lead-image{height:200px;display:grid;grid-template-columns:1fr 1fr;border-radius:16px;overflow:hidden;margin:24px 0}.lead-image img{width:100%;height:100%;object-fit:cover;object-position:50% 29%}.entry{max-width:620px;margin:auto;background:#fffdf9;border:1px solid #e7dfd4;border-radius:18px;padding:26px;box-shadow:0 8px 24px #4c382b05}.field{display:block;min-width:0;margin:0 0 20px}.field>span{display:block;font-size:13px;font-weight:700;margin-bottom:6px}.field input,.field select{width:100%;min-width:0;border:1px solid #d8cdbf;border-radius:8px;padding:11px;background:#fffefa;color:#292420;font-size:16px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.help{display:block;color:#85786b;font-size:12px;font-weight:400;line-height:1.7;margin-top:6px}.check{display:flex;align-items:center;gap:10px;font-size:13px;margin-bottom:14px}.check input{width:18px;height:18px;accent-color:#a63b55}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;border:0;text-decoration:none;border-radius:9px;min-height:48px;padding:12px 20px;font-weight:650}.primary{background:#9c3f54;color:white;width:100%}.secondary{border:1px solid #d9cdbd;background:#fffdf7;color:#59483c}.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.privacy{text-align:center;font-size:12px;color:#84766a;margin:14px 0 0}.err{color:#a02645;font-size:13px}.result{max-width:700px;margin:auto}.result-top{text-align:center;margin-bottom:24px}.result-top h1{font-size:43px;margin:4px 0}.percent{color:#a03d57;font-weight:750;font-size:20px;margin-bottom:8px}.nickname{font-size:16px;font-weight:650;margin-bottom:15px}.picture{position:relative;background:#eee5d8;border-radius:16px;overflow:hidden;width:100%;aspect-ratio:4/5;margin:0}.picture img{width:100%;height:100%;object-fit:cover;display:block}.picture .ask{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;background:#f3ede4}.sex{display:flex;justify-content:center;gap:10px;margin:14px 0 26px}.sex button{border:1px solid #daccbe;border-radius:24px;background:transparent;padding:8px 20px;font-size:13px}.sex button[aria-pressed=true]{color:#fff;border-color:#9c3f54;background:#9c3f54}.sub{font-size:17px;line-height:1.95}.rows{border-top:1px solid #dfd5c8;margin-top:28px}.row{display:grid;grid-template-columns:130px 1fr;gap:18px;border-bottom:1px solid #e4dbce;padding:22px 0}.row h3{font-size:12px;color:#956c58;line-height:1.85;margin:0}.row p{font-size:15px;line-height:2;margin:0;overflow-wrap:anywhere}.list{padding:4px 0;list-style:none}.list li{padding:13px 0 13px 22px;position:relative;font-size:14px}.list li:before{content:'·';position:absolute;left:3px;color:#a54760;font-weight:700}.why{background:#f0e9df;padding:17px 20px;border-radius:10px;margin:26px 0;font-size:12px;color:#796957}.why summary{cursor:pointer;font-size:13px;font-weight:650}.why p{margin:14px 0 0}.rank-title{font-size:20px;margin:38px 0 18px}.ranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rank{padding:0;background:#fffdf9;text-align:left;border:1px solid #e4d9cb;border-radius:12px;overflow:hidden}.rank img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block}.rank .placeholder{display:block;background:#e9dfd0;aspect-ratio:4/5}.rank span,.rank b{display:block;padding:0 12px}.rank b{font-size:15px;margin-top:10px}.rank span{font-size:11px;line-height:1.6;margin:5px 0 12px;color:#936952}.all-link{display:block;text-align:center;margin:30px 0;font-size:13px;color:#7d5b4c}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:8px;background:#292420;color:#fff;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s}.toast.on{opacity:1}.gallery-title{margin:28px 0 16px}.gallery .ranks{grid-template-columns:repeat(4,minmax(0,1fr))}.gallery .rank{color:inherit;text-decoration:none}.top-link{font-size:13px;text-decoration:none;display:block;margin-bottom:24px;color:#86664f}
@media(min-width:760px){.result{max-width:650px}.result .picture{max-width:520px;margin:auto}.result-top h1{font-size:48px}}
@media(max-width:520px){#view{padding:26px 18px 50px}.entry{padding:21px 17px}.two{gap:12px}.row{grid-template-columns:1fr;gap:8px;padding:18px 0}.result-top h1{font-size:37px}.ranks{gap:9px}.rank b{font-size:13px;padding:0 8px}.rank span{padding:0 8px}.gallery .ranks{grid-template-columns:repeat(2,minmax(0,1fr))}.lead-image{height:160px}.actions{grid-template-columns:1fr}.picture{border-radius:12px}}

.picture.square{aspect-ratio:1/1;margin-bottom:24px}.home .rank{text-decoration:none}

.face-dialog{width:min(92vw,460px);border:1px solid #daccbe;border-radius:18px;padding:28px;background:#faf7f0;color:#292420;max-height:90vh;overflow:auto}.face-dialog::backdrop{background:#29242088}.face-dialog h2{font-size:24px}.face-options{display:grid;gap:12px;margin:22px 0}.face-status{text-align:center}.face-dialog>.secondary{margin-top:12px}

.face-diagram{margin:24px 0;padding:20px;border:1px solid #daccbe;border-radius:12px}.face-diagram summary{cursor:pointer;font-weight:700}.face-canvas{background:#fff;max-width:520px;margin:20px auto}.face-canvas canvas{display:block;width:100%;height:auto}.face-legend{list-style:none;padding:0}.face-legend li{border-top:1px solid #e4d9cb;padding:18px 0;font-size:14px}.face-legend p{margin:8px 0 0;line-height:1.9}.face-legend b{color:#9c3f54}
fieldset.birth-group{border:1px solid var(--line,#d8d0c4);border-radius:12px;padding:18px;margin:18px 0;min-width:0}fieldset.birth-group legend{padding:0 8px;font-weight:700}

.life-graph{margin:24px 0}.life-graph svg{display:block;width:100%;height:auto;overflow:visible}.graph-grid{stroke:#e5ddd1;stroke-width:.7}.graph-now{stroke:#cfc6b6;stroke-width:.7;stroke-dasharray:2 2}.graph-line{fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.graph-axis{font-size:7px;fill:#847665}.graph-year{text-anchor:middle;font-size:8px;fill:#9a8c7b}.graph-year.strong{fill:#655548;font-weight:700}.graph-note{font-size:12px;line-height:1.8;padding:14px;background:#f0e9df;border-radius:8px}.graph-key{list-style:none;padding:0;margin:24px 0}.graph-key li{position:relative;padding:16px 0 16px 24px;border-bottom:1px solid #e4dbce}.graph-key i{position:absolute;left:0;top:25px;width:10px;height:10px;border-radius:50%}.graph-key b{font-size:15px}.graph-key span{font-size:11px;color:#847665;margin-left:10px}.graph-key em{display:block;font-size:13px;font-style:normal;color:#766653;margin-top:5px}.graph-key p{margin:7px 0 0;font-size:13px;line-height:1.9}.graph-key small{font-size:11px;color:#847665}

.meter{padding:0 24px 26px}.meter-summary{line-height:1.8}.meter-ladder{display:flex;list-style:none;padding:0;gap:4px;font-size:12px}.meter-ladder li{flex:1;text-align:center;padding:10px 2px;background:#ebe5dd;border-radius:5px}.meter-ladder .active{background:#9c3f54;color:white;font-weight:700}.meter-bars{display:grid;gap:16px}.meter-label{display:flex;align-items:baseline;gap:8px}.meter-label span{font-size:12px;color:#75675e}.meter-label b{margin-left:auto}.meter-track{height:11px;border-radius:9px;background:#e7e0d6;margin:7px 0;overflow:hidden}.meter-track i{display:block;height:100%;border-radius:9px}.meter-bar small{color:#8c5552}.meter-choices{padding:24px}.meter-choices .active{outline:2px solid #9c3f54}.meter-bar.active strong{color:#9c3f54}

.result-top h1{text-wrap:balance}
 .animal-picture{position:relative;width:min(100%,420px);margin:28px auto;text-align:center}.animal-picture img{display:block;width:100%;height:auto;border-radius:50%;background:var(--animal-light)}.animal-badge{position:absolute;bottom:45px;right:24px;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--animal-color);color:var(--animal-ink);font:bold 42px serif;border:4px solid #faf7f0}.animal-picture figcaption{margin-top:18px;font:24px serif}.person-scene{text-align:center;padding:24px 10px;background:#f4ede3;border-radius:16px;line-height:1.7}.person-portrait figcaption{text-align:center;font-size:13px;color:#79695c;padding:10px}.letter-portrait{min-height:360px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:45px;background:#eee4d6;padding:36px;text-align:center}.letter-portrait strong{font:40px serif}.letter-portrait span{font:30px serif}.celebrities{margin:32px 0;padding:24px 0;border-top:1px solid #dfd3c4}.celebrities h2{font-size:20px}.celebrity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 8px;margin:24px 0}.celebrity-grid a{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:inherit;text-decoration:none;min-width:0;font-size:13px;overflow-wrap:anywhere}.celebrity-grid img,.celebrity-initial{width:72px;height:72px;object-fit:cover;border-radius:50%}.celebrity-initial{display:grid;place-items:center;background:#eadfd1;font:23px serif}.photo-credits{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.photo-credits summary{cursor:pointer}.photo-credits a{color:inherit}.photo-credits p{margin:12px 0}
 .result-callout{font-size:clamp(21px,4.8vw,30px);font-weight:650;line-height:1.6;text-align:center;margin:22px auto 32px;max-width:680px;overflow-wrap:anywhere}

html[lang="en"] h1,html[lang="en"] h2{font-family:Georgia,"Times New Roman",serif;overflow-wrap:break-word}
.choice-group{border:1px solid #d8d0c4;border-radius:12px;padding:18px;margin:18px 0;min-width:0}.choice-group legend{padding:0 8px;font-weight:700;font-size:14px}.choice-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:8px}.choice-pill{display:flex;align-items:center;gap:8px;border:1px solid #d8cdbf;border-radius:10px;padding:10px 12px;background:#fffefa;font-size:13.5px;line-height:1.45;cursor:pointer}.choice-pill:has(input:checked){border-color:#9c3f54;background:#fbf0f2;color:#6e2436;font-weight:650}.choice-pill input{accent-color:#9c3f54;margin:0;flex:0 0 auto}.lang-foot{text-align:center;padding:0 22px 44px;font-size:12px;color:#766c62}
@media(max-width:480px){.choice-pills{grid-template-columns:1fr}}
@media(max-width:420px){.two{grid-template-columns:1fr;gap:0}}
