/* A quiet, illustrated self-discovery journal. All assets are self-hosted. */
:root {
  color-scheme: light;
  --paper: #faf8f4;
  --surface: #fffefa;
  --ink: #2e3833;
  --muted: #777e75;
  --line: #e7e9df;
  --coral: #c85243;
  --coral-light: #fae9e0;
  --sage: #eaf0e5;
  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .25, 1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.web-privacy-note { margin: 18px 0 0; text-align: center; font-size: 10px; line-height: 1.9; color: var(--muted); }
.save-image-dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 26px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 100px #1c2d3840; overflow: auto; overscroll-behavior: contain; }
.save-image-dialog::backdrop { background: #23373099; backdrop-filter: blur(5px); }
.save-image-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.save-image-heading small { font-size: 9px; letter-spacing: 2px; color: #788365; }
.save-image-heading h2 { font: 600 23px/1.5 "Songti SC", "STSong", serif; margin: 6px 0 0; }
.save-image-heading .icon-button { flex-shrink: 0; font-size: 25px; background: #efefe8; }
.save-image-poster { display: block; width: min(100%, 340px); height: auto; margin: 0 auto; border-radius: 14px; -webkit-touch-callout: default; user-select: auto; box-shadow: 0 5px 20px #2e383318; }
.save-image-actions { margin-top: 20px; text-align: center; }
.save-image-actions a { display: block; text-align: center; text-decoration: none; background: var(--coral); }
.save-image-help { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.save-image-status { margin-top: 8px; font-size: 12px; color: #8e4238; line-height: 1.8; }
.save-image-status:empty { display: none; }
.save-image-dialog :focus-visible { outline: 3px solid #9aad86; outline-offset: 3px; }
@media (max-width: 600px) {
  .save-image-dialog { padding: 20px 16px; border-radius: 22px; }
  .save-image-heading h2 { font-size: 20px; }
  .save-image-poster { max-width: 290px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
html { touch-action: manipulation; }
body { -webkit-touch-callout: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #517a67; outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .65; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
.is-hidden { display: none !important; }
.app-shell { width: 100%; height: 100%; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) max(18px, calc((100% - 960px) / 2)) 12px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 2; }
.brand-button { background: transparent; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; text-align: left; flex: 1; }
.brand-mark { width: 40px; height: 40px; object-fit: cover; border-radius: 13px; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 15px; letter-spacing: .6px; font-weight: 650; }
.brand-copy small { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; }
.icon-button { display: grid; place-items: center; flex: 0 0 40px; height: 40px; padding: 10px; background: #f0f0e9; border-radius: 50%; position: relative; transition: background .2s, transform .2s; }
.icon-button img { width: 22px; height: 22px; opacity: .8; }
.icon-button:active { transform: scale(.94); }
.history-badge { position: absolute; top: -3px; right: -3px; border: 2px solid var(--paper); border-radius: 20px; background: var(--coral); color: white; font-size: 9px; line-height: 16px; min-width: 20px; padding: 0 3px; }
.view { flex: 1 1 auto; min-height: 0; overflow-x: hidden; }
.scroll-container { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.view-inner { max-width: 960px; margin: 0 auto; padding: 22px 18px calc(28px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); animation: page-enter .38s var(--ease) both; }
.home-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.25fr 1fr; padding: 24px 22px 0; overflow: hidden; border-radius: 26px; background: #edf0e6; }
.hero-main { position: relative; z-index: 2; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 1.2px; color: #71806e; line-height: 1.6; }
.home-hero .eyebrow { white-space: nowrap; }
.hero-title { margin-top: 14px; font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif; font-size: clamp(27px, 7.4vw, 42px); line-height: 1.36; font-weight: 600; letter-spacing: 1px; }
.hero-title em { font-style: normal; color: #687958; }
.hero-copy { margin-top: 12px; font-size: 11px; line-height: 1.9; color: #747c6c; }
.hero-actions { margin-top: 20px; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 14px; padding: 13px 18px; font-size: 13px; font-weight: 600; transition: transform .18s var(--ease), background .2s, box-shadow .2s; }
.primary-button { color: #fffefa; background: var(--ink); }
.secondary-button { color: var(--ink); background: #efefe8; border: 1px solid #e2e4da; }
.hero-actions .primary-button { min-height: 42px; border-radius: 40px; background: var(--coral); font-size: 12px; padding: 11px 16px; white-space: nowrap; box-shadow: 0 5px 14px #bc644321; }
.hero-actions .primary-button span { display: inline-block; margin-left: 12px; font-size: 17px; }
.primary-button:active, .secondary-button:active, .save-result-button:active { transform: scale(.97); }
.hero-art { position: relative; align-self: center; height: 208px; min-width: 0; margin-top: 12px; }
.hero-orbit { position: absolute; width: 200px; height: 200px; top: 0; left: -10px; border-radius: 50%; border: 1px solid #d8dece; }
.hero-orbit::after { content: ""; position: absolute; inset: 18px; border-radius: inherit; border: 1px solid #d8dece; }
.hero-print { position: absolute; width: 117px; height: 140px; object-fit: cover; padding: 5px 5px 18px; background: #fffdf3; box-shadow: 0 8px 16px #38443625; border-radius: 4px; animation: print-enter .75s var(--ease) both; }
.hero-print--back { --tilt: 13deg; transform: rotate(13deg); left: 19px; top: 0; }
.hero-print--front { --tilt: -10deg; transform: rotate(-10deg); left: -2px; top: 46px; animation-delay: .08s; }
.hero-art-label { position: absolute; left: 8px; top: 177px; z-index: 1; font-family: "Songti SC", serif; color: #687958; font-size: 10px; transform: rotate(-10deg); white-space: nowrap; }
.hero-spark { position: absolute; right: -4px; top: 129px; color: #c88b50; font-size: 33px; animation: sparkle-enter 1s var(--ease) both; }
.hero-stats { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; border-top: 1px solid #dbe0d1; margin-top: 24px; padding: 15px 0; }
.stat { display: flex; align-items: baseline; gap: 5px; }
.stat strong { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10px; color: #747d6d; }
.hero-history { margin-left: auto; padding: 8px 0 8px 6px; background: transparent; font-size: 10px; color: #65755b; }
.hero-history span { margin-left: 4px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 27px 0 14px; }
.section-heading h2, .result-section h2 { font-size: 17px; line-height: 1.5; font-weight: 650; }
.section-heading p { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.filter-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.filter-chip { min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; font-size: 11px; color: #6e766c; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.filter-chip.is-active { border-color: #d8b4a5; color: #a13f33; background: #fae9e0; font-weight: 600; }
.filter-chip:active { transform: scale(.97); }
.filter-icon { width: 20px; height: 20px; opacity: .85; }
.quiz-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 12px; }
.quiz-card { display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; overflow: hidden; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .24s var(--ease), box-shadow .24s, border-color .24s; }
.card-visual { position: relative; width: 100%; aspect-ratio: 1.08; overflow: hidden; display: block; background: #efeee5; }
.card-icon { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-completed { position: absolute; right: 8px; bottom: 8px; background: #edf5e9ed; color: #466244; padding: 4px 7px; border-radius: 7px; font-size: 9px; }
.card-completed.is-unplayed { background: #fffaf1e8; color: #736b60; }
.option-key--glyph { font-size: 42px; line-height: 1.4; width: 72px; height: 72px; font-family: serif; }
.card-copy { display: flex; flex-direction: column; padding: 13px 12px 15px; width: 100%; flex: 1; }
.card-meta { display: flex; gap: 4px; align-items: center; font-size: 9px; color: #7a826f; line-height: 1.5; margin-bottom: 6px; flex-wrap: wrap; }
.card-copy h3 { font-size: 14px; font-weight: 650; line-height: 1.6; letter-spacing: .1px; }
.card-copy p { margin-top: 7px; color: #81877d; font-size: 10px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-arrow { display: none; }
.quiz-card:active { transform: scale(.975); }
.quiz-stage, .result-wrap { max-width: 680px; }
.quiz-context { display: flex; align-items: center; gap: 10px; padding: 0 0 16px; }
.quiz-context-image { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.quiz-context strong { font-size: 12px; line-height: 1.6; font-weight: 550; flex: 1; }
.quiz-context > span { font-size: 11px; color: #7b8177; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; background: #e9ece2; border-radius: 9px; overflow: hidden; }
.progress-fill { height: 100%; min-width: 5px; border-radius: inherit; background: #94a784; animation: progress-enter .38s var(--ease) both; transform-origin: left; }
.question-panel { padding-top: 27px; }
.question-index { font-size: 10px; color: #869176; letter-spacing: .8px; }
.question-title { margin-top: 12px; font-size: 24px; font-weight: 650; line-height: 1.6; letter-spacing: .3px; overflow-wrap: anywhere; }
.question-hint { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.question-image-wrap { position: relative; overflow: hidden; margin-top: 22px; border: 1px solid var(--line); border-radius: 20px; background: #efede4; }
.question-image { width: 100%; height: auto; }
.image-hotspot { position: absolute; left: var(--hotspot-x); top: var(--hotspot-y); transform: translate(-50%,-50%); min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 50%; padding: 4px; background: #fffef88c; border: 1px solid #fffaf3; }
.image-hotspot span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: white; font-size: 13px; }
.image-hotspot.is-selected { background: #fff; box-shadow: 0 0 0 7px #c8524344; }
.option-list { display: grid; gap: 12px; margin-top: 24px; }
.option-button { position: relative; display: flex; align-items: center; min-width: 0; min-height: 70px; padding: 16px; border: 1px solid #e2e6db; border-radius: 17px; background: var(--surface); text-align: left; transition: transform .18s var(--ease), border-color .18s, background .18s, box-shadow .18s; animation: option-enter .35s var(--ease) both; }
.option-button:nth-child(2) { animation-delay: .025s; }.option-button:nth-child(3) { animation-delay: .05s; }.option-button:nth-child(n+4) { animation-delay: .075s; }
.option-copy { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; }
.option-key { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 5px; border-radius: 10px; background: #f0f1e9; color: #6e7f61; font-size: 12px; font-weight: 650; }
.option-key--word { font-size: 9px; letter-spacing: .3px; border-radius: 6px; padding: 5px 6px; }
.option-text { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.has-visual-options { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
.option-button--visual { padding: 0; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; }
.option-image { width: 100%; aspect-ratio: 1.14; object-fit: contain; background: #fffaf1; }
.option-button--visual .option-copy { align-items: flex-start; padding: 12px 10px 14px; gap: 7px; flex: 1; }
.option-button--visual .option-key { min-width: 23px; min-height: 23px; font-size: 10px; border-radius: 7px; padding: 3px; }
.option-button--visual .option-key--word { font-size: 8px; padding: 5px 3px; }
.option-button--visual .option-text { font-size: 12px; line-height: 1.75; }
.option-button.is-selected { border-color: #718964; background: #edf3e7; box-shadow: inset 0 0 0 1px #718964, 0 5px 15px #50624318; transform: scale(.98); }
.option-button.is-selected .option-key { color: white; background: #718964; }
.option-button.is-selected::after { content: "✓"; position: absolute; right: 8px; top: 8px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: white; background: #617c52; font-size: 12px; animation: check-enter .2s var(--ease) both; }
.option-button:active { transform: scale(.98); }
.quiz-footnote { text-align: center; font-size: 10px; color: #92988c; line-height: 1.8; margin: 22px 0 0; }
.result-hero { background: #edf1e7; border: 1px solid #e1e7d8; border-radius: 26px; padding: 23px 24px 26px; position: relative; overflow: hidden; }
.result-hero::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid #dbe2d0; top: -95px; right: -70px; pointer-events: none; }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.result-label { font-size: 10px; color: #718064; letter-spacing: .4px; }
.result-saved { background: #fffdf6a3; padding: 5px 7px; font-size: 9px; border-radius: 7px; color: #748667; }
.result-test { display: flex; align-items: center; gap: 9px; margin-top: 23px; color: #6e7867; font-size: 11px; }
.result-test-image { width: 38px; height: 38px; object-fit: cover; border-radius: 11px; }
.result-hero h1 { font-family: "Songti SC", "STSong", serif; font-size: 30px; line-height: 1.5; font-weight: 650; letter-spacing: 1px; margin-top: 17px; overflow-wrap: anywhere; animation: result-enter .6s var(--ease) both; }
.result-subtitle { margin-top: 13px; color: #707969; font-size: 13px; line-height: 1.9; white-space: pre-line; }
.result-quote { margin-top: 21px; border-top: 1px solid #d8dfcf; padding-top: 17px; color: #546647; font-family: "Songti SC", serif; font-size: 15px; line-height: 1.9; }
.result-score { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 10px; background: #fffdf4; padding: 9px 12px; margin-top: 18px; border-radius: 10px; }
.result-score strong { font-size: 13px; }.result-score span { color: #78836f; font-size: 10px; }
.insight-list { display: grid; gap: 12px; counter-reset: insight; }
.insight { position: relative; padding: 21px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; counter-increment: insight; }
.insight > strong { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.8; font-weight: 600; overflow-wrap: anywhere; }
.insight > strong::before { content: counter(insight, decimal-leading-zero); flex: 0 0 22px; color: #ab876f; font-size: 10px; line-height: 25px; letter-spacing: .6px; font-weight: 500; }
.insight p { font-size: 13px; line-height: 2; color: #72796e; margin-top: 11px; white-space: pre-line; overflow-wrap: anywhere; }
.metric-list { display: grid; gap: 17px; margin-top: 20px; }
.metric-copy { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #717b69; margin-bottom: 8px; }.metric-copy b { font-size: 11px; color: #677b57; }
.metric-track { height: 7px; background: #edf0e8; border-radius: 10px; overflow: hidden; }
.metric-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#b5c5a6,#7d986b); transform-origin: left; animation: progress-enter .7s var(--ease) both; }
.speed-pill { display: inline-block; margin-top: 14px; padding: 8px 13px; font-size: 12px; color: #9d6044; background: #faf0e1; border-radius: 10px; }
.result-save { margin-top: 26px; }
.save-result-button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px; color: white; background: var(--coral); padding: 17px 18px; border-radius: 17px; box-shadow: 0 7px 17px #c8524320; transition: transform .2s, opacity .2s; }
.save-result-button strong { font-size: 15px; font-weight: 600; letter-spacing: .3px; }.save-result-button span { color: #fff2e5; font-size: 10px; }
.save-result-tip { font-size: 10px; line-height: 1.9; text-align: center; color: #858779; padding: 12px 9px 0; }
.result-actions { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.snail-sleep-promo { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 21px; margin-top: 26px; }
.snail-sleep-mark { flex: 0 0 39px; height: 39px; padding: 8px; border-radius: 12px; background: #f0eee6; }.snail-sleep-mark img { width: 100%; height: 100%; opacity: .7; }
.snail-sleep-copy strong { font-size: 11px; color: #727c6d; font-weight: 550; }.snail-sleep-copy p { margin-top: 4px; font-size: 9px; line-height: 1.9; color: #969b8f; }
.history-header { position: relative; padding: 12px 0 0; }.history-header h1 { font-family: "Songti SC", serif; font-size: 27px; font-weight: 600; line-height: 1.6; margin-top: 12px; }.history-header p { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 7px; }
.text-button { background: transparent; color: #9c7e6b; padding: 10px 0; font-size: 11px; margin-top: 8px; }
.history-summary { display: flex; margin: 10px 0 22px; padding: 19px 22px; border-radius: 20px; background: #ebefe4; gap: 30px; }.summary-tag { display: flex; align-items: baseline; gap: 9px; }.summary-tag strong { font-size: 27px; font-weight: 550; }.summary-tag span { color: #7a836f; font-size: 11px; }
.history-list { display: grid; gap: 10px; }.history-row { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-width: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .18s, background .18s; }.history-row:active { transform: scale(.98); }
.history-icon { flex: 0 0 62px; height: 68px; border-radius: 12px; overflow: hidden; }.history-icon img { width: 100%; height: 100%; object-fit: cover; }.history-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }.history-copy small { font-size: 10px; line-height: 1.6; color: #88907f; }.history-copy strong { font-size: 13px; line-height: 1.7; font-weight: 550; overflow-wrap: anywhere; }.history-date { align-self: center; font-size: 9px; color: #9a9f93; line-height: 2; flex: 0 0 42px; text-align: right; }
.empty-state { padding: 42px 20px; text-align: center; background: #f0f2e9; border-radius: 24px; margin-top: 25px; grid-column: 1/-1; }.empty-illustration { width: 84px; height: 84px; margin: 0 auto 22px; padding: 22px; background: #fffdf7; border-radius: 28px; transform: rotate(-6deg); }.empty-state h2 { font-size: 20px; font-weight: 600; }.empty-state p { max-width: 320px; margin: 12px auto 24px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.bottom-nav { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 52px; padding: 9px 20px calc(9px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); border-top: 1px solid var(--line); background: #fffefa; z-index: 2; }.nav-item { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 102px; min-height: 42px; border-radius: 14px; background: transparent; font-size: 12px; color: #94998d; transition: background .2s, color .2s; }.nav-icon { width: 21px; height: 21px; opacity: .55; }.nav-item.is-active { background: #edf1e7; color: #566b49; font-weight: 600; }.nav-item.is-active .nav-icon { opacity: .85; }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); transform: translate(-50%,8px); opacity: 0; visibility: hidden; pointer-events: none; max-width: calc(100% - 40px); width: max-content; background: #303b32f2; color: #fffdf5; padding: 13px 18px; border-radius: 14px; font-size: 12px; line-height: 1.7; z-index: 10; transition: opacity .2s, transform .2s, visibility .2s; }.toast.is-visible { transform: translate(-50%,0); opacity: 1; visibility: visible; }
@keyframes page-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes option-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes print-enter { from { opacity: 0; transform: translateY(15px) rotate(0); } to { opacity: 1; transform: translateY(0) rotate(var(--tilt)); } }
@keyframes sparkle-enter { from { opacity: 0; transform: scale(.5) rotate(-40deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes progress-enter { from { transform: scaleX(var(--progress-start, 0)); opacity: .5; } to { transform: scaleX(1); opacity: 1; } }
@keyframes check-enter { from { transform: scale(.5); } to { transform: scale(1); } }
@keyframes result-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .quiz-card:hover { transform: translateY(-4px); border-color: #cbd5c2; box-shadow: 0 10px 25px #4854400d; }
  .quiz-card:hover .card-icon { transform: scale(1.035); }
  .option-button:hover { background: #f2f5ed; border-color: #a9baa0; }
  .primary-button:hover, .save-result-button:hover { box-shadow: 0 6px 16px #3d46321c; }
  .history-row:hover { background: #f4f6ef; }
}
@media (min-width: 540px) {
  .view-inner { padding-left: 26px; padding-right: 26px; }
  .home-hero { padding: 32px 34px 0; grid-template-columns: 1fr 1fr; }
  .hero-art { width: 220px; justify-self: center; height: 230px; }
  .hero-print { width: 155px; height: 180px; }.hero-print--back { left: 64px; }.hero-print--front { left: 10px; top: 42px; }.hero-art-label { top: 211px; left: 42px; font-size: 12px; }.hero-spark { right: -12px; top: 150px; }.hero-orbit { width: 250px; height: 250px; top: -20px; }
  .filter-row { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }.filter-chip { flex-direction: column; gap: 7px; font-size: 11px; padding: 11px 3px; }
  .quiz-grid { gap: 20px; grid-template-columns: repeat(3,minmax(0,1fr)); }.card-copy { padding: 15px; }.card-copy h3 { font-size: 15px; }.card-meta { font-size: 10px; }.card-copy p { font-size: 11px; }
  .question-title { font-size: 28px; }.option-image { aspect-ratio: 1.35; }.option-button--visual .option-text { font-size: 14px; }.option-button--visual .option-copy { padding: 17px; }.result-hero { padding: 29px; }.result-hero h1 { font-size: 35px; }.insight p { font-size: 14px; }
}
@media (min-width: 900px) { .quiz-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }.hero-art { justify-self: end; margin-right: 52px; }.hero-copy br { display: none; }.home-hero { grid-template-columns: 1.4fr 1fr; }.hero-title br { display: none; }.hero-main { padding-top: 18px; }.hero-stats { gap: 32px; }.hero-history { font-size: 12px; } }
@media (max-width: 359px) { .view-inner { padding-left: 14px; padding-right: 14px; }.topbar { padding-left: 14px; padding-right: 14px; gap: 7px; }.brand-copy strong { font-size: 14px; }.home-hero { padding: 21px 18px 0; }.hero-title { font-size: 27px; }.home-hero .eyebrow { font-size: 7px; letter-spacing: .7px; }.hero-art { transform: scale(.82); transform-origin: center left; }.hero-stats { gap: 13px; }.stat strong { font-size: 15px; }.stat span, .hero-history { font-size: 9px; }.filter-row { gap: 6px; }.filter-chip { font-size: 10px; gap: 3px; }.filter-icon { width: 18px; height: 18px; }.card-copy { padding: 11px 9px 13px; }.card-copy h3 { font-size: 13px; }.card-meta { font-size: 8px; gap: 3px; }.question-title { font-size: 22px; }.option-button--visual .option-copy { padding: 10px 7px; gap: 5px; }.option-button--visual .option-text { font-size: 11px; }.option-key--word { max-width: 41px; overflow-wrap: anywhere; }.result-hero { padding: 20px; }.result-hero h1 { font-size: 27px; }.history-header h1 { font-size: 24px; }.history-summary { gap: 23px; }.history-icon { flex-basis: 51px; height: 61px; }.bottom-nav { gap: 36px; } }
.option-button { animation-fill-mode: backwards; }
@media (max-width: 539px) {
  .home-hero { padding-top: 18px; }
  .hero-title { font-size: 26px; line-height: 1.25; margin-top: 9px; }
  .hero-copy { font-size: 11px; line-height: 1.7; margin-top: 8px; }
  .hero-actions { margin-top: 10px; }
  .hero-actions .primary-button { min-height: 38px; padding: 9px 14px; }
  .hero-art { height: 170px; margin-top: 0; transform: scale(.85); transform-origin: center left; }
  .hero-stats { margin-top: 14px; padding: 10px 0; }
  .card-visual { aspect-ratio: 1.18; }
}
@media (max-width: 359px) { .hero-art { transform: scale(.78); } }
@media (max-width: 539px) and (max-height: 650px) { .hero-copy { display: none; }.hero-art { height: 143px; transform: scale(.7); transform-origin: top left; }.hero-title { font-size: 25px; }.hero-stats { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Paired and drawn-observation flows follow the existing warm paper UI. */
.preparation-panel { margin-top: 12px; text-align: center; }
.preparation-art { width: 148px; height: 148px; object-fit: cover; border-radius: 28px; margin: 8px auto 24px; display: block; }
.preparation-panel .question-hint { line-height: 1.9; margin: 20px 0 28px; }
.preparation-panel .primary-button { width: 100%; }
.observation-actions { display: grid; gap: 14px; margin-top: 20px; }
.selection-status { margin: 0; color: var(--muted, #697366); font-size: 13px; text-align: center; }
.observation-actions button:disabled { opacity: .42; cursor: default; }
.option-button[aria-pressed="true"] { box-shadow: 0 0 0 2px #789069; }
