@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #f8e9eb;
  --muted: #c9b5c5;
  --rose: #d9acbe;
  --line: #a9849970;
  --serif: "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: #1a151e;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; background: radial-gradient(ellipse at 50% 35%, #50374c 0%, #2c2130 38%, #19151d 76%); }
body::before { content: ""; position: fixed; inset: 22px; border: 1px solid #bd97aa21; pointer-events: none; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #fbe1ba; outline-offset: 5px; }
h1:focus, h2:focus { outline: none; }
button, a, summary { -webkit-user-select: none; user-select: none; }
.app { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.title-screen { position: relative; width: min(100%, 430px, calc((100svh - 48px) * .46258)); box-shadow: 0 20px 100px #09070b90; }
.title-art { display: block; width: 100%; height: auto; }
.art-button { position: absolute; padding: 0; border: 0; background: transparent; border-radius: 18px; transition: background .2s, box-shadow .2s; }
.art-button:hover { background: #fff5f51a; box-shadow: 0 0 20px #eac4d036; }
.art-button:focus-visible { outline-offset: 1px; }
.start-hotspot { top: 74.3%; left: 13%; width: 74%; height: 9%; border-radius: 100px; }
.flow-hotspot { top: 85.5%; left: 20%; width: 25%; height: 8.3%; }
.settings-hotspot { top: 85.5%; left: 60%; width: 17%; height: 8.3%; }
.framed { position: relative; width: min(100%, 470px); border: 1px solid #b091a080; background: #281e2e; box-shadow: 0 24px 100px #09070b80; }
.framed::before { content: ""; position: absolute; pointer-events: none; inset: 7px; border: 1px solid #b091a030; z-index: 1; }
.game-header { padding: 20px 22px 16px; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: .875rem; color: var(--muted); }
.game-header > span:nth-child(2) { letter-spacing: .12em; }
.text-button { padding: 10px 4px; border: 0; background: transparent; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.text-button:hover { color: #fff0f5; }
.text-button:disabled { opacity: .3; }
.eyebrow { margin: 0; text-align: center; font-family: Georgia, serif; font-size: .75rem; letter-spacing: .2em; color: #d6b4c7; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; width: 120px; margin: 20px auto 26px; color: #d2aabf; font-size: .75rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 40px; background: linear-gradient(90deg, transparent, #bd91a5); }
.ornament::after { transform: rotate(180deg); }
.result-screen { max-width: 480px; padding-bottom: 12px; background: linear-gradient(150deg, #3b2a40, #241c2b); }
.result-screen .game-header { padding-bottom: 10px; }
.page-count { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.result-heading { padding: 4px 20px 22px; text-align: center; }
.result-heading h1 { font: 500 1.14rem/1.7 var(--serif); margin: 9px 0 0; letter-spacing: .06em; }
.result-art-wrap { position: relative; margin: 0 20px; }
.result-art { display: block; width: 100%; height: auto; box-shadow: 0 8px 26px #100e1833; }
.result-hotspot { bottom: 2.5%; height: 12%; width: 89%; left: 5.5%; border-radius: 8px; }
.result-details { margin: 18px 24px 6px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.result-details summary { cursor: pointer; line-height: 1.8; }
.result-details h2 { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.result-details p { font-size: 1rem; line-height: 1.9; color: var(--ink); }
.result-actions { display: grid; gap: 7px; padding: 20px 24px 10px; }
.primary-button { border: 1px solid #edc7d8; border-radius: 5px; background: linear-gradient(110deg, #efdae0, #ceb0ca); color: #342338; min-height: 54px; padding: 14px 18px; font-weight: 600; font-size: .9375rem; line-height: 1.65; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.primary-button:hover { background: #f3e0e9; }
.primary-button > span { font-size: 1.2rem; }
.result-note, .match-note { margin: 20px 24px 0; font-size: .875rem; line-height: 1.9; color: #edcedd; }
.match-note { padding: 13px; background: #c69eb614; border: 1px solid #c69eb645; }
.advice-body { padding: 20px 28px 0; }
.advice-body > .eyebrow { display: none; }
.advice-body > .ornament:first-of-type { margin-top: 0; }
.type-pair { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 24px 0 32px; text-align: center; }
.type-pair div { flex: 1; }
.type-pair span { font-size: .75rem; color: var(--muted); }
.type-pair strong { display: block; margin-top: 8px; font: 500 1.18rem var(--serif); }
.advice-body h2 { font: 500 1.65rem/1.85 var(--serif); letter-spacing: .03em; margin: 0 0 22px; }
.advice-message { font-size: 1rem; line-height: 2.2; margin-bottom: 28px; }
.small-step { border: 1px solid #bc94ab80; background: #dbc1d60a; padding: 20px; }
.small-step p:first-child { margin: 0 0 12px; color: #e3bacd; font-size: .875rem; }
.small-step p:last-child { margin: 0; line-height: 1.95; font-size: 1rem; }
.advice-signoff { text-align: center; font: 400 .9375rem/1.8 var(--serif); color: var(--muted); }
dialog { width: min(400px, calc(100% - 36px)); max-height: calc(100svh - 48px); padding: 6px; border: 1px solid #d3afc2; border-radius: 8px; color: var(--ink); background: #302436; box-shadow: 0 20px 100px #0b080dc0; }
dialog::backdrop { background: #151018bf; backdrop-filter: blur(6px); }
.dialog-content { border: 1px solid #a984993d; padding: 23px; }
.dialog-content h2 { font: 500 1.35rem var(--serif); margin: 4px 0 28px; text-align: center; }
.dialog-content p { font-size: .9375rem; line-height: 1.9; }
.dialog-content .primary-button { width: 100%; justify-content: center; }
.dialog-close { display: block; margin: 20px auto 0; min-width: 100px; }
.flow-list { padding-left: 23px; }
.flow-list li { padding-left: 6px; margin-bottom: 24px; }
.flow-list li::marker { color: var(--rose); }
.flow-list strong { font-size: 1rem; font-weight: 500; }
.flow-list p { margin: 7px 0; color: var(--muted); }
.dialog-note { color: var(--muted); }
.setting-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.setting-row input { width: 21px; height: 21px; accent-color: #d7adc5; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
.screen-enter { animation: enter .36s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (max-width: 520px) {
  .app { padding: 0; align-items: start; }
  body::before { display: none; }
  .title-screen { width: min(100%, calc(100svh * .46258)); margin: auto; }
  .app[data-screen="title"] { align-items: center; }
  .framed { border: 0; width: 100%; max-width: 470px; min-height: 100svh; }
  .game-header { padding-top: 16px; }
  .result-screen { padding-top: env(safe-area-inset-top); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .result-art-wrap { margin-left: 16px; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="normal"]) * { animation: none !important; transition: none !important; }
}
