:root{--paper:#f5f2ec;--ink:#252523;--muted:#797971;--line:#e4e0d8;--green:#3d6558;--green-dark:#304f45;--pale:#e9eee9;--gold:#b19a6a;--serif:Georgia,'Noto Serif TC',serif;--sans:Arial,'Noto Sans TC',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.65 var(--sans)}button,input{font:inherit}.shell{max-width:1040px;margin:auto;padding:0 42px}.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:.08em}.brand small{display:block;font-size:8px;letter-spacing:.18em;color:#929087;font-weight:500}.brand-mark{color:var(--green);font-size:25px}.top-note{font-size:11px;color:var(--muted);letter-spacing:.08em}.hero{text-align:center;padding:78px 0 48px;max-width:740px;margin:auto}.eyebrow{font-size:9px;letter-spacing:.19em;font-weight:700;color:#8c836e}.hero h1{font:500 34px/1.5 var(--serif);letter-spacing:.08em;margin:14px 0 12px}.hero h1 em{font-style:normal;color:var(--green)}.hero>p{color:var(--muted);font:13px/1.9 var(--serif);max-width:570px;margin:0 auto 25px}.hero-actions{display:flex;justify-content:center;align-items:center;gap:10px}.primary,.secondary{border:0;cursor:pointer;padding:13px 18px;border-radius:4px;font:12px var(--serif);letter-spacing:.06em;transition:transform .2s,background .2s}.primary{background:var(--green);color:white}.primary:hover{background:var(--green-dark);transform:translateY(-1px)}.primary span{margin-left:22px;color:#d9d1b3;font-size:16px}.primary:disabled,.secondary:disabled{opacity:.5;cursor:default}.secondary{border:1px solid var(--line);background:transparent;color:#68665e}.secondary:hover{background:#eeebe4}.notice{display:flex;text-align:left;gap:11px;align-items:flex-start;max-width:620px;margin:36px auto 0;padding:14px 16px;background:#eeebe4;border:1px solid var(--line);color:#8a806b}.notice>span{font-size:15px}.notice p{font:10px/1.75 var(--serif);color:#77736a;margin:0}.panel{background:#fbfaf7;border:1px solid var(--line);border-radius:6px;box-shadow:0 12px 35px #37312608;margin:16px auto 52px;padding:32px 36px}.quiz{max-width:720px;padding:34px 40px 29px}.quiz-top{display:flex;justify-content:space-between;align-items:center;color:#8e887d;font-size:10px}.progress-track{height:3px;background:#e9e5dc;margin:14px 0 34px;overflow:hidden}.progress-track div{height:100%;background:var(--green);transition:width .25s}.quiz h2{font:500 24px/1.6 var(--serif);margin:0 0 22px;min-height:76px}.answer-list{display:grid;gap:10px}.answer-option{display:flex;align-items:center;gap:13px;width:100%;padding:14px;background:#fff;border:1px solid var(--line);border-radius:4px;text-align:left;cursor:pointer;color:#4f4e48;transition:.18s}.answer-option:hover{border-color:#a4b8ad;background:#fafcf9}.answer-option.selected{border-color:var(--green);background:var(--pale);color:#314f43}.answer-marker{width:25px;height:25px;border:1px solid #ddd8ce;border-radius:50%;display:grid;place-items:center;font-size:9px;color:#9a968b;flex:none}.selected .answer-marker{background:var(--green);border-color:var(--green);color:white}.answer-label{font:12px/1.7 var(--serif);flex:1}.answer-check{opacity:0;color:var(--green);font-weight:700}.selected .answer-check{opacity:1}.quiz-nav{display:flex;align-items:center;justify-content:space-between;margin-top:25px}.text-button{background:none;border:0;color:#77766e;cursor:pointer;font:11px var(--serif);padding:9px}.text-button:hover{color:var(--green)}.text-button:disabled{opacity:.35;cursor:default}.quiz-nav .primary{min-width:136px}.result{max-width:820px}.result-head{display:flex;align-items:center;justify-content:space-between;gap:22px;padding-bottom:23px;border-bottom:1px solid var(--line)}.result-head h2{font:500 25px/1.5 var(--serif);margin:9px 0}.result-head p{font:12px/1.8 var(--serif);color:#6f6c64;margin:0;max-width:560px}.type-stamp{font:600 19px var(--sans);letter-spacing:.08em;color:var(--green);background:var(--pale);padding:19px 16px;border-radius:50%;min-width:88px;text-align:center}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.result-card{padding:18px 19px;background:white;border:1px solid var(--line);border-radius:4px}.result-card h3,.scores h3{font:500 14px var(--serif);margin:0 0 9px;color:#47463f}.result-card p{font:11px/1.85 var(--serif);color:#727067;margin:0 0 13px}.subhead{font-size:9px;color:#9a8969;letter-spacing:.1em;margin:12px 0 8px}.tag-list{display:flex;gap:6px;flex-wrap:wrap}.tag{font:10px/1.5 var(--serif);padding:5px 9px;border-radius:20px;background:#f2f0e9;color:#6d685b;border:1px solid #e9e5dc}.wide{grid-column:1/-1}.wide .tag{background:#f8f5ed}.small-note{font:9px/1.7 var(--serif)!important;color:#a09a8c!important;margin:14px 0 0!important}.scores{border-top:1px solid var(--line);margin-top:22px;padding-top:19px}.scores h3{margin-bottom:16px}.score-bars{display:grid;grid-template-columns:1fr 1fr;gap:14px}.score-row{min-width:0}.score-item{width:100%}.score-labels,.score-names{display:flex;justify-content:space-between;align-items:center;font:9px var(--sans);color:#79766e}.score-axis{font-weight:700;color:var(--green)}.score-track{height:5px;background:#cfd8d0;border-radius:5px;margin:7px 0;overflow:hidden}.score-track span{display:block;height:100%;background:var(--green);border-radius:5px 0 0 5px}.score-names{font-size:8px;color:#969187}.balance-note{display:block;font:8px var(--serif);color:#a18c5f;margin-top:5px}.result-actions{display:flex;align-items:center;gap:12px;margin-top:24px}.library{max-width:900px}.library-head{display:flex;justify-content:space-between;align-items:flex-start}.library-head h2{font:500 22px var(--serif);margin:8px 0 3px}.library-head p{font:11px var(--serif);color:var(--muted);margin:0}.search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;height:42px;padding:0 13px;margin:20px 0 14px;color:#a69a83}.search span{font-size:21px}.search input{flex:1;border:0;outline:0;background:transparent;color:var(--ink);font:11px var(--serif)}.filter-row{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 18px}.filter{border:1px solid var(--line);background:transparent;color:#77746c;padding:5px 8px;border-radius:20px;font-size:9px;cursor:pointer}.filter.active{background:var(--green);border-color:var(--green);color:white}.library-layout{display:grid;grid-template-columns:minmax(225px,.85fr) minmax(0,1.15fr);gap:12px;min-height:300px}.profile-list{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:6px;max-height:570px;overflow:auto;padding-right:4px}.profile-choice{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 10px;border:1px solid var(--line);background:#fff;border-radius:3px;text-align:left;cursor:pointer}.profile-choice:hover,.profile-choice.active{border-color:#8fa99b;background:var(--pale)}.choice-code{font:700 10px var(--sans);letter-spacing:.04em;color:var(--green)}.choice-name{font:9px var(--serif);color:#757168;line-height:1.4}.profile-detail{padding:20px;background:#fff;border:1px solid var(--line);border-radius:4px;align-self:start}.profile-detail h3{font:500 17px/1.5 var(--serif);margin:0 0 8px;color:#344e43}.detail-summary{font:11px/1.8 var(--serif);color:#6f6c64;margin:0 0 17px}.detail-section{border-top:1px solid #eeebe4;padding:11px 0}.detail-section h4{font:10px var(--serif);color:#9a8969;margin:0 0 4px}.detail-section p{font:10px/1.8 var(--serif);color:#69665e;margin:0}.empty-detail{display:grid;place-items:center;min-height:230px;color:#a19b8f;font:11px var(--serif)}.no-results{grid-column:1/-1;color:#969187;font:11px var(--serif)}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding:18px 0 25px;color:#a29d91;font-size:8px;letter-spacing:.12em}footer span:last-child{font:9px var(--serif);letter-spacing:0}[hidden]{display:none!important}@media(max-width:720px){.shell{padding:0 19px}.topbar{height:62px}.top-note{font-size:9px}.hero{padding:52px 0 35px}.hero h1{font-size:27px}.hero>p{font-size:12px}.notice{margin-top:27px}.panel{padding:23px 18px;margin-bottom:35px}.quiz h2{font-size:20px;min-height:0;margin-bottom:17px}.quiz{padding:25px 19px}.result-head{align-items:flex-start}.result-head h2{font-size:21px}.type-stamp{min-width:70px;padding:14px 9px;font-size:16px}.result-grid{grid-template-columns:1fr}.wide{grid-column:auto}.score-bars{grid-template-columns:1fr}.library-layout{grid-template-columns:1fr}.profile-list{grid-template-columns:repeat(3,1fr);max-height:270px}.profile-detail{min-height:240px}.filter-row{max-height:110px;overflow:auto}footer{font-size:7px;letter-spacing:.05em}footer span:last-child{font-size:8px}}@media(max-width:400px){.hero-actions{flex-direction:column;align-items:stretch}.hero-actions button{width:100%}.profile-list{grid-template-columns:1fr 1fr}.result-actions{align-items:flex-start;flex-direction:column;gap:3px}}
.scores #score-bars{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:720px){.scores #score-bars{grid-template-columns:1fr}}

/* Larger type and a friendlier hand-drawn style mascot mark */
body{font-size:16px}
.brand{font-size:16px}
.brand small{font-size:9px}
.brand-mark{display:block;width:38px;height:38px;flex:none}
.top-note{font-size:13px}
.eyebrow{font-size:11px}
.hero>p{font-size:15px}
.notice p{font-size:12px}
.notice>span{font-size:18px}
.primary,.secondary{font-size:14px;padding:14px 20px}
.quiz-top{font-size:12px}
.quiz h2{font-size:27px;min-height:88px}
.answer-option{padding:17px}
.answer-label{font-size:15px}
.answer-marker{width:29px;height:29px;font-size:11px}
.text-button{font-size:13px}
.result-head h2{font-size:28px}
.result-head p{font-size:14px}
.type-stamp{font-size:21px;min-width:96px}
.result-card h3,.scores h3{font-size:17px}
.result-card p{font-size:14px}
.subhead{font-size:11px}
.tag{font-size:12px;padding:6px 10px}
.small-note{font-size:11px!important}
.score-labels{font-size:11px}
.score-names{font-size:10px}
.balance-note{font-size:10px}
.library-head h2{font-size:25px}
.library-head p{font-size:13px}
.search input{font-size:14px}
.filter{font-size:11px;padding:6px 10px}
.profile-choice{padding:11px}
.choice-code{font-size:12px}
.choice-name{font-size:11px}
.profile-detail h3{font-size:20px}
.detail-summary{font-size:14px}
.detail-section h4{font-size:12px}
.detail-section p{font-size:13px}
.empty-detail,.no-results{font-size:13px}
footer{font-size:10px}
footer span:last-child{font-size:11px}
@media(max-width:720px){
  .brand{font-size:14px}
  .brand-mark{width:35px;height:35px}
  .top-note{font-size:11px}
  .hero>p{font-size:14px}
  .notice p{font-size:11px}
  .quiz h2{font-size:23px;min-height:0}
  .answer-label{font-size:14px}
  .result-head h2{font-size:23px}
  .result-head p{font-size:13px}
  .result-card p{font-size:13px}
  .detail-summary{font-size:13px}
  .detail-section p{font-size:12px}
  footer{font-size:8px}
  footer span:last-child{font-size:9px}
}

.character-art{background-image:url('./assets/mbti-fashion-sprite.png');background-size:400% 400%;background-repeat:no-repeat;background-color:#f2eadd;border:2px solid #fffaf0;box-shadow:0 5px 16px #51432b16}
.character-display{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 154px;height:148px;margin-left:14px}
.character-display .character-art{width:138px;height:138px;border-radius:30px}
.character-display .type-stamp{position:absolute;right:-2px;bottom:0;min-width:0;width:76px;height:76px;border:4px solid #fbfaf7;display:grid;place-items:center;padding:0;border-radius:50%;font-size:16px;letter-spacing:.03em}
.profile-choice{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;min-height:66px}
.choice-avatar{grid-column:1;grid-row:1 / span 2;width:48px;height:48px;border-radius:13px}
.choice-code{grid-column:2;grid-row:1;align-self:end}
.choice-name{grid-column:2;grid-row:2;align-self:start}
.detail-title-row{display:flex;align-items:center;gap:13px;margin-bottom:12px}
.detail-title-row h3{margin:0}
.detail-character{width:76px;height:76px;flex:none;border-radius:18px}
@media(max-width:720px){
  .character-display{flex-basis:112px;height:110px;margin-left:5px}
  .character-display .character-art{width:100px;height:100px;border-radius:24px}
  .character-display .type-stamp{width:62px;height:62px;font-size:13px}
  .choice-avatar{width:42px;height:42px}
  .profile-choice{grid-template-columns:42px minmax(0,1fr);column-gap:6px;padding:8px}
}

/* Vivid, modern editorial palette */
:root{--paper:#f6f7fb;--ink:#20233a;--muted:#666a7e;--line:#e1e4f0;--green:#4b55ef;--green-dark:#3742d7;--pale:#eceeff;--gold:#f47763}
.hero h1 em{background:linear-gradient(95deg,#4b55ef 5%,#a342e8 55%,#e34892);-webkit-background-clip:text;background-clip:text;color:transparent}
.primary{background:linear-gradient(115deg,#4656f1,#923ee8);box-shadow:0 7px 18px #5b57d32b}
.primary:hover{background:linear-gradient(115deg,#3445df,#8130d7)}
.primary span{color:#ffd7b6}
.notice{background:linear-gradient(110deg,#eef0ff,#fff0f3);border-color:#e0def5}
.panel{box-shadow:0 14px 36px #25244d0b}
.progress-track div,.score-track span{background:linear-gradient(90deg,#4a5bf2,#a43fe3 58%,#e6479b)}
.answer-option.selected{background:linear-gradient(110deg,#eef0ff,#f7ebff);border-color:#8175ec}
.answer-option.selected .answer-marker{background:#5a55ed;border-color:#5a55ed}
.type-stamp{background:linear-gradient(135deg,#e5eaff,#f9ddf1);color:#484be3}
.result-card:nth-child(1){border-top:3px solid #5965f3}
.result-card:nth-child(2){border-top:3px solid #df58a1}
.result-card:nth-child(3){border-top:3px solid #f19a44}
.tag{background:#f0efff;border-color:#e2dffb;color:#514fc3}
.wide .tag:nth-child(3n+2){background:#fff0f2;border-color:#f8dfe5;color:#b54e73}
.filter.active{background:linear-gradient(110deg,#4b55ef,#9a42e6);border-color:transparent}
.profile-choice:hover,.profile-choice.active{border-color:#7776ed;background:linear-gradient(110deg,#f0f1ff,#fff2f8)}
.character-art{border-color:#fff;box-shadow:0 7px 20px #4a3d7222}
.library-head h2{color:#30345a}
@media(max-width:720px){.notice{background:linear-gradient(110deg,#eef0ff,#fff0f3)}}
