:root {
  --ink: #17383f;
  --ink-soft: #35555b;
  --paper: #f5f0e6;
  --surface: #fffdfa;
  --line: #d8dfd9;
  --teal: #0d7770;
  --teal-dark: #075b57;
  --moss: #b9c98d;
  --gold: #d89a2d;
  --muted: #68797b;
  --shadow: 0 18px 45px rgba(20, 55, 58, .13);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 90% 8%, rgba(185,201,141,.45), transparent 25rem), linear-gradient(180deg, #17383f 0 16rem, var(--paper) 39rem); font: 15px/1.65 "Noto Serif SC", "Songti SC", STSong, serif; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #e7bb67; outline-offset: 3px; }
.shell { width: min(100%, 760px); margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px) 56px; }
.hidden { display: none !important; }
.eyebrow, .q-number, .stats b, .rank-line span:first-child, .rank-line em, .score-n, .career strong, .day b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.hero { padding: 70px 6px 28px; color: #fdf8ec; text-align: center; }
.eyebrow { font-size: 11px; letter-spacing: .14em; opacity: .8; }
.hero h1 { max-width: 620px; margin: 15px auto 11px; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -.07em; }
.hero p { max-width: 430px; margin: 0 auto; color: rgba(255,255,255,.86); font-size: 15px; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 19px 0 0; }
.pill { padding: 4px 12px; border: 1px solid rgba(255,255,255,.42); border-radius: 99px; background: rgba(255,255,255,.08); font-size: 11px; }
.primary { display: block; width: 100%; padding: 15px 18px; border-radius: 12px; color: #fffdf7; background: var(--teal); box-shadow: 0 9px 20px rgba(7,91,87,.24); font-weight: 800; letter-spacing: .12em; transition: transform .16s ease, background .16s ease; }
.primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary:active { transform: translateY(1px); }
.hero .primary { width: min(100%, 350px); margin: 24px auto 0; background: #f2bd5d; color: #17383f; box-shadow: 0 10px 23px rgba(0,0,0,.17); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 25px 0 0; color: #f9f3e4; }
.stats b { display: block; font-size: 20px; line-height: 1.1; }
.stats span { font-size: 11px; opacity: .8; }

.card { margin-top: 17px; padding: clamp(19px, 3.5vw, 28px); border: 1px solid rgba(216,223,217,.85); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; font-size: 17px; font-weight: 800; }
.section-title i { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; color: #fff; background: var(--teal); font-style: normal; font-size: 14px; }
.sub { margin: -3px 0 14px; color: var(--muted); font-size: 13px; }
.dimension-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dimension { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf5; }
.dimension b { display: block; margin-top: 3px; font-size: 14px; }
.dimension span { color: var(--muted); font-size: 12px; }
.type-sample { margin-top: 9px; padding: 12px 13px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: #f5f1e4; }
.type-sample b { color: var(--teal-dark); font-size: 14px; }
.type-sample p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.quiz-head { position: sticky; top: 0; z-index: 4; padding: 16px 0 13px; background: linear-gradient(180deg, #17383f 78%, rgba(23,56,63,0)); }
.quiz-headline { display: grid; grid-template-columns: 68px 1fr 68px; align-items: center; color: #fbf6e9; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; text-align: center; }
.pause { padding: 4px 0; color: inherit; background: transparent; text-align: left; }
.progress { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.26); }
.progress i { display: block; height: 100%; border-radius: inherit; background: #edbf65; transition: width .25s ease; }
.question-card { margin-top: 4px; padding: clamp(22px, 5vw, 34px); }
.q-number { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.q-text { max-width: 630px; margin: 13px 0 20px; font-size: clamp(21px, 3vw, 27px); font-weight: 800; line-height: 1.48; letter-spacing: -.025em; }
.guide { padding: 9px 11px; border-left: 3px solid var(--moss); border-radius: 0 8px 8px 0; background: #f0f3e8; color: var(--ink-soft); font-size: 12px; }
.options { display: grid; gap: 10px; margin-top: 16px; }
.option { display: flex; width: 100%; min-height: 58px; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); background: #fffefa; text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.option:hover { border-color: var(--teal); background: #f1f8f5; transform: translateX(3px); }
.option .dot { width: 19px; height: 19px; flex: none; border: 2px solid #adbbb9; border-radius: 50%; }
.option.selected { border-color: var(--teal); color: var(--teal-dark); background: #e8f5ef; font-weight: 800; animation: selected .32s ease both; }
.option.selected .dot { border-color: var(--teal); box-shadow: inset 0 0 0 4px var(--teal); }
@keyframes selected { from { transform: scale(.985); opacity: .65; } to { transform: scale(1); opacity: 1; } }
.nav { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.secondary { padding: 10px 14px; border-radius: 9px; color: var(--teal-dark); background: #e9f1ed; font-weight: 800; }
.secondary:disabled { cursor: default; opacity: .4; }
.auto-hint { color: var(--muted); font-size: 12px; }
.save-hint { margin-top: 12px; color: rgba(255,255,255,.78); font-size: 11px; text-align: center; }

.report-hero { padding: 43px 5px 22px; color: #fdf8ec; text-align: center; }
.report-hero h1 { margin: 0; font-size: 13px; letter-spacing: .12em; }
.archetype { margin: 9px 0 4px; font-size: clamp(31px, 5vw, 42px); font-weight: 800; letter-spacing: -.06em; }
.archetype-copy { max-width: 490px; margin: auto; font-size: 15px; }
.keywords { margin: 15px 0; color: #efc266; font-size: 12px; letter-spacing: .13em; }
.rank-list { display: grid; max-width: 570px; gap: 8px; margin: 16px auto 0; }
.rank-line { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; background: rgba(255,255,255,.1); font-size: 13px; text-align: left; }
.rank-line span:first-child { padding: 2px 5px; border-radius: 4px; color: var(--teal-dark); background: #f7e5b9; font-size: 10px; }
.rank-line b { flex: 1; }
.rank-line em { font-style: normal; font-size: 12px; }
.radar { display: block; width: 100%; max-width: 400px; margin: 0 auto; }
.score-row { display: grid; grid-template-columns: 28px 74px minmax(50px, 1fr) 33px; gap: 8px; align-items: center; margin: 11px 0 3px; font-size: 13px; }
.score-n { border-radius: 6px; color: #fff; background: var(--teal); font-size: 11px; line-height: 24px; text-align: center; }
.meter { height: 8px; overflow: hidden; border-radius: 99px; background: #e5e8dc; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--moss), var(--teal)); }
.level { margin-left: 37px; color: var(--muted); font-size: 11px; }
.combo, .interest { padding: 14px; border-radius: 12px; background: #eff3e9; color: var(--ink-soft); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip { padding: 3px 9px; border-radius: 99px; color: var(--teal-dark); background: #d9ebe1; font-size: 11px; }
.talent-card, .career { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fffefa; }
.talent-top { display: flex; align-items: center; gap: 10px; }
.talent-icon { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 11px; background: #f7e7b9; font-size: 22px; }
.talent-top b { font-size: 16px; }
.small { color: var(--muted); font-size: 11px; }
.stars { color: #d8901d; font-size: 12px; letter-spacing: 1px; }
.talent-card h4 { margin: 13px 0 3px; color: var(--teal); font-size: 12px; }
.talent-card h4.warn { color: #9b6413; }
.talent-card ul { margin: 0; padding: 0; list-style: none; }
.talent-card li { position: relative; margin: 4px 0; padding-left: 16px; color: var(--ink-soft); font-size: 12px; }
.talent-card li::before { position: absolute; left: 3px; color: var(--teal); content: "•"; }
details { margin-top: 12px; padding-top: 9px; border-top: 1px dashed var(--line); }
summary { color: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.details-copy { margin: 9px 0 0; color: var(--ink-soft); font-size: 12px; }
.green-note { margin-top: 10px; padding: 10px 11px; border-radius: 9px; color: var(--teal-dark); background: #e8f5ef; font-size: 12px; }
.grow, .caution { margin-top: 9px; padding: 11px; border-radius: 10px; font-size: 12px; }
.grow { border: 1px solid var(--line); background: #fbfaf5; }
.grow b { font-size: 13px; }
.interest b { color: var(--teal-dark); }
.notice { margin-top: 16px; padding: 13px; border-radius: 10px; color: #657477; background: #ecece4; font-size: 11px; }
.career h4 { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0; font-size: 15px; }
.career strong { flex: none; color: var(--teal); font-size: 13px; }
.career p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; }
.career .why { padding: 7px 8px; border-radius: 7px; color: var(--teal-dark); background: #e8f5ef; }
.caution { color: #7a5619; background: #fff1ce; }
.plan { display: grid; gap: 8px; }
.day { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); font-size: 12px; }
.day b { flex: none; padding: 2px 6px; border-radius: 5px; color: #fff; background: var(--teal); font-size: 10px; white-space: nowrap; }
.restart { margin-top: 20px; color: var(--teal-dark); border: 1px solid var(--teal); background: transparent; box-shadow: none; }

.access { min-height: 100vh; padding: clamp(115px, 21vh, 180px) 13px 35px; color: #fffdf4; text-align: center; }
.access-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 26px; border: 1px solid rgba(255,255,255,.6); border-radius: 17px; background: rgba(255,255,255,.08); font-size: 25px; }
.access h1 { margin: 15px 0 12px; font-size: clamp(34px, 8vw, 46px); line-height: 1.13; letter-spacing: -.06em; }
.access > p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.84); font-size: 14px; }
.access form { max-width: 430px; padding: 19px 0 11px; margin: 25px auto 14px; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.access-input { width: 100%; height: 54px; padding: 0 15px; border: 1px solid rgba(255,255,255,.42); border-radius: 10px; color: #fff; background: rgba(255,255,255,.1); font-family: ui-monospace, monospace; font-size: 19px; letter-spacing: .2em; text-align: center; outline: none; }
.access-input::placeholder { color: rgba(255,255,255,.6); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 13px; letter-spacing: 0; }
.access-input:focus { border-color: #efc266; background: rgba(255,255,255,.17); }
.access form .primary { margin-top: 12px; color: var(--ink); background: #f2bd5d; box-shadow: none; }
.access-error { min-height: 20px; margin: 6px 0 -2px; color: #ffe19a; font-size: 12px; text-align: left; }
.access small { color: rgba(255,255,255,.63); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 440px) {
  body { background: linear-gradient(180deg, #17383f 0 15rem, var(--paper) 37rem); }
  .shell { padding-inline: 13px; }
  .hero { padding-top: 52px; }
  .stats { gap: 4px; }
  .stats b { font-size: 18px; }
  .dimension-grid { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 25px 62px minmax(42px, 1fr) 28px; gap: 6px; font-size: 12px; }
  .q-text { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
