:root{font-family:Segoe UI,Microsoft YaHei,PingFang SC,sans-serif;font-size:100%;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--font-small: 1rem;--font-body: 1.125rem;--font-lead: 1.25rem;--font-heading: clamp(1.5rem, 1.1rem + 1vw, 1.875rem);--font-result: clamp(1.75rem, 1.3rem + 1.4vw, 2rem);--font-hero: clamp(2rem, 1.25rem + 2vw, 3rem);--line-body: 1.8;--line-control: 1.5;--page: #101318;--surface: #1c222c;--surface-hover: #282f3a;--text: #f2f0eb;--text-secondary: #d7dce5;--muted: #c3c9d3;--accent: #f1c78c;--accent-ink: #231e16;--border: #687484;--rule: #464e5a;color:var(--text);background:var(--page)}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;font-size:var(--font-body);line-height:var(--line-body)}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{min-width:44px;min-height:44px;border:0;background:none;color:inherit;cursor:pointer;line-height:var(--line-control)}button:disabled{color:var(--muted);cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}a{color:inherit;text-decoration:none}svg{display:block;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1,h2,h3,p,button,a,summary,.landing-footnote,.toast{overflow-wrap:anywhere}::selection{color:var(--accent-ink);background:var(--accent)}.app{display:flex;flex-direction:column;min-height:100svh}.primary-button,.outline-button{display:inline-flex;align-items:center;justify-content:center;gap:1rem;min-height:58px;padding:1rem 1.5rem;border:1px solid transparent;border-radius:8px;font-size:var(--font-body);line-height:var(--line-control);font-weight:600;transition:background .18s,transform .18s}.primary-button{background:var(--accent);color:var(--accent-ink)}.primary-button:hover:not(:disabled){background:#ffdbab;transform:translateY(-1px)}.primary-button:disabled{border-color:#77818e;background:#3a414c;color:#d7dce5}.outline-button{border-color:var(--border);color:var(--text)}.outline-button:hover:not(:disabled){background:var(--surface-hover)}.primary-button svg,.outline-button svg{width:24px;height:24px}.quiet-button{padding:.625rem .25rem;font-size:var(--font-small);color:var(--muted)}.quiet-button:hover:not(:disabled){color:var(--text)}.landing{min-height:100svh;position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr auto;align-items:center;gap:2rem;padding:4rem 8% 1.75rem;background:var(--page)}.landing-art{position:absolute;z-index:-2;inset:0 20% 0 0}.landing-art img{width:100%;height:100%;object-fit:cover;object-position:53% center;display:block}.landing-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#10131800 26%,#101318d9 61%,#101318 87%),linear-gradient(0deg,#101318,#10131800 27% 86%,#10131840)}.landing-content{position:relative;grid-column:2;min-width:0;width:min(100%,28rem);justify-self:end;padding:1.75rem 0}.landing-kicker{font-size:var(--font-small);letter-spacing:.2em;color:#edcfaa;margin-bottom:1.25rem}.landing h1{font-size:var(--font-hero);line-height:1.45;letter-spacing:.025em;font-weight:600;margin-bottom:1.5rem}.landing-description{color:var(--text-secondary);line-height:var(--line-body);font-size:var(--font-body);margin-bottom:2rem}.start-button{width:min(100%,20rem);justify-content:space-between}.landing-note{width:min(100%,20rem);margin:1rem 0 0;color:var(--muted);font-size:var(--font-small);line-height:1.75;text-align:center}.landing-footnote{grid-column:1 / -1;display:block;position:relative;width:100%;text-align:center;color:var(--muted);font-size:var(--font-small);line-height:1.75}.simple-header{width:100%;max-width:50rem;margin:0 auto;padding:1.25rem 1.5rem .25rem;text-align:center}.simple-header button{padding:.625rem .75rem;color:var(--text-secondary);letter-spacing:.15em;font-size:var(--font-small)}.simple-footer{padding:1.5rem min(1.5rem,6vw) 1.75rem;text-align:center;color:var(--muted);font-size:var(--font-small);line-height:1.75;overflow-wrap:anywhere}.error-message{position:relative;z-index:5;width:calc(100% - 2rem);max-width:46rem;margin:1rem auto;padding:.75rem .75rem .75rem 1rem;display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;background:#30281e;color:#ffe0b5;border:1px solid #997747;border-radius:8px;font-size:var(--font-small);line-height:1.75;overflow-wrap:anywhere}.error-message button{flex:0 0 44px;padding:0;font-size:1.75rem}.quiz{flex:1;width:100%;max-width:46rem;padding:1.75rem 1.75rem 2.5rem;margin:0 auto}.quiz-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;margin-bottom:.75rem}.quiz-progress{position:sticky;top:0;z-index:2;background:var(--page);padding:calc(.75rem + env(safe-area-inset-top,0px)) 0 1rem;margin-bottom:1.5rem}.quiz-toolbar h1{margin:0;font-size:var(--font-lead);font-weight:600;line-height:1.5}.quiz-toolbar>span{font-size:var(--font-small);font-variant-numeric:tabular-nums;color:var(--text-secondary)}.progress{height:3px;background:var(--rule);margin-bottom:2rem}.progress>div{height:100%;background:var(--accent);transition:width .25s}.quiz-progress .progress{margin:0}.question{min-width:0;padding:0 0 2.5rem;margin:0 0 2.5rem;border:0;border-bottom:1px solid var(--rule);scroll-margin-top:8rem}.question legend{width:100%;max-width:100%;padding:0;font-size:var(--font-lead);font-weight:600;line-height:1.5;margin-bottom:.75rem}.question-label{display:flex;align-items:baseline;gap:.75rem}.question-label>span:last-child{min-width:0;overflow-wrap:anywhere}.question-number{flex-shrink:0;color:var(--accent);font-size:var(--font-small);font-variant-numeric:tabular-nums}.question-scene{font-size:var(--font-body);line-height:var(--line-body);color:var(--text-secondary);margin-bottom:1.25rem}.options{display:flex;flex-direction:column;gap:.75rem}.option{position:relative;display:grid;grid-template-columns:1.1rem minmax(0,1fr) 1rem;align-items:center;text-align:left;gap:.875rem;width:100%;padding:.875rem 1rem;min-height:64px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:var(--font-body);line-height:var(--line-body);cursor:pointer;touch-action:manipulation;transition:background .15s,border-color .15s}.option-text{min-width:0;flex:1;overflow-wrap:anywhere}.option-input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.option:focus-within{outline:3px solid var(--accent);outline-offset:3px}.question:not(:disabled) .option:hover{background:var(--surface-hover);border-color:#b9aa95}.question:disabled .option{cursor:wait;color:var(--text-secondary)}.option-letter{flex-shrink:0;color:var(--muted);font-size:var(--font-small);font-weight:600;font-variant-numeric:tabular-nums}.option.selected{border-color:var(--accent);background:#332b22;box-shadow:inset 0 0 0 1px var(--accent)}.option.selected .option-letter,.option-check{color:var(--accent)}.option-check{margin-left:auto;flex-shrink:0;width:1em}.quiz-submit>.primary-button{display:flex;width:100%}.question-error,.quiz-error{color:#ffce9a;font-size:var(--font-small);line-height:1.75;margin:1rem 0 0}.quiz-error{margin:0 0 1rem}.question-missing{border-bottom-color:var(--accent)}.reveal{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:3rem min(1.5rem,6vw)}.ability-mark{width:90px;height:90px;color:var(--talent-color, var(--accent));stroke:currentColor;stroke-width:.8px}.reveal .ability-mark{width:110px;height:110px;margin-bottom:2rem;animation:breathe 2s ease infinite}.reveal p{font-size:var(--font-heading);line-height:var(--line-body);font-weight:500;color:var(--text)}.reveal .quiet-button{margin-top:.875rem}.result{flex:1;width:100%;max-width:42rem;margin:0 auto;padding:1.5rem 1.75rem}.result-intro{text-align:center;font-size:var(--font-small);color:var(--text-secondary);margin-bottom:1.5rem}.result-card{border:1px solid #746655;border-radius:10px;padding:2rem 2rem .5rem;background:radial-gradient(ellipse at 50% 0%,#e7bd7e10,transparent 50%),#1b1e23;text-align:center}.result-emblem{display:flex;justify-content:center;margin-bottom:1.25rem}.result-status{display:inline-block;color:var(--talent-color, #d1c5a3);font-size:var(--font-small);margin-bottom:.75rem}.result-card h1{font-size:var(--font-result);line-height:1.5;font-weight:600;margin-bottom:1.25rem}.result-summary{font-size:var(--font-body);line-height:var(--line-body);margin:0 auto 1.25rem;color:var(--text-secondary);max-width:30rem}.result-tags{display:flex;flex-wrap:wrap;gap:.5rem 1rem;justify-content:center;font-size:var(--font-small);color:#e5c6a0;margin-bottom:1.75rem}.result-skills{text-align:left;border-top:1px solid var(--rule);padding-top:1.5rem}.result-skills h2{color:var(--text-secondary);font-size:var(--font-body);font-weight:600;margin-bottom:1.25rem}.skill{margin:0 0 1.5rem}.skill h3{font-size:var(--font-lead);font-weight:600;color:#f2d5b1;line-height:1.5;margin-bottom:.5rem}.skill p,.unawakened{font-size:var(--font-body);color:var(--text-secondary);line-height:var(--line-body);margin:0 0 1.5rem}.ability-details{text-align:left;border-top:1px solid var(--rule);padding:.75rem 0 .5rem;margin-top:.5rem}.ability-details summary{min-height:44px;cursor:pointer;font-size:var(--font-small);line-height:1.75;color:var(--text-secondary);padding:.5rem 0}.ability-details p{font-size:var(--font-body);line-height:var(--line-body);color:var(--text-secondary);margin:.75rem 0 1.25rem}.result-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.875rem;margin-top:1.5rem}.result-actions button{min-width:0;width:100%;padding:1rem;gap:.75rem}.result-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.5rem;margin-top:.875rem}.poster-dialog{background:var(--page);border:1px solid var(--rule);border-radius:14px;color:var(--text);width:calc(100% - 2rem);max-width:28rem;max-height:90dvh;padding:1.25rem;box-shadow:0 30px 100px #0008;overflow-y:auto}.poster-dialog::backdrop{background:#080a0ecc;backdrop-filter:blur(7px)}.poster-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:var(--font-small);line-height:1.75;margin-bottom:1rem}.poster-dialog-head button{flex-shrink:0;font-size:1.75rem;line-height:1;padding:.25rem}.poster-preview{display:block;width:100%;height:auto;border-radius:6px}.poster-dialog>.primary-button{display:flex;width:100%;margin-top:1rem}.skill-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .875rem;margin-bottom:.5rem}.skill-heading h3{margin-bottom:0}.rarity-label{color:var(--accent);font-size:var(--font-small);line-height:1.75}.toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%);border:1px solid #a38b69;border-radius:8px;background:#302a23;color:#f6e1c4;padding:.875rem 1.25rem;font-size:var(--font-small);line-height:1.75;width:max-content;max-width:calc(100% - 2rem);text-align:center;z-index:20}@keyframes appear{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes breathe{0%,to{opacity:.55;transform:scale(.96)}50%{opacity:1;transform:scale(1.03)}}@media(min-width:1500px){.landing{padding-right:12%}.landing-art{right:22%}}@media(max-width:900px)and (min-width:701px){.landing{padding-left:5%;padding-right:5%;column-gap:1.5rem}.landing-art{right:10%}}@media(max-width:700px){.landing{display:flex;flex-direction:column;justify-content:flex-start;gap:2rem;min-height:100svh;padding:clamp(12rem,38svh,22rem) min(1.5rem,6vw) 1.75rem;text-align:center}.landing-art{inset:0 0 auto;height:58svh}.landing-art img{object-position:50% 48%}.landing-art:after{background:linear-gradient(0deg,#101318,#101318f5 25%,#101318c2 43%,#10131844 63%,#10131800 80%)}.landing-content{width:100%;padding:0}.landing-kicker{margin-bottom:1rem}.landing h1{margin-bottom:1.25rem}.landing-description{margin-bottom:1.75rem}.landing-note{margin-left:auto;margin-right:auto}.landing-footnote{margin-top:auto}.simple-header{padding:.75rem 1rem 0}.quiz{padding:1.25rem min(1.5rem,6vw) 2rem}.progress{margin-bottom:1.75rem}.option{padding:1rem;gap:.75rem}.result{padding:1.25rem min(1.5rem,6vw) 1rem}.result-card{padding:1.5rem 1.25rem .5rem;border-radius:8px}.result-emblem .ability-mark{width:82px;height:82px}.poster-dialog{padding:1rem}}@media(max-width:360px){.quiz,.result{padding-left:1rem;padding-right:1rem}.option{padding-left:.875rem;padding-right:.875rem;gap:.625rem}.result-card{padding-left:1rem;padding-right:1rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
