/* 한지와 먹, 옛 도해를 담은 작은 관상 책. 공통 촬영·스캔 스타일은 play.css를 쓴다. */
:root {
  color-scheme: light;
  --bg: #f7f3e9; --fg: #282f2b; --dim: #63665b; --line: #ddd7c8;
  --glass: #fffcf5; --acc: #28574a; --acc2: #28574a; --acc3: #28574a;
  --ok: #28574a; --no: #a12e27; --gold: #80622f;
}
html { background: var(--bg); }
body {
  background: radial-gradient(ellipse at 50% 180px, #e6eadb66, transparent 360px), var(--bg);
  font-size: 15px;
}
[hidden] { display: none !important; }
a { color: var(--acc); }
.nav, .hero, main, footer { max-width: 600px; }
.nav { padding: 12px 16px 0; gap: 12px; flex-wrap: nowrap; }
.nav .back { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--dim); }
.app-name { font: 700 16px/1.5 'Noto Serif KR', serif; letter-spacing: .06em; }
.seal { display: grid; place-items: center; width: 34px; height: 34px; color: #a12e27; border: 1px solid #a12e27; border-radius: 4px; font: 700 15px 'Noto Serif KR', serif; transform: rotate(-5deg); }
.hero { padding: 26px 16px 16px; }
h1 { color: var(--fg); font: 700 clamp(28px, 8vw, 38px)/1.48 'Noto Serif KR', serif; letter-spacing: -.06em; }
.lede { margin: 12px auto 0; font-size: 14px; line-height: 1.8; }
.hero-art { margin: 16px auto 12px; }
.hero-art img { display: block; width: 210px; height: 210px; object-fit: contain; margin: auto; }
.hero-art figcaption { margin-top: 8px; color: var(--gold); font-size: 11px; letter-spacing: .04em; }
.privacy { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--acc); font-size: 12px; }
.privacy::before { content: ''; width: 9px; height: 11px; border: 1.5px solid currentColor; border-radius: 5px 5px 4px 4px; }
main { padding: 0 16px 40px; }
.stage { padding: 18px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 8px 24px #34382d08; backdrop-filter: none; }
.row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cta, .file { display: flex; position: relative; align-items: center; justify-content: center; min-height: 50px; width: 100%; padding: 12px 16px; border-radius: 12px; font: 700 15px/1.5 'Noto Sans KR', sans-serif; }
.cta { color: #fffcf5; background: var(--acc); border: 1px solid var(--acc); box-shadow: none; }
.cta:hover, .cta.go:hover { background: #21493e; border-color: #21493e; }
.cta.go { color: #fffcf5; background: var(--acc); border: 1px solid var(--acc); }
.cta:disabled { opacity: 1; background: #e3e4d9; color: #596052; border-color: #c6c9ba; }
.file { min-height: 46px; background: transparent; color: var(--acc); border: 1px solid #a6b5a8; cursor: pointer; font-size: 14px; }
.file:hover { color: var(--acc); background: #edf0e5; }
.file input { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
:focus-visible, .file:focus-within { outline: 3px solid var(--acc); outline-offset: 4px; }
.hint { margin-top: 14px; font-size: 12px; line-height: 1.85; }
.hint.nosave { margin-top: 6px; font-size: 11px; }
.cam { width: 100%; border-radius: 14px; }
.live-tag { position: absolute; top: 12px; left: 12px; right: 12px; padding: 8px 12px; background: #282f2bf2; color: white; border-radius: 8px; font-size: 13px; }
.live-tag.ok { background: #28574af2; }
.elements { margin: 30px 0; text-align: center; }
.elements h2 { margin: 0 0 14px; font: 500 15px/1.6 'Noto Serif KR', serif; }
.element-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.element-row span { font: 700 14px/1.5 'Noto Serif KR', serif; }
.element-row img { display: block; width: 48px; height: 48px; object-fit: contain; margin: 0 auto 7px; }
.element-row small { color: var(--gold); font-size: 11px; font-weight: 500; }
.elements > p { margin: 14px 0 0; color: var(--dim); font-size: 12px; line-height: 1.85; }
.out { display: block; margin: 0; }
.out:empty { display: none; }
.reading-title { margin: 32px 0 20px; text-align: center; }
.reading-title > span { color: var(--gold); font: 500 22px 'Noto Serif KR', serif; }
.reading-title h2 { margin: 6px 0; font: 700 25px/1.5 'Noto Serif KR', serif; letter-spacing: -.04em; }
.reading-title p { margin: 0; font-size: 12px; color: var(--dim); }
.gs-card { padding: 22px 20px; margin: 12px 0; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; }
.gs-card p { margin: 12px 0 0; line-height: 1.85; }
.gs-card .gs-kicker { margin: 0; color: var(--dim); font-size: 11px; }
.gs-head { position: relative; text-align: center; background: #f0eedf; border-color: #d5cfb7; padding: 24px 24px 28px; }
.gs-head::before, .gs-head::after { content: ''; position: absolute; width: 14px; height: 14px; border-color: #a28c5b; border-style: solid; }
.gs-head::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.gs-head::after { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.shape-art { display: block; width: 120px; height: 120px; margin: 0 auto 14px; object-fit: contain; }
.gs-head h3 { margin: 5px 0 0; font: 700 30px/1.5 'Noto Serif KR', serif; letter-spacing: -.03em; }
.gs-head .gs-look { margin-top: 4px; font-size: 13px; color: var(--gold); }
.gs-head > p:last-child { font-size: 14px; }
.gs-today { background: #eaf0e6; border-color: #c6d2c1; }
.today-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.today-heading h3 { margin: 0; font: 700 17px/1.6 'Noto Serif KR', serif; color: var(--acc); }
.today-heading span { color: var(--acc); font-size: 11px; }
.gs-today > p { font-size: 14px; }
.parts-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin: 28px 2px 14px; font: 700 17px/1.6 'Noto Serif KR', serif; }
.parts-title span { font: 400 11px 'Noto Sans KR', sans-serif; color: var(--dim); }
.parts-grid { display: grid; gap: 12px; }
.gs-part { margin: 0; }
.part-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.part-heading img { flex: none; width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: #f0eedf; padding: 5px; }
.part-heading h4 { margin: 3px 0 0; font: 700 21px/1.5 'Noto Serif KR', serif; }
.gs-band { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 500; border: 1px solid #c7cebe; border-radius: 6px; color: var(--acc); background: #edf1e7; }
.gs-band.b1 { color: #725321; background: #f4eddb; border-color: #d9cca9; }
.gs-band.b-1 { color: #49566b; background: #edf0f3; border-color: #cbd1dc; }
.gs-line { font-size: 15px; }
.gs-card .gs-about { font-size: 12px; color: var(--dim); margin-top: 14px; }
.gs-card .gs-try { margin-top: 18px; padding: 13px 14px; border-left: 2px solid #9bab8c; border-radius: 0 10px 10px 0; background: #f1f3e9; font-size: 13px; }
.gs-try span { display: block; font-size: 10px; color: var(--acc); font-weight: 700; margin-bottom: 4px; }
.result-note { margin: 16px 8px 0; text-align: center; }
.method { padding: 24px 4px 0; border-top: 1px solid var(--line); }
.method h2 { margin: 0; font: 700 22px/1.6 'Noto Serif KR', serif; }
.method-intro { margin: 10px 0 20px; font-size: 13px; color: var(--dim); }
.method ul { padding: 0; margin: 0; list-style: none; }
.method li { padding: 14px 0; border-top: 1px solid #e5dfd1; color: var(--dim); font-size: 12px; line-height: 1.9; }
.method li b { display: block; margin-bottom: 4px; font-size: 13px; color: var(--fg); }
footer { padding: 0 16px 28px; font-size: 11px; line-height: 1.9; }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
footer small { display: block; margin-top: 8px; font-size: 10px; }
.busy:not(.err), .busy-t { background: none; color: var(--dim); -webkit-text-fill-color: currentColor; animation: none; }
@media (min-width: 560px) {
  .hero { padding-top: 38px; }
  .hero-art img { width: 240px; height: 240px; }
  .parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scan .tri { clip-path: none; }
  .scan .line path { stroke-dashoffset: 0; }
  .scan::after { display: none; }
}

/* 선을 그은 얼굴 · 관상가의 풀이 */
.gs-face { padding: 10px; background: #fdf9f0; }
.gs-face img { display: block; width: 100%; height: auto; border-radius: 12px; }
.gs-face figcaption { margin: 10px 6px 4px; font-size: 12px; line-height: 1.7; color: var(--dim); }
.gs-story { background: #fbf7ec; border-color: #d9cfb3; }
.gs-story h3 { margin: 0 0 10px; font: 700 18px/1.6 'Noto Serif KR', serif; color: var(--fg); }
.gs-story p { margin: 0 0 12px; font: 400 15px/1.95 'Noto Serif KR', serif; color: var(--fg); }
.gs-story p:last-child { margin-bottom: 0; color: var(--dim); font-size: 14px; }
