@font-face {
  font-family: "Literary Rounded UI";
  src: url("/assets/fonts/literary-rounded-ui.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literary Rounded Text";
  src: url("/assets/fonts/literary-rounded-text.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LiterArc Author Serif";
  src: url("/assets/fonts/author-name-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
:root {
  color-scheme: light;
  --ink: #fff;
  --paper: #161616;
  --text-secondary: #5c5c5c;
  --text-weak: #737373;
  --text-reading: #3d3d3d;
  --rule: #e0e0e0;
  --focus: #555;
  --serif: "Literary Rounded UI", "Literary Rounded Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --author-name-font: "LiterArc Author Serif", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  font-family: var(--serif);
  font-size: 16px;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); overflow-x: hidden; overflow-x: clip; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
::selection { color: var(--ink); background: var(--paper); }
main { position: relative; width: min(100%, 580px); min-height: 100svh; margin-inline: auto; }
.site-footer { padding: 12px 16px max(18px, env(safe-area-inset-bottom)); color: var(--text-weak); text-align: center; font-size: .625rem; line-height: 1.6; }
.site-footer a { display: inline-block; padding: 8px; }
body[data-page]:not([data-page="home"]) > .site-footer { display: none; }
.home { position: relative; min-height: 100svh; padding: max(60px, env(safe-area-inset-top)) 26px max(60px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.brand-mark { position: relative; display: inline-flex; padding-top: 28px; color: #000; font-family: var(--serif); font-size: clamp(1.875rem, 4.8vw, 2.25rem); font-weight: 400; line-height: 1.12; letter-spacing: .025em; white-space: nowrap; }
.home > .brand-mark { position: absolute; top: max(48px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); }
.brand-mark-arc { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 128%; height: auto; overflow: visible; }
.brand-mark-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.brand-mark--draw .brand-mark-line { animation: literarc-draw 1s cubic-bezier(.22, .61, .36, 1) both; animation-iteration-count: 1; }
@keyframes literarc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .brand-mark--draw .brand-mark-line { animation: none; stroke-dashoffset: 0; } }
.home h1 { color: #000; font-family: var(--serif); font-size: clamp(1.625rem, 7.8vw, 2.7rem); line-height: 1.55; letter-spacing: .05em; font-weight: 500; margin: 0 0 24px .05em; transition: opacity 220ms ease-out; }
.home h1 span { display: block; }
.liquid-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 220ms ease-out; }
.home--liquid-ready .liquid-hero-canvas { opacity: 1; }
.home--liquid-ready > h1 { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .home h1, .liquid-hero-canvas { transition: none; } }
.home > .primary, .home > .meta { position: relative; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 56px; padding: 15px 28px; border: 1px solid var(--rule); border-radius: 28px; background: transparent; color: var(--paper); font-size: 1rem; letter-spacing: .1em; transition: border-color 160ms ease; }
@media (hover: hover) { :is(.primary, .option, .restart-result, .card-lightbox-close):hover { border-color: #aaa; } .back:hover, .skip:hover { color: var(--paper); } }
.primary:disabled { cursor: default; color: var(--text-weak); border-color: var(--rule); }
.home .primary { width: 244px; max-width: 100%; margin-top: 42px; }
.arrow { width: 25px; height: 12px; flex: none; }
.home .meta { margin: 22px 0 0; font-size: .8125rem; color: var(--text-weak); letter-spacing: .08em; }
.page { min-height: 100svh; padding: max(28px, env(safe-area-inset-top)) 26px max(32px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.page-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 14px; }
.back { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--text-secondary); font-size: .875rem; padding: 10px 12px; border: 0; background: transparent; }
.stage { color: var(--text-secondary); font-size: .8125rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.page-body { width: 100%; margin-block: auto; padding-block: 60px; }
.eyebrow { font-size: .8125rem; color: var(--text-weak); letter-spacing: .16em; margin: 0 0 21px; }
.page h1 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.55; font-weight: 400; letter-spacing: .04em; margin: 0 0 18px; }
.page p { color: var(--text-secondary); font-size: .9375rem; line-height: 1.9; }
.page .eyebrow { color: var(--text-weak); font-size: .8125rem; }
.progress { height: 1px; background: var(--rule); margin-top: 22px; overflow: hidden; }
.progress span { height: 1px; display: block; background: var(--paper); }
.quiz-page .page-body { padding-block: 32px; }
.quiz-page h1 { font-size: 1.375rem; line-height: 1.7; margin-bottom: 0; }
.options { display: grid; gap: 14px; margin-top: 30px; }
.option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 17px 16px; min-height: 70px; text-align: left; line-height: 1.7; border: 1px solid var(--rule); border-radius: 24px; background: transparent; color: var(--paper); transition: border-color 160ms ease; }
.option[aria-pressed="true"] { border-color: #888; background: #f7f7f7; }
.option-letter { color: var(--text-secondary); font-size: .875rem; flex-shrink: 0; }
.option-text { min-width: 0; overflow-wrap: anywhere; }
.option-check { margin-left: auto; visibility: hidden; flex-shrink: 0; }
.option[aria-pressed="true"] .option-check { visibility: visible; }
.option:disabled { cursor: default; }
.option { position: relative; }
.option-ripple-canvas { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border-radius: inherit; pointer-events: none; }
.option--rippling > span { opacity: 0; }
.text-ripple-canvas { position: fixed; z-index: 100; pointer-events: none; background: transparent; }
.page .primary { width: 100%; margin-top: 32px; }
.writing-page .page-body { padding-block: 36px; }
.writing-page h1 { font-size: 1.7rem; }
.writing-description { margin: 0 0 30px; }
.writing-label { display: block; color: var(--text-secondary); font-size: .875rem; margin-bottom: 14px; }
textarea { width: 100%; display: block; min-height: 190px; resize: vertical; padding: 20px; border: 1px solid var(--rule); border-radius: 24px; background: var(--ink); color: var(--paper); font-size: 1rem; line-height: 1.8; }
textarea::placeholder { color: var(--text-weak); }
.verify-page input { display: block; width: 100%; min-height: 58px; padding: 16px 20px; border: 1px solid var(--rule); border-radius: 24px; background: var(--ink); color: var(--paper); font-size: 1rem; letter-spacing: .05em; }
.verify-page input::placeholder { color: var(--text-weak); font-size: .875rem; letter-spacing: 0; }
.verify-page .verify-status { min-height: 28px; margin: 16px 0 0; font-size: .875rem; }
.writing-hint { display: flex; justify-content: space-between; gap: 12px; color: var(--text-weak); font-size: .8125rem; margin-top: 14px; }
.skip { display: block; width: 100%; min-height: 48px; margin-top: 14px; padding: 12px; border: 0; background: transparent; color: var(--text-secondary); font-size: .875rem; }
.analyzing-page .page-body { text-align: center; padding-block: 44px; }
.analysis-heading { font-size: 1.7rem !important; }
.analysis-status { min-height: 54px; }
.waiting-copy { display: grid; max-width: 30rem; margin-inline: auto; }
.waiting-copy-layer { grid-area: 1 / 1; align-self: center; min-width: 0; display: grid; gap: 12px; opacity: 0; transition: opacity 320ms ease; }
.waiting-copy-layer--visible { opacity: 1; }
.waiting-copy-credit { font-size: .8em; line-height: 1.65; color: var(--text-weak); overflow-wrap: anywhere; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .analyzing-page .analysis-status--waiting { background-image: linear-gradient(100deg, var(--text-secondary) 0%, var(--text-secondary) 38%, #a0a0a0 50%, var(--text-secondary) 62%, var(--text-secondary) 100%); background-size: 240% 100%; background-position: 100% 0; background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: analysis-text-shimmer 2.6s linear infinite; }
  @keyframes analysis-text-shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .analyzing-page .analysis-status--waiting { animation: none; background-image: none; color: var(--text-secondary); -webkit-text-fill-color: currentColor; }
}
.author-card { display: block; height: auto; max-width: 100%; flex-shrink: 0; border: 1px solid #bcbcbc; }
.author-card-trigger { position: relative; display: block; padding: 0; border: 0; background: none; flex-shrink: 0; cursor: zoom-in; }
.author-card-trigger .author-card { width: 100%; }
.card-revealing > .author-card { visibility: hidden; }
.card-reveal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.author-card-trigger:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.card-lightbox { position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; border: 0; padding: max(64px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--ink); }
.card-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.card-lightbox::backdrop { background: var(--ink); }
.card-lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.card-lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); min-width: 60px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 22px; background: var(--ink); color: var(--paper); font-size: .875rem; }
.result-reveal { min-height: 100svh; padding: max(44px, env(safe-area-inset-top)) 24px max(44px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.result-reveal > .author-card-trigger { width: min(76vw, 300px); }
.reveal-identity { width: 100%; max-width: 36rem; margin-bottom: 36px; }
.result-kicker { margin: 0 0 12px; color: var(--text-secondary); font-size: .875rem; line-height: 1.6; letter-spacing: .14em; }
.result-reveal h1 { font-family: var(--author-name-font); font-size: clamp(1.875rem, 7vw, 2.125rem); font-weight: 400; line-height: 1.28; letter-spacing: .015em; margin: 0; overflow-wrap: anywhere; }
.author-native-name { color: var(--text-secondary); font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", serif; font-size: .9375rem; font-style: normal; line-height: 1.5; margin: 10px 0 0; overflow-wrap: anywhere; background: transparent; }
.home h1:focus, .page h1:focus, .result-reveal h1:focus, .report-identity h1:focus { outline: none; }
.result-reveal .primary { width: min(100%, 264px); margin-top: 32px; font-size: .9375rem; }
.result-report { padding: max(52px, env(safe-area-inset-top)) 22px max(40px, env(safe-area-inset-bottom)); overflow-wrap: anywhere; }
.report-identity { display: flex; flex-direction: column; align-items: center; gap: 28px; margin: 0 8px 100px; text-align: center; }
.report-identity > .author-card-trigger { width: 116px; }
.report-identity > div:last-child { min-width: 0; width: 100%; }
.report-identity h1 { font-family: var(--author-name-font); font-size: clamp(1.875rem, 7vw, 2.125rem); font-weight: 400; line-height: 1.28; margin: 0; }
.result-report :is(h1, h2, h3, p, span, blockquote), .reveal-identity :is(h1, p) { background: transparent; }
.report-section { margin-top: 66px; padding-top: 36px; border-top: 1px solid var(--rule); }
.report-section h2 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.6; font-weight: 400; letter-spacing: .04em; margin: 0 0 28px; }
.report-section p { color: var(--text-reading); font-size: 1.0625rem; line-height: 2; margin: 0 0 26px; }
.report-section p:last-child { margin-bottom: 0; }
.about-you { margin-top: 0; padding-top: 0; border: 0; }
.about-you p:first-of-type { color: var(--paper); }
.literary-image { margin-top: 0; padding-top: 0; margin-bottom: 76px; border: 0; }
.literary-image h2 { font-family: inherit; font-size: .875rem; color: var(--text-secondary); letter-spacing: .12em; margin-bottom: 22px; }
.literary-image .literary-image-word { font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 1.75rem); font-weight: 600; line-height: 1.6; color: var(--paper); letter-spacing: .1em; margin-bottom: 24px; }
.resonances { list-style: none; padding: 0; margin: 0; }
.resonances li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; margin-bottom: 40px; }
.resonances li:last-child { margin-bottom: 0; }
.resonance-number { color: var(--text-weak); font-family: Georgia, serif; font-size: .875rem; padding-top: 6px; }
.resonances h3 { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.7; font-weight: 400; margin: 0 0 18px; }
.core-tension .tension-statement { font-family: var(--serif); font-size: clamp(1.375rem, 6vw, 1.875rem); line-height: 1.8; color: var(--paper); margin: 36px 0; letter-spacing: .015em; }
.matched-work h3 { font-family: var(--serif); font-size: 1.875rem; line-height: 1.6; font-weight: 400; margin: 0 0 28px -.4em; }
.final-sentence { text-align: center; padding-block: 44px 12px; }
.final-sentence h2 { color: var(--text-secondary); font-family: inherit; font-size: .875rem; letter-spacing: .15em; }
.final-sentence blockquote { font-family: var(--serif); font-size: 1.375rem; line-height: 1.9; margin: 40px 0 20px; }
.report-footer { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 24px; text-align: center; }
.restart-result { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--rule); border-radius: 24px; background: transparent; color: var(--text-secondary); font-size: .9375rem; }
.save-share-card { display: flex; width: min(100%, 300px); margin: 0 auto 20px; font-size: .9375rem; }
.share-card-status { color: var(--text-secondary); font-size: .875rem; line-height: 1.7; margin: 0 0 20px; }
.share-card-status:empty { display: none; }
.share-card-dialog { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: max(64px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); border: 0; background: var(--ink); overflow-y: auto; }
.share-card-dialog[open] { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.share-card-dialog::backdrop { background: var(--ink); }
.share-card-preview { display: block; width: min(100%, 450px, calc((100dvh - 240px) * .75)); height: auto; flex-shrink: 0; }
.share-card-save { min-height: 48px; flex-shrink: 0; }
.share-card-hint { max-width: 360px; margin: 0; font-size: .8125rem; line-height: 1.7; color: var(--text-secondary); text-align: center; }
@media (min-width: 700px) {
  .home { padding-inline: 40px; }
  .page { padding-inline: 42px; }
  .result-report { padding-inline: 28px; }
}
@media (max-height: 700px) {
  .home { padding-block: 36px; }
  .home h1 { margin-bottom: 18px; }
  .home .primary { margin-top: 28px; }
  .page-body { padding-block: 34px; }
  .quiz-page .page-body, .writing-page .page-body { padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; animation: none !important; } .scroll-blur-pending { filter: none !important; } }
#payment-flow [hidden] { display: none; }
