:root { color-scheme: light; --ink: #131313; --muted: #6B6B6B; --mint: #3CFFD0; --green: #309875; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.6 'Space Grotesk', 'Noto Sans TC', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--green); text-decoration: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 1px solid #0500FF; box-shadow: 0 0 0 3px rgba(30, 174, 219, .35); }
h1, h2, p { margin: 0; }
.shell { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px 48px; }
.mono { font-family: 'Space Mono', 'Noto Sans TC', monospace; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; }
.section-label { color: var(--green); font-weight: 400; }
.intro, .result { animation: fadein 300ms ease-out; }
.review, .card-wrap { animation: fadein 240ms ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intro { padding-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.intro-heading { display: flex; flex-direction: column; gap: 14px; }
h1 { font-family: 'Noto Sans TC', sans-serif; font-size: 58px; font-weight: 900; line-height: .98; letter-spacing: .01em; }
.intro-heading p { font-size: 16px; font-weight: 500; color: #2D2D2D; }
.charms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.charm { aspect-ratio: 1; border: 1px solid var(--dim); border-radius: 20px; background: #fff; overflow: hidden; }
.charm img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); display: block; }
.identities { display: flex; flex-direction: column; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.identity-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.identity-options.love { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.identity-options button { min-height: 48px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 24px; background: #fff; font-weight: 500; transition: background 150ms, color 150ms; }
@media (hover: hover) { .identity-options button:hover { border-color: var(--green); } }
.identity-options.love button { padding: 10px 6px; font-size: 14px; white-space: nowrap; }
.identity-options button[aria-pressed="true"] { background: var(--mint); }
.primary, .primary.mono { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; background: var(--mint); border: 1px solid var(--ink); border-radius: 30px; color: #000; font-family: 'Space Mono', 'Noto Sans TC', monospace; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; transition: background 180ms, color 180ms, border-color 180ms; }
.primary:disabled { opacity: .4; }
@media (hover: hover) { .primary:not(:disabled):hover { background: #5200FF; color: #fff; border-color: #5200FF; } }
.primary:not(:disabled):active { background: #3D00BF; color: #fff; border-color: #3D00BF; }
@media (hover: hover) { .secondary:not(:disabled):hover { background: #5200FF; color: #fff; } }
@media (hover: hover) { .nav-button:hover, .feedback-options button:hover { background: var(--mint); color: #000; border-color: var(--mint); } }
@media (hover: hover) { .option:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--tile) 25%, #fff); } }
.option:active { transform: scale(.96); }
.quiz, .review { padding-top: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.toolbar .mono { white-space: nowrap; }
.toolbar > span.mono { color: var(--muted); flex: none; }
.toolbar h2 { font-family: 'Noto Sans TC', sans-serif; font-size: 20px; font-weight: 700; }
.nav-button { min-height: 44px; padding: 0 16px; border-radius: 40px; border: 1px solid var(--ink); background: transparent; letter-spacing: 1.5px; transition: background 150ms, color 150ms; }
.nav-button.green { border-color: var(--green); color: var(--green); }
.nav-placeholder { width: 104px; }
.progress { height: 8px; border: 1px solid var(--ink); border-radius: 20px; overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; background: var(--tile); transition: width 300ms ease, background 300ms ease; }
.card-wrap { padding: 28px 0 16px; }
.question-card { min-height: 220px; padding: 28px 24px 32px; border: 1px solid var(--ink); border-radius: 24px; background: var(--tile); color: var(--tile-ink); display: flex; flex-direction: column; gap: 18px; }
.question-card header { display: flex; align-items: center; justify-content: space-between; }
.question-card header .mono { opacity: .75; }
.question-number { font-family: 'Noto Sans TC', sans-serif; font-size: 40px; font-weight: 900; line-height: .9; letter-spacing: .02em; }
.question-card h2 { font-family: 'Noto Sans TC', sans-serif; font-size: 24px; line-height: 1.4; font-weight: 700; letter-spacing: .01em; text-wrap: pretty; }
.options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-bottom: 10px; }
.option { min-height: 84px; padding: 12px 2px; border: 1px solid var(--ink); border-radius: 20px; background: #fff; color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; transition: background 150ms, color 150ms, transform 100ms; }
.option[aria-pressed="true"] { background: var(--tile); color: var(--tile-ink); }
.option-number { font-family: 'Noto Sans TC', sans-serif; font-weight: 900; font-size: 26px; line-height: .9; }
.option-label { font-family: 'Noto Sans TC', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.skip { width: 100%; height: 44px; margin-top: 2px; border: 1px solid #D0D0D0; border-radius: 24px; background: transparent; color: var(--muted); font-size: 14px; }
.skip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.review-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0 46px; border-left: 1px dashed #5200FF; padding-left: 16px; }
.review-row { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 52px; padding: 14px 18px; border: 1px solid var(--ink); border-radius: 20px; background: #fff; text-align: left; transition: color 150ms; }
@media (hover: hover) { .review-row:hover { color: #3860BE; } }
.review-number { position: absolute; left: -62px; top: 16px; width: 40px; text-align: right; color: var(--muted); letter-spacing: 1.1px; }
.review-question { font-family: 'Noto Sans TC', sans-serif; font-size: 14px; line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.review-answer { font-size: 10px; letter-spacing: 1.5px; color: var(--green); }
.review-row.unanswered { border-color: #5200FF; }
.unanswered .review-answer { color: #5200FF; }
.skipped .review-answer { color: var(--muted); }
.review-action { position: sticky; bottom: 0; padding: 18px 0 4px; background: #fff; }
.result { display: flex; flex-direction: column; gap: 32px; padding-top: 16px; }
.notice-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border: 1px solid #5200FF; border-radius: 20px; background: #fff; font-family: 'Noto Sans TC', sans-serif; font-size: 13px; line-height: 1.6; color: var(--ink); }
.notice-label { font-size: 10px; letter-spacing: 1.5px; color: #5200FF; white-space: nowrap; padding-top: 3px; }
.notice-card strong { display: block; font-size: 15px; }
.skipped-note { font-size: 12px; color: var(--muted); }
.hero { border: 1px solid var(--ink); border-radius: 24px; padding: 22px 22px 24px; background: var(--dim); color: var(--dim-ink); display: flex; flex-direction: column; gap: 18px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1.5px; }
.rank-pill { padding: 3px 10px; border-radius: 20px; background: #fff; color: var(--stamp-ink); border: 1px solid var(--ink); font-weight: 700; }
.hero-main { display: flex; gap: 14px; align-items: center; }
.hero-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-row { display: flex; gap: 12px; align-items: center; }
.seal { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif; font-weight: 900; line-height: 1; flex: 0 0 auto; }
.hero .seal { width: clamp(64px, 16vw, 96px); height: clamp(64px, 16vw, 96px); background: #fff; color: var(--stamp-ink); font-family: 'Noto Sans TC', sans-serif; font-size: clamp(42px, 11vw, 60px); letter-spacing: -.02em; }
.hero .seal.double { font-size: clamp(26px, 7vw, 38px); }
.hero-detail { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hero h2 { font-family: 'Noto Sans TC', sans-serif; font-size: clamp(22px, 6vw, 32px); font-weight: 900; line-height: 1.1; white-space: nowrap; }
.hero-english { font-size: 10px; letter-spacing: 1.5px; opacity: .8; }
.hero-score { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.hero-score .mono { font-size: 10px; letter-spacing: 1.5px; white-space: nowrap; }
.hero-score strong { font-family: 'Noto Sans TC', sans-serif; font-size: 38px; font-weight: 900; line-height: .9; font-variant-numeric: tabular-nums; }
.hero-progress { width: 205px; max-width: 100%; height: 8px; border: 1px solid var(--ink); border-radius: 20px; overflow: hidden; background: #fff; }
.hero-progress .grow-bar { background: var(--bar); }
.hero-photo { flex: 0 0 clamp(84px, 24vw, 240px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--ink); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); display: block; }
.hero-desc { font-family: 'Noto Sans TC', sans-serif; font-size: 13px; font-weight: 500; }
.facet { align-self: flex-start; padding: 5px 12px; border-radius: 20px; background: #fff; color: var(--stamp-ink); font-weight: 700; }
.hero p { font-family: 'Noto Sans TC', sans-serif; border-top: 1px solid currentColor; padding-top: 16px; font-size: 17px; line-height: 1.6; font-weight: 700; }
.big-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 10px; }
.result-section { display: flex; flex-direction: column; gap: 12px; }
.ranking { display: flex; flex-direction: column; gap: 10px; }
.rank-row { opacity: .75; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 56px; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #D0D0D0; border-radius: 20px; background: #fff; color: var(--ink); }
.rank-row .seal { width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--dim); color: var(--dim-ink); font-family: 'Noto Sans TC', sans-serif; font-size: 22px; }
.rank-row .seal.double { font-size: 14px; }
.rank-detail { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rank-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rank-title strong { font-family: 'Noto Sans TC', sans-serif; font-size: 16px; line-height: 1; }
.rank-desc { font-family: 'Noto Sans TC', sans-serif; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-progress { height: 6px; border: 1px solid var(--ink); border-radius: 20px; overflow: hidden; }
.grow-bar { width: 0; height: 100%; background: var(--dim); transition: width 900ms cubic-bezier(.2, .7, .2, 1); }
.rank-score { font-family: 'Noto Sans TC', sans-serif; font-weight: 900; font-size: 24px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-photo { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--ink); display: block; }
.rank-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); display: block; }
.rank-row.not-scored { border: 1px solid #D0D0D0; color: var(--muted); }
.not-scored .rank-score { font: 12px/1.6 'Noto Sans TC', sans-serif; white-space: nowrap; }
.mix-box { border: 1px solid var(--ink); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.mix-bar { display: flex; height: 24px; border-radius: 20px; border: 1px solid var(--ink); overflow: hidden; }
.mix-bar .grow-bar { flex: 0 0 auto; border-right: 1px solid var(--ink); }
.mix-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.mix-legend span { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.mix-legend b { font-family: 'Noto Sans TC', sans-serif; font-weight: 700; font-size: 13px; }
.mix-legend em { font-style: normal; font-size: 11px; letter-spacing: 0; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ink); background: var(--dim); flex: 0 0 auto; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.secondary-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.secondary { min-height: 48px; border: 0; background: #F0F0F0; border-radius: 24px; padding: 10px; font-family: 'Noto Sans TC', sans-serif; font-size: 15px; transition: background 180ms, color 180ms; }
.feedback { position: relative; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding-top: 12px; border-top: 1px solid #E0E0E0; }
.feedback .mono { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.feedback-options { display: flex; gap: 8px; }
.feedback button { min-height: 44px; padding: 0 16px; border-radius: 40px; border: 1px solid var(--ink); background: transparent; font-family: 'Noto Sans TC', sans-serif; font-size: 13px; transition: background 150ms, color 150ms; }
.feedback-options button[aria-pressed="true"] { background: var(--mint); }
.feedback textarea { display: block; width: 100%; min-width: 0; resize: vertical; padding: 14px; border: 1px solid #D0D0D0; border-radius: 20px; background: #fff; color: var(--ink); font: inherit; }
.feedback textarea::placeholder { color: var(--muted); opacity: 1; }
.feedback-foot { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.feedback .secondary { background: #F0F0F0; border: 0; }
.feedback button:disabled { opacity: .4; }
.thanks { font-family: 'Space Mono', 'Noto Sans TC', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .intro, .result, .review, .card-wrap { animation: none; } .grow-bar { transition: none; } }
