/* EASYMODE: a little discovery, one choice at a time. */
:root {
  color-scheme: light;
  --paper: #faf8f2;
  --surface: #fffefa;
  --ink: #262725;
  --muted: #74736d;
  --line: #e6e3d9;
  --accent: #fb785d;
  --accent-soft: #ffebe4;
  --butter: #f4edcf;
  --radius: 24px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
img, svg { max-width: 100%; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; overflow-wrap: anywhere; text-wrap: pretty; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
[hidden], .screen[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.screen { display: none; }
.screen.on { display: block; }
::selection { color: var(--ink); background: var(--accent-soft); }

.site-header {
  width: min(100% - 80px, 1100px);
  height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0; border: 0; background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1.7px solid var(--ink);
  border-radius: 12px;
  background: var(--accent);
  font-size: 21px; font-weight: 900; line-height: 1;
  transform: rotate(-7deg);
}
.brand-word { display: block; font-size: 16px; line-height: 1.1; font-weight: 900; letter-spacing: -.06em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.1; font-weight: 500; letter-spacing: .03em; }
.header-note { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.icon-button {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 19px; line-height: 1;
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.icon-button svg { width: 18px; height: 18px; }
.icon-button:active { transform: scale(.94); }
.icon-button[aria-pressed="true"] { background: var(--butter); border-color: #d1c79c; }

.home-layout {
  width: min(100% - 80px, 1100px);
  margin: 0 auto;
  padding: 73px 0 68px;
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: 48px;
}
.home-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.eyebrow .dot, .eyebrow > i, .eyebrow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.edition { color: #a09b8d; font-size: 9px; font-weight: 500; letter-spacing: .06em; }
.home-copy h1 { margin: 21px 0; font-size: clamp(44px, 4.7vw, 66px); font-weight: 900; line-height: 1.3; letter-spacing: -.06em; }
.accent-text { color: #c55c46; color: color-mix(in srgb, var(--accent) 77%, var(--ink)); }
.home-description { color: #66655f; font-size: 14px; line-height: 1.95; }
.home-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; }
.meta-chip { display: inline-flex; gap: 6px; align-items: center; min-height: 29px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 7px; color: #696861; font-size: 10px; font-weight: 600; }
.meta-chip svg { width: 13px; height: 13px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.6;
  text-align: center; text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.primary-button { color: #fff; background: var(--ink); }
.secondary-button { color: var(--ink); background: transparent; border-color: #d9d6cc; }
.primary-button:active, .secondary-button:active { transform: scale(.97); }
.primary-button:disabled, .secondary-button:disabled { opacity: .5; }
.primary-button .button-arrow { margin-left: 20px; font-size: 19px; line-height: 1; font-weight: 400; transition: transform .2s var(--ease); }
.tiny-note { margin-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.resume-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; font-size: 11px; }
.resume-card .secondary-button { min-height: 44px; padding: 8px 15px; margin-left: auto; font-size: 11px; }
.resume-card p { color: var(--muted); }
.resume-card > .text-button { margin-left: auto; }
.home-visual { position: relative; min-width: 0; padding: 5px 0 12px; }
.hero-scene { width: 100%; max-width: 465px; margin: auto; aspect-ratio: 1.15; }
.hero-scene > svg { width: 100%; height: 100%; object-fit: contain; overflow: visible; }
.hero-scene .km-illustration, .result-mascot .km-illustration, .scene-companion .km-illustration { width: 100%; height: 100%; max-width: none; }
.hero-scene .km-illustration svg, .result-mascot .km-illustration svg, .scene-companion .km-illustration svg { width: 100%; height: 100%; object-fit: contain; }
.floating-note { position: absolute; top: 2%; right: -1%; padding: 10px 14px; color: #696659; border: 1px solid #dfd9c2; border-radius: 11px; background: var(--butter); font-size: 11px; line-height: 1.7; transform: rotate(7deg); }
.visual-caption { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--muted); font-size: 10px; letter-spacing: .09em; }
.visual-caption > span[aria-hidden] { color: var(--accent); font-size: 19px; line-height: 1; }
.how-it-works {
  width: min(100% - 80px, 1100px); margin: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 31px 0 36px;
  border-top: 1px solid var(--line);
}
.step-item { padding: 0 30px; border-left: 1px solid var(--line); }
.step-item:first-child { padding-left: 0; border-left: 0; }
.step-item:last-child { padding-right: 0; }
.step-item small { display: block; margin-bottom: 7px; font-size: 9px; font-weight: 700; letter-spacing: .13em; color: var(--muted); }
.step-item b { display: block; font-size: 13px; font-weight: 750; }
.step-item p { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 6px; }
.site-footer { width: min(100% - 80px, 1100px); margin: 0 auto; padding: 21px 0 27px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 10px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }

.quiz-shell { width: min(100% - 48px, 620px); margin: 0 auto; padding: 24px 0 max(28px, env(safe-area-inset-bottom)); }
.quiz-topbar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; margin-bottom: 22px; }
.quiz-name { text-align: center; font-size: 12px; font-weight: 700; }
.question-count { min-width: 44px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.question-count small { color: var(--muted); font-weight: 400; font-size: 10px; }
.progress-track { height: 4px; overflow: hidden; border-radius: 4px; background: var(--line); }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .45s var(--ease); }
.round-pips { min-height: 22px; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; }
.round-pips i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #dfdcd1; transition: background .2s, transform .2s; }
.round-pips i.done { background: var(--accent); }
.round-pips i.current { background: var(--ink); transform: scale(1.45); }
.question-stage { position: relative; padding-top: 7px; }
.question-scene { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 350px); height: 180px; margin: 0 auto 11px; }
.question-scene svg { width: 100%; height: 100%; object-fit: contain; overflow: visible; }
.anime-frame { width: 140px; height: 140px; aspect-ratio: 1; flex: 0 0 140px; overflow: hidden; border: 4px solid var(--surface); border-radius: 24px; transform: rotate(-3deg); box-shadow: 0 4px 12px #26272509; }
.anime-picture { width: 100%; height: 100%; background-image: url(illustrations/scenes.jpg); background-size: 400% 300%; background-repeat: no-repeat; }
.question-stage.entering .anime-picture { animation: illustration-enter .4s var(--ease) both; }
.scene-companion { width: 180px; height: 140px; flex: 0 1 180px; min-width: 0; }
.scene-companion svg { width: 100%; height: 100%; }
.question-heading { text-align: center; margin: 0 auto 27px; }
.question-heading .eyebrow { justify-content: center; color: var(--muted); font-size: 10px; }
.question-heading h2 { margin-top: 11px; font-size: clamp(23px, 3.2vw, 29px); line-height: 1.5; font-weight: 850; letter-spacing: -.04em; }
.question-hint { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.choices { display: grid; gap: 12px; }
.choice {
  width: 100%; min-height: 79px;
  display: flex; align-items: center; gap: 15px;
  padding: 16px 19px;
  border: 1px solid #dedbd1;
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
  transition: transform .17s var(--ease), background .17s, border-color .17s, opacity .17s, box-shadow .17s;
}
.choice-key { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #8a877d; background: var(--paper); font-size: 10px; font-weight: 600; }
.choice-text { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.75; overflow-wrap: anywhere; }
.choice-check { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; color: var(--ink); border-radius: 50%; background: #fff9; opacity: 0; transform: scale(.55); transition: opacity .15s, transform .2s var(--ease); }
.choice:active { transform: scale(.985); }
.choice.is-selected { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice.is-selected .choice-key { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.choice.is-selected .choice-check { opacity: 1; transform: scale(1); }
.choice.is-muted { opacity: .48; }
.quiz-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: none; }
.text-button:disabled { opacity: .35; }
.save-status { color: #74736d; font-size: 10px; }
.quiz-feedback { min-height: 27px; margin-top: 10px; text-align: center; color: var(--muted); font-size: 11px; }
.milestone { color: #605d4f; background: var(--butter); padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; }

.result-shell { width: min(100% - 64px, 950px); margin: auto; padding: 28px 0 48px; }
.result-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; font-size: 11px; }
.result-topbar > span { color: var(--muted); }
.result-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: stretch; }
.result-card { position: relative; overflow: hidden; padding: 33px 27px 32px; border: 1px solid #e1dcc7; border-radius: var(--radius); background: #f5efda; text-align: center; }
.result-card .eyebrow { justify-content: center; color: #817961; font-size: 10px; }
.result-mascot { width: 150px; height: 120px; margin: 17px auto 6px; }
.result-mascot svg { width: 100%; height: 100%; object-fit: contain; overflow: visible; }
.result-title { position: relative; margin: 12px auto 17px; font-size: clamp(36px, 4.5vw, 54px); font-weight: 900; line-height: 1.27; letter-spacing: -.055em; }
.result-title > span { display: block; }
.result-title > small { display: block; margin-top: 12px; font-size: 15px; letter-spacing: 0; line-height: 1.6; }
.result-lead { max-width: 330px; margin: auto; color: #756f5f; font-size: 12px; line-height: 1.9; }
.result-tag { display: inline-block; margin-top: 19px; padding: 5px 11px; border: 1px solid #ddd5b9; border-radius: 999px; color: #7b745f; background: #fff6; font-size: 9px; }
.result-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.insight-card { padding: 25px 25px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.insight-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 750; }
.insight-card h2 { font-size: 15px; font-weight: 750; line-height: 1.5; }
.card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.card-heading > span { color: #9a9486; font-size: 8px; font-weight: 500; letter-spacing: .1em; }
.insight-card > p { color: var(--muted); font-size: 11px; line-height: 1.85; }
.candidate-list { display: grid; gap: 19px; margin-top: 25px; }
.candidate-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 8px; min-width: 0; }
.candidate-label { grid-column: 1; font-size: 11px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.candidate-value { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.candidate-value small { color: #a29d91; font-size: 8px; }
.candidate-label small { color: var(--muted); font-size: 10px; font-weight: 400; }
.candidate-track { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 6px; overflow: hidden; border-radius: 9px; background: #efede6; }
.candidate-track > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; animation: meter-reveal .65s var(--ease) both; }
.candidate-row:nth-child(2) .candidate-track > i { opacity: .65; animation-delay: .08s; }
.candidate-row:nth-child(n + 3) .candidate-track > i { opacity: .4; animation-delay: .15s; }
.next-card { margin-top: 20px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.next-card h3 { margin-bottom: 9px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.next-card p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.next-card .primary-button, .next-card .secondary-button { margin-top: 19px; margin-right: 8px; }
.next-card .note { margin-top: 11px; }
.next-card > .eyebrow { margin-bottom: 9px; font-size: 9px; }
.result-aside > .next-card { margin-top: 0; }
.instinct-card { position: relative; margin-top: 16px; padding: 25px 28px; border: 1px solid #e2ddcd; border-radius: var(--radius); background: #f2efe4; }
.instinct-card h3 { margin-bottom: 7px; font-size: 17px; line-height: 1.6; }
.instinct-card p { max-width: 560px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.instinct-card .primary-button, .instinct-card .secondary-button { margin-top: 17px; }
.instinct-card .eyebrow { margin-bottom: 7px; color: #928c7a; font-size: 9px; }
.instinct-symbols { display: flex; align-items: center; gap: 5px; margin-bottom: 13px; }
.instinct-symbols > span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d4d1c2; border-radius: 50%; background: #fff9; font-size: 11px; }
.instinct-symbols > span:nth-child(2) { transform: translateY(-3px); background: var(--butter); }
.instinct-symbols > span:nth-child(3) { background: var(--accent-soft); }
.all-results { margin-top: 17px; border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; background: #fff9; }
.all-results summary { display: list-item; min-height: 58px; align-content: center; padding: 17px 0; cursor: pointer; font-size: 12px; font-weight: 650; }
.all-results .candidate-list { margin-top: 5px; margin-bottom: 26px; }
.all-results > p { padding-bottom: 20px; font-size: 11px; color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.result-actions .secondary-button { min-height: 46px; font-size: 11px; padding: 10px 18px; }
.result-actions > .text-button { padding-inline: 9px; }
.note { margin-top: 14px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.instinct-stack { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; margin: 14px 0 17px; }
.instinct-stack span { display: inline-flex; justify-content: center; min-width: 66px; padding: 12px 15px; border-radius: 16px; background: #fff9; font-size: 23px; font-weight: 800; text-transform: uppercase; }
.instinct-stack span:first-child { color: var(--ink); background: var(--accent); }
.instinct-stack span small { display: inline-block; align-self: center; margin-left: 8px; color: #867e66; font-size: 12px; font-weight: 400; }

.dialog-sheet { width: min(100% - 32px, 435px); max-height: calc(100dvh - 40px); margin: auto; overflow-y: auto; padding: 32px; border: 1px solid var(--line); border-radius: 28px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 100px #26272526; }
.dialog-sheet::backdrop { background: #24272265; backdrop-filter: blur(6px); }
.dialog-sheet[open] { animation: dialog-enter .25s var(--ease); }
.dialog-kicker { display: block; margin-bottom: 15px; padding-right: 30px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .09em; }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 44px; height: 44px; border-color: transparent; }
.dialog-sheet h2 { font-size: 25px; line-height: 1.5; letter-spacing: -.035em; margin-bottom: 13px; }
.dialog-sheet p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.ad-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.ad-summary span { padding: 7px 10px; border-radius: 7px; background: #ece9dc; color: #76705d; font-size: 10px; }
.dialog-actions { display: grid; gap: 10px; margin-top: 24px; }
.dialog-actions .primary-button, .dialog-actions .secondary-button { width: 100%; }
.dialog-actions > .text-button { justify-content: center; }
.status-message { min-height: 1.6em; color: #9b4134; font-size: 11px; line-height: 1.8; margin-top: 13px; }
.status-message:empty { display: none; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 36px); padding: 12px 20px; border: 1px solid #ffffff17; border-radius: 999px; color: #fff; background: var(--ink); box-shadow: 0 6px 25px #2627251c; font-size: 11px; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.is-busy { cursor: progress; }
.is-busy .button-arrow { animation: busy-breathe 1.1s ease-in-out infinite; }

/* Each response receives one brief, legible acknowledgement. */
.question-stage.entering, .reveal-enter { animation: reveal-enter .33s var(--ease) both; }
.press-pop { animation: press-pop .28s var(--ease); }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: 22%; left: 50%; width: 7px; height: 11px; background: var(--accent); border-radius: 2px; opacity: 0; animation: confetti-fall 1.1s var(--ease) both; }
.confetti i:nth-child(1) { --drift: -130px; --spin: -160deg; left: 30%; }
.confetti i:nth-child(2) { --drift: 110px; --spin: 120deg; left: 65%; animation-delay: .04s; background: #d2bd73; }
.confetti i:nth-child(3) { --drift: -85px; --spin: 80deg; left: 40%; animation-delay: .08s; background: #a8bfa0; }
.confetti i:nth-child(4) { --drift: 65px; --spin: -110deg; left: 55%; animation-delay: .02s; background: #aab5d1; }
.confetti i:nth-child(5) { --drift: -160px; --spin: 110deg; left: 35%; animation-delay: .1s; height: 6px; }
.confetti i:nth-child(6) { --drift: 155px; --spin: 160deg; left: 60%; animation-delay: .06s; background: #d2bd73; height: 6px; }
.confetti i:nth-child(7) { --drift: -45px; --spin: -60deg; animation-delay: .12s; background: #aab5d1; }
.confetti i:nth-child(8) { --drift: 40px; --spin: 120deg; animation-delay: .07s; background: #a8bfa0; }

/* SVG illustration hooks; transforms stay attached to their own artwork. */
.scene-float, .scene-bob { transform-box: fill-box; transform-origin: center; animation: scene-float 4s ease-in-out infinite; }
.scene-bob { animation-duration: 3.2s; animation-delay: -.9s; }
.scene-sway { transform-box: fill-box; transform-origin: 50% 90%; animation: scene-sway 5s ease-in-out infinite; }
.scene-blink { transform-box: fill-box; transform-origin: center; animation: scene-blink 6s linear infinite; }
.scene-spark { transform-box: fill-box; transform-origin: center; animation: scene-spark 3.4s ease-in-out infinite; }
.scene-orbit { transform-box: fill-box; transform-origin: center; animation: scene-orbit 20s linear infinite; }

@keyframes reveal-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes press-pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.025); } }
@keyframes meter-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes busy-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes illustration-enter { from { opacity: .55; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes scene-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes scene-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes scene-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.12); } }
@keyframes scene-spark { 0%, 100% { opacity: .6; transform: scale(.9) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.08) rotate(8deg); } }
@keyframes scene-orbit { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift, 40px), 290px) rotate(var(--spin, 120deg)); } }

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover { background: #efede4; border-color: #ccc8bc; }
  .primary-button:hover { background: #42433e; transform: translateY(-2px); box-shadow: 0 6px 0 #2627250b; }
  .primary-button:hover .button-arrow { transform: translateX(3px); }
  .secondary-button:hover { background: #ece9df; border-color: #bdb8a9; }
  .choice:not(:disabled):hover { background: #fff; border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 0 #26272505; }
  .text-button:not(:disabled):hover { color: var(--ink); }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 40px); height: 60px; gap: 14px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; font-size: 18px; }
  .brand-word { font-size: 14px; }
  .brand small { font-size: 8px; margin-top: 4px; }
  .header-note { font-size: 9px; letter-spacing: 0; }
  .site-header > .icon-button:last-child { margin-left: auto; }
  .header-note + .icon-button { margin-left: 0 !important; }
  .home-layout { width: calc(100% - 48px); grid-template-columns: 1fr; gap: 20px; padding: 34px 0 27px; }
  .home-copy { text-align: center; }
  .home-copy > .eyebrow { justify-content: center; font-size: 10px; }
  .home-copy h1 { margin: 15px 0; font-size: clamp(36px, 9.8vw, 52px); line-height: 1.28; letter-spacing: -.055em; }
  .home-description { font-size: 12px; line-height: 1.9; }
  .home-meta { margin: 17px 0 19px; justify-content: center; gap: 6px; }
  .meta-chip { min-height: 26px; padding: 3px 8px; font-size: 9px; }
  .home-copy > .primary-button { width: min(100%, 310px); min-height: 52px; }
  .tiny-note { margin-top: 10px; font-size: 9px; }
  .resume-card { text-align: left; }
  .home-visual { padding-top: 0; }
  .hero-scene { height: 225px; width: min(100%, 340px); aspect-ratio: auto; }
  .floating-note { top: 5%; right: calc(50% - 145px); padding: 7px 10px; font-size: 9px; }
  .visual-caption { font-size: 9px; }
  .how-it-works { width: calc(100% - 48px); padding: 22px 0 25px; gap: 14px; }
  .step-item { padding: 0 0 0 13px; }
  .step-item small { font-size: 8px; margin-bottom: 5px; }
  .step-item b { font-size: 11px; line-height: 1.6; }
  .step-item p { font-size: 9px; line-height: 1.9; }
  .site-footer { width: calc(100% - 48px); padding: 17px 0 25px; font-size: 9px; gap: 8px; }
  .quiz-shell { width: min(100% - 40px, 540px); padding-top: 17px; }
  .quiz-topbar { gap: 10px; margin-bottom: 16px; }
  .quiz-name { font-size: 11px; }
  .question-stage { padding-top: 2px; }
  .question-scene { width: min(100%, 310px); height: 150px; margin-bottom: 7px; gap: 5px; }
  .anime-frame { width: 128px; height: 128px; flex-basis: 128px; border-width: 3px; border-radius: 23px; }
  .scene-companion { width: 180px; height: 140px; flex-basis: 180px; }
  .question-heading { margin-bottom: 20px; }
  .question-heading h2 { margin-top: 9px; font-size: 23px; line-height: 1.5; letter-spacing: -.04em; }
  .question-heading .eyebrow { font-size: 9px; }
  .question-hint { font-size: 10px; margin-top: 7px; }
  .choices { gap: 10px; }
  .choice { min-height: 74px; padding: 13px 14px; gap: 12px; border-radius: 16px; }
  .choice-text { font-size: 14px; line-height: 1.75; }
  .choice-key { width: 28px; height: 28px; flex-basis: 28px; font-size: 9px; }
  .choice-check { width: 20px; height: 20px; flex-basis: 20px; font-size: 12px; }
  .quiz-footer { margin-top: 5px; }
  .quiz-feedback { min-height: 25px; font-size: 10px; }
  .result-shell { width: calc(100% - 40px); padding: 17px 0 35px; }
  .result-topbar { margin-bottom: 15px; font-size: 10px; }
  .result-grid { grid-template-columns: 1fr; gap: 14px; }
  .result-card { padding: 26px 22px 29px; border-radius: 23px; }
  .result-mascot { width: 132px; height: 100px; margin-top: 12px; }
  .result-title { font-size: 44px; line-height: 1.23; margin-top: 6px; margin-bottom: 15px; }
  .result-title > small { font-size: 13px; }
  .result-lead { font-size: 11px; }
  .result-tag { margin-top: 15px; }
  .insight-card { padding: 22px; border-radius: 23px; }
  .insight-card h3 { font-size: 14px; }
  .candidate-list { margin-top: 21px; gap: 17px; }
  .next-card, .instinct-card { padding: 22px; border-radius: 23px; margin-top: 14px; }
  .next-card h3 { font-size: 17px; }
  .next-card p, .instinct-card p { font-size: 11px; }
  .next-card .primary-button, .next-card .secondary-button, .instinct-card .primary-button, .instinct-card .secondary-button { width: 100%; margin-right: 0; font-size: 12px; padding-inline: 15px; }
  .all-results { padding: 0 21px; }
  .result-actions { gap: 8px; }
  .result-actions .secondary-button { flex: 1; font-size: 10px; padding-inline: 12px; }
  .dialog-sheet { padding: 27px 24px; border-radius: 25px; }
  .dialog-sheet h2 { font-size: 23px; }
}

@media (max-width: 370px) {
  .site-header { width: calc(100% - 32px); }
  .header-note { display: none; }
  .header-note + .icon-button { margin-left: auto !important; }
  .home-layout, .how-it-works, .site-footer { width: calc(100% - 36px); }
  .home-copy h1 { font-size: 35px; }
  .home-meta { gap: 4px; }
  .meta-chip { font-size: 8px; padding-inline: 7px; }
  .hero-scene { height: 202px; }
  .step-item { padding-left: 10px; }
  .how-it-works { gap: 10px; }
  .quiz-shell, .result-shell { width: calc(100% - 32px); }
  .question-heading h2 { font-size: 22px; }
  .choice { padding-inline: 12px; gap: 9px; }
  .choice-text { font-size: 14px; }
  .result-title { font-size: 40px; }
}

@media (max-height: 740px) and (max-width: 760px) {
  .quiz-shell { padding-top: 11px; }
  .quiz-topbar { margin-bottom: 11px; }
  .question-scene { height: 125px; }
  .anime-frame { width: 110px; height: 110px; flex-basis: 110px; border-radius: 20px; }
  .scene-companion { width: 160px; height: 115px; flex-basis: 160px; }
  .question-heading { margin-bottom: 15px; }
  .question-heading h2 { font-size: 22px; }
  .question-hint { margin-top: 5px; }
}

body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
