:root {
  --bg: #F4EEE3;
  --ink: #2B2620;
  --ink-2: #4E463D;
  --accent: #3F5A4C;
  --soft: #DDD3C3;
  --seal: #A8322A;
  --glass: rgba(255, 253, 248, 0.86);
  --line: rgba(43, 38, 32, 0.12);
  --radius: 18px;
  --brush: 'East Sea Dokdo', cursive;
  --callig: 'Nanum Brush Script', 'East Sea Dokdo', cursive; /* 붓글씨: 오행형·계절·유형 같은 큰 이름 */
  --hanja: 'Song Myung', 'Nanum Myeongjo', serif;          /* 원전 한자 */
  --verse: 'Nanum Myeongjo', 'Gowun Batang', serif;
  --body: 'Gowun Batang', 'Apple SD Gothic Neo', 'Malgun Gothic', serif;
}
/* 오행 색 (오방색에서 따옴) */
body[data-el="wood"]  { --bg: #E9EFE4; --ink: #22382A; --accent: #3F6B4A; --soft: #C9D8C2; }
body[data-el="fire"]  { --bg: #F6E8E2; --ink: #3A1F18; --accent: #B5432F; --soft: #EBC4B8; }
body[data-el="earth"] { --bg: #F3EBDA; --ink: #36291A; --accent: #A47A2C; --soft: #E2CFA6; }
body[data-el="metal"] { --bg: #EDEDEA; --ink: #26292B; --accent: #5E6468; --soft: #D3D4D0; }
body[data-el="water"] { --bg: #E4E9F0; --ink: #16243A; --accent: #2E4A6B; --soft: #BFCADA; }
:root { color-scheme: light; } /* 늘 밝은 화면 */


* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; overscroll-behavior-y: none; } /* 아이폰 탄성 스크롤로 화면이 튕기며 장이 잘못 넘어가는 것 방지 */
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.7; font-size: 17px;
  -webkit-text-size-adjust: 100%; transition: background .6s ease;
}
.bg {
  position: fixed; inset: 0; background-size: cover; background-position: center bottom; z-index: 0;
  opacity: .95; transition: opacity .6s ease;
}
.bg.scroll { transition: background-position 1.1s cubic-bezier(.4, .1, .2, 1); }
#app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 20px 18px calc(28px + env(safe-area-inset-bottom)); }
.screen { display: none; min-height: calc(100dvh - 48px); }
.screen.active { display: flex; flex-direction: column; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* 글씨 */
.brand { font-family: var(--brush); font-size: 40px; color: var(--seal); margin: 0; line-height: 1; letter-spacing: .02em; }
.brand.small { font-size: 30px; }
.title { font-family: var(--verse); font-weight: 800; font-size: 32px; line-height: 1.35; margin: 14px 0 10px; }
.lead { color: var(--ink-2); margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.eyebrow { font-size: 14px; letter-spacing: .08em; color: var(--ink-2); font-weight: 700; margin: 18px 0 6px; }
.slide-title { font-family: var(--verse); font-weight: 800; font-size: 38px; margin: 10px 0 2px; text-align: center; }
.slide-sub { text-align: center; color: var(--ink); margin: 0; font-size: 18px; font-weight: 700; }
.slide-note { text-align: center; color: var(--accent); font-size: 16px; font-weight: 700; margin: 8px 0 0; }
.verse { font-family: var(--verse); font-weight: 800; font-size: 29px; line-height: 1.6; margin: 6px 0 14px; word-break: keep-all; }
.small-verse { font-size: 24px; }
.small-text { font-size: 17px; margin: 6px 0; word-break: keep-all; font-weight: 700; }
.soft { color: var(--ink-2); }
.center { text-align: center; }
.badge {
  display: inline-block; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); backdrop-filter: blur(6px);
}
.debug {
  pointer-events: auto; font: 12px/1.5 ui-monospace, Consolas, monospace; background: rgba(0,0,0,.72); color: #fff;
  padding: 10px; border-radius: 10px; margin: 12px 0 0; white-space: pre-wrap; text-align: left;
}
.classic { font-size: 15px; font-weight: 700; color: var(--ink-2); border-left: 3px solid var(--seal); padding-left: 10px; margin: 4px 0 0; }
.note { font-size: 13px; color: var(--ink-2); text-align: center; margin: 10px 0 0; }
.error { color: var(--seal); font-size: 14px; min-height: 1.2em; margin: 6px 0; }

/* 도장 */
.seal {
  background: var(--seal); color: #fff; font-family: var(--verse); font-weight: 800; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); transform: rotate(-5deg);
}
.seal-hero { width: 76px; height: 76px; font-size: 48px; margin: 18px 0 0; }
.seal-big { width: 128px; height: 128px; font-size: 84px; margin: 34px auto 8px; }
.stamp { animation: stamp .6s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: .25s; }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.2) rotate(-14deg); } 70% { opacity: 1; transform: scale(.94) rotate(-4deg); } 100% { transform: scale(1) rotate(-5deg); } }

/* 유리 상자 */
.hero { padding-top: 6px; }
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; margin: 16px 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.returning-summary { font-family: var(--verse); font-weight: 800; font-size: 24px; margin: 0 0 6px; }
.daily { margin: 6px 0; font-size: 17px; font-weight: 700; }

/* 입력 */
.field { display: block; border: 0; padding: 0; margin: 0 0 16px; }
.field > span, .field > legend { display: block; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
select {
  width: 100%; font: inherit; padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); appearance: none;
}
.seg { display: flex; gap: 8px; }
.seg label {
  flex: 1 1 0; text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line);
  cursor: pointer; font-size: 16px; font-weight: 700; transition: all .2s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg.small label { font-size: 14px; padding: 7px 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin: 0 0 12px; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.check a { color: var(--accent); }

/* 버튼: 엄지 닿는 아래쪽 */
.dock { margin-top: auto; padding-top: 14px; }
button, .file {
  display: block; width: 100%; font: inherit; font-size: 17px; padding: 15px; border-radius: 999px;
  margin: 10px 0 0; cursor: pointer; text-align: center; border: 1px solid transparent; transition: transform .1s;
}
button:active { transform: scale(.98); }
.primary { background: var(--ink); color: var(--bg); font-weight: 700; }
.primary:disabled { opacity: .4; }
.ghost { background: var(--glass); color: var(--ink); border-color: var(--line); }
.text { background: transparent; color: var(--ink-2); font-size: 16px; font-weight: 700; padding: 8px; }

/* 촬영 */
.step-title { font-family: var(--verse); font-weight: 800; font-size: 26px; text-align: center; margin: 8px 0 12px; }
.camera {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: #0d0c0a;
}
.camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.guide {
  position: absolute; left: 50%; top: 46%; width: 60%; height: 68%; transform: translate(-50%, -50%);
  border: 2px dashed rgba(255,255,255,.7); border-radius: 50%; transition: border-color .3s;
}
.guide.ok { border: 3px solid #E9D9A6; box-shadow: 0 0 0 9999px rgba(0,0,0,.18); }
.cam-hint {
  position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; text-align: center; color: #fff;
  font-size: 16px; font-weight: 700; background: rgba(0,0,0,.55); border-radius: 999px; padding: 8px 12px;
}
#capture-tip { color: var(--seal); font-weight: 800; }
.shutter {
  width: 76px; height: 76px; padding: 0; margin: 4px auto 0; border-radius: 50%; background: transparent;
  border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
}
.shutter span { width: 60px; height: 60px; border-radius: 50%; background: var(--seal); display: block; }
.shutter:disabled { opacity: .35; }

/* 기다림: 먹물 번짐 */
.ink { position: relative; width: 220px; height: 220px; margin: 18vh auto 24px; }
.ink i {
  position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); filter: blur(10px); opacity: .0; animation: ink 2.4s ease-out infinite;
}
.ink i:nth-child(2) { animation-delay: .8s; }
.ink i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ink { 0% { transform: scale(.2); opacity: .55; } 100% { transform: scale(5); opacity: 0; } }
.loading-text { font-family: var(--verse); font-weight: 800; text-align: center; font-size: 24px; }
.loading-text::after { content: ''; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* 결과 스토리 */
.story { position: relative; padding-top: 18px; }
.progress { position: absolute; top: 0; left: 0; right: 40px; display: flex; gap: 4px; z-index: 3; }
.progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i.done { background: var(--ink); }
.progress i.now { background: linear-gradient(90deg, var(--ink) 50%, var(--line) 50%); background-size: 200% 100%; animation: fill .5s ease forwards; }
@keyframes fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
.story-close {
  position: absolute; top: -8px; right: -4px; width: 36px; height: 36px; padding: 0; margin: 0; z-index: 4;
  background: transparent; color: var(--ink-2); font-size: 18px;
}
.slide { display: none; flex-direction: column; flex: 1; position: relative; z-index: 2; padding-top: 18px; pointer-events: none; }
.slide button, .slide select, .slide label, .slide a, .slide input, .slide .dock, .slide .mbti, .slide img { pointer-events: auto; }
.slide.on { display: flex; animation: rise .45s ease both; }
.tap-hint { margin-top: auto; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.next-pill {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: auto; min-width: 220px; margin: 0; padding: 12px 26px 10px; z-index: 6; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 17px; line-height: 1.3;
  box-shadow: 0 10px 26px rgba(0,0,0,.22); animation: nudge 1.6s ease-in-out infinite;
}
.next-pill span { display: inline-block; font-size: 20px; }
.next-pill small { display: block; font-size: 12px; font-weight: 700; opacity: .8; margin-top: 2px; }
.next-pill:active { transform: translateX(-50%) scale(.97); }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
.slide.on { padding-bottom: 96px; }
.slide-share.on { padding-bottom: 0; }
.tap-zone { position: absolute; top: 30px; bottom: 0; z-index: 1; cursor: pointer; }
.tap-zone.left { left: 0; width: 30%; } .tap-zone.right { right: 0; width: 70%; }

.sj-bars { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.sj-bar { display: grid; grid-template-columns: 92px 1fr 32px; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.sj-bar b { height: 8px; border-radius: 8px; background: var(--accent); display: block; transform-origin: left; animation: grow .8s ease both; }
@keyframes grow { from { transform: scaleX(0); } }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.chip { height: 86px; border-radius: 16px; position: relative; animation: rise .5s ease both; }
.chips.avoid { grid-template-columns: 1fr 1fr; margin-top: 4px; }
.chips.avoid .chip { height: 56px; opacity: .9; }
.chips.avoid .chip::after { content: '✕'; position: absolute; right: 10px; top: 6px; font-size: 16px; color: rgba(0,0,0,.55); }
.chip span { position: absolute; left: 10px; bottom: 8px; font-size: 14px; font-weight: 700; color: rgba(0,0,0,.7); }
.rx { list-style: none; padding: 0; margin: 4px 0; }
.rx li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; display: flex; gap: 10px; }
.rx li b { min-width: 64px; color: var(--accent); font-weight: 700; }
.try-box { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.try { font-family: var(--verse); font-weight: 800; font-size: 22px; margin: 0; }
#card-img { width: 78%; align-self: center; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.18); margin: 8px 0 6px; }
.mbti { margin: 4px 0; }
.m-title { font-family: var(--verse); font-weight: 800; font-size: 21px; margin: 12px 0 4px; }

/* 아래에서 올라오는 안내 */
.sheet { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet-body { background: var(--bg); width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 22px 18px calc(26px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 십이궁 */
.gung-face, .spot-face { width: min(200px, 52vw); margin: 4px auto 6px; }
.spot-face { width: min(110px, 30vw); float: left; margin: 2px 12px 4px 0; }
.spot-box::after { content: ''; display: block; clear: both; }
.gung-face svg, .spot-face svg { width: 100%; height: auto; display: block; }
.gung-face .line, .spot-face .line { fill: none; stroke: #6B5446; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gung-face .eye, .spot-face .eye { stroke-width: 3; }
/* 얼굴 그림은 밝은·어두운 화면 모두 같은 색 (그림처럼) */
.gung-face .skin, .spot-face .skin { fill: #F8E6D3; stroke: #C9A88E; stroke-width: 2; }
.gung-face .hair, .spot-face .hair { fill: #4A3A30; }
.gung-face .blush, .spot-face .blush { fill: #F29C8F; opacity: .45; }
.gung-face .glow, .spot-face .glow { fill: var(--seal); opacity: .22; animation: gungGlow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gungGlow { 50% { opacity: .08; transform: scale(1.25); } }
.gung-face .dot, .spot-face .dot { fill: var(--seal); }
.gung-face .ring { fill: none; stroke: var(--seal); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.gung-face text, .spot-face text { fill: #fff; font: 800 13px var(--body); text-anchor: middle; dominant-baseline: central; }
.gung-face .dot, .gung-face .ring { animation: gungPop .5s ease both; }
.gung-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-align: left; }
.gung-list li { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.gung-list h3 { margin: 0 0 4px; font-family: var(--verse); font-weight: 800; font-size: 19px; }
.gung-list h3 .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--seal); color: #fff; font: 800 14px var(--body); margin-right: 6px; vertical-align: 2px; }
.gung-list h3 small { font-weight: 700; font-size: 14px; color: var(--ink-2); margin-left: 4px; }
.gung-list p { margin: 4px 0 0; font-size: 16px; }
.gung-list .gung-side { display: inline-block; font-size: 13px; font-weight: 800; color: var(--seal); border: 1px solid currentColor; border-radius: 99px; padding: 0 10px; margin-top: 2px; }
.gung-list .gung-classic { color: var(--ink-2); font-size: 15px; }
.gung-list .gung-today { font-weight: 700; }
@keyframes gungPop { from { opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; } }

.small-link { font-size: 14px; padding: 2px 8px; margin: -4px auto 6px; display: block; text-decoration: underline; opacity: .8; }

/* 5장 흐름: 큰 그림 + 한 줄, 나머지는 "자세히 보기" */
.slide details, .slide summary { pointer-events: auto; }
.more { margin-top: 14px; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; }
.more summary { cursor: pointer; list-style: none; text-align: center; font-weight: 800; padding: 10px 0; color: var(--accent); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ' ⌄'; }
.more[open] summary::after { content: ' ⌃'; }
.more[open] { padding-bottom: 14px; }
.gung-names { display: flex; justify-content: center; gap: 14px; margin: 2px 0 6px; font-weight: 800; font-size: 17px; }
.gung-names b { color: var(--seal); }
.badge-type { align-self: center; margin: 4px auto 0; padding: 6px 16px; border-radius: 99px; background: var(--seal); color: #fff;
  font-family: var(--verse); font-weight: 800; font-size: 18px; text-align: center; animation: rise .5s ease both; animation-delay: 1.1s; }
.chips.big .chip { height: 70px; }
.oy-legend { display: flex; justify-content: center; gap: 18px; font-size: 15px; margin: 0 0 10px; flex-wrap: wrap; }
.oy-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg-dot { background: var(--seal); }
.lg-glow { background: var(--seal); opacity: .3; box-shadow: 0 0 0 4px rgba(168, 50, 42, .15); }
/* 도장이 찍힐 때 먹물이 번지는 고리 */
.seal-wrap { position: relative; align-self: center; }
.ink-burst { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -56px 0 0 -70px; border-radius: 50%;
  border: 3px solid var(--seal); opacity: 0; pointer-events: none; }
.slide.on .ink-burst { animation: burst .9s ease-out .7s both; }
@keyframes burst { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }
.slide.on .stamp { animation: stamp .6s cubic-bezier(.2, .9, .3, 1.4) both .25s; }
.slide.on[data-slide="reveal"] { animation: rise .45s ease both, thud .25s ease .8s; }
@keyframes thud { 40% { transform: translateY(3px); } }
.mini-links { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink-2); }
.mini-links .small-link { display: inline; margin: 0; }

/* 붓글씨 제목 */
.slide-title { font-family: var(--callig); font-weight: 400; font-size: 52px; line-height: 1.1; letter-spacing: .01em; }
.badge-type { font-family: var(--callig); font-weight: 400; font-size: 30px; padding: 2px 22px; }
#work-full { margin: 4px 0 0; animation: rise .5s ease both; animation-delay: 1.3s; }
.gung-names { font-family: var(--callig); font-weight: 400; font-size: 26px; }
.classic { font-family: var(--hanja); }
#card-style { margin: 10px 0 4px; }
/* 화풍별 손질: 마티스·바우하우스는 바탕이 밝고 선명해 유리판을 조금 더 진하게 */
body[data-style="matisse"] { --glass: rgba(255, 253, 248, 0.92); }
body[data-style="bauhaus"] { --glass: rgba(250, 248, 242, 0.97); --radius: 6px; }
body[data-style="bauhaus"] .more, body[data-style="bauhaus"] .try-box, body[data-style="bauhaus"] .gung-list li { border-radius: 6px; border-color: rgba(30,30,30,.35); }
body[data-style="bauhaus"] .badge-type { border-radius: 0; }

button.kakao { background: #FEE500; color: #191919; }

/* 앱처럼 설치하기 */
.install-chip { margin-top: 10px; width: 100%; }
.install-link { margin-top: 8px; }
.install-title { font-weight: 800; }
.install-steps { margin: 8px 0 14px; padding-left: 22px; line-height: 1.8; }
.install-steps li::marker { color: var(--seal); font-weight: 800; }

/* 나의 색: 팔레트 · 코디 그림 · 꼬리표 */
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 8px 0 4px; }
.pal { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; animation: rise .5s ease both; }
.pal i { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pal.no i { width: 30px; height: 30px; position: relative; }
.pal.no { flex-direction: row; font-size: 13px; }
.pal.no i::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.7); font-style: normal; }
.look { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; margin: 10px 0; }
.look-fig svg { width: 100%; height: auto; display: block; }
.look-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.look-list li { display: grid; grid-template-columns: 22px 54px 1fr; align-items: center; font-size: 15px; line-height: 1.35; }
.look-list i, .tag i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.look-list b { color: var(--ink-2); font-size: 14px; }
.avoid-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.avoid-label { color: var(--ink-2); font-weight: 700; }
.avoid-dots { display: inline-flex; gap: 12px; }
.info-grid { display: grid; gap: 10px; margin-top: 6px; }
.info { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: start; }
.info .ico { font-size: 22px; line-height: 1.3; grid-row: span 2; }
.info b { font-size: 15px; }
.info .seg, .info .tags { grid-column: 2; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.75); border: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.tag i { width: 14px; height: 14px; }

.gung-line { font-size: 16px; margin: 6px 0 2px !important; }
.more .info { margin-top: 10px; }

/* 첫 화면 여백을 조금 줄여 "나의 관상 다시 보기"까지 한 화면에 (모양은 그대로) */
#screen-intro .hero { padding-top: 0; }
#screen-intro .seal-hero { margin-top: 10px; }
#screen-intro .title { margin: 10px 0 6px; }
#screen-intro .lead { margin-bottom: 10px; }
#returning { margin-top: 10px; padding-top: 14px; padding-bottom: 14px; }
#returning .returning-summary { font-size: 22px; }
#returning .dock { padding-top: 8px; }
/* 다시 온 사람: "사진은 저장하지 않아요" 안내는 이미 봤으니 숨기고, 도장·제목을 살짝만 작게 */
body.is-returning #screen-intro .badge { display: none; }
body.is-returning #screen-intro .seal-hero { width: 64px; height: 64px; font-size: 40px; }
body.is-returning #screen-intro .title { font-size: 29px; }
body.is-returning #screen-intro .lead { font-size: 16px; }

/* 음양 꼬리표: 양(陽)의 나무 · 甲木 */
.yy-badge { align-self: center; margin: 2px auto 8px; padding: 3px 14px; border-radius: 99px; border: 1.5px solid var(--seal);
  color: var(--seal); font-family: var(--hanja); font-weight: 700; font-size: 16px; text-align: center; animation: rise .5s ease both .9s; }

/* 자세히 보기 글자를 더 진하고 또렷하게 (가독성) */
.more, .more p, .more .tag, .more li, .more .note, .more .small-text { color: var(--ink); font-weight: 700; }
.more .tag { font-weight: 800; background: rgba(255,255,255,.9); border-color: rgba(43,38,32,.22); font-size: 15px; }
.more b, .more h3, .more .eyebrow { font-weight: 800; color: var(--ink); }
.more .gung-line { font-weight: 700; }
.more .note, .more .soft { color: var(--ink-2); }
.more .classic { font-weight: 700; color: var(--ink-2); }

/* 친구 초대장 · 궁합 */
.invite-banner { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(168, 50, 42, .08); border: 1.5px solid rgba(168, 50, 42, .35); font-size: 15px; font-weight: 700; line-height: 1.6; }
.invite-banner b { color: var(--seal); }
.match-box { margin: 12px auto 0; padding: 10px 16px; border-radius: 16px; background: var(--glass); border: 1.5px solid rgba(168, 50, 42, .35); text-align: center; display: grid; gap: 4px; font-size: 15px; font-weight: 700; animation: rise .5s ease both 1.2s; }
.match-box b { color: var(--seal); font-size: 14px; }
/* 마지막 장: 주 버튼 하나, 나머지는 보조·작은 링크 */
.slide-share #card-img { width: 64%; margin: 0 auto; display: block; }
.card-dock { padding-top: 10px; }
.mbti summary { font-size: 15px; }
.mbti select { width: 100%; margin-top: 6px; }
#pc-note { margin: 6px 0 0; }

/* 3단계: 한자 도장 아이콘 · 누르는 곳 44px · 다음 장 버튼 · 화풍별 그림 · 도장 글꼴 · 연속 방문 */
.info .ico { width: 30px; height: 30px; border-radius: 7px; background: var(--seal); color: #fff; font-family: var(--hanja); font-size: 18px; line-height: 30px; text-align: center; transform: rotate(-4deg); }
.story-close { width: 44px; height: 44px; font-size: 20px; }
.small-link { padding: 12px 10px; min-height: 44px; }
.seg.small label { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.next-pill.compact { animation: none; min-width: 0; padding: 12px 24px; }
.next-pill.compact small { display: none; }
.next-pill:not(.compact) { animation: nudge 1.6s ease-in-out 2; }
.seal { font-family: var(--hanja); font-weight: 400; }
body[data-style="bauhaus"] .gung-face .skin, body[data-style="bauhaus"] .spot-face .skin { fill: #FFFFFF; stroke: #1E1E1E; stroke-width: 2.5; }
body[data-style="bauhaus"] .gung-face .hair, body[data-style="bauhaus"] .spot-face .hair { fill: #1E1E1E; }
body[data-style="bauhaus"] .gung-face .blush, body[data-style="bauhaus"] .spot-face .blush { fill: #D2523A; opacity: .9; }
body[data-style="bauhaus"] .gung-face .line, body[data-style="bauhaus"] .spot-face .line { stroke: #1E1E1E; }
body[data-style="matisse"] .gung-face .skin, body[data-style="matisse"] .spot-face .skin { stroke: none; }
body[data-style="matisse"] .gung-face .line, body[data-style="matisse"] .spot-face .line { stroke-width: 3.4; }
body[data-style="bauhaus"] .look-fig svg path, body[data-style="bauhaus"] .look-fig svg circle, body[data-style="bauhaus"] .look-fig svg rect { stroke: #1E1E1E; stroke-width: 2; }
.streak { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 6px 0 2px; }
.streak i { width: 24px; height: 24px; border-radius: 6px; border: 1.5px dashed rgba(168, 50, 42, .45); font-style: normal; font-family: var(--hanja); font-size: 14px; line-height: 21px; text-align: center; color: #fff; }
.streak i.on { background: var(--seal); border: 0; line-height: 24px; transform: rotate(-6deg); }
.streak-label { font-size: 13px; font-weight: 800; color: var(--seal); margin-right: 4px; }

/* 세 가지 약속 도장 (典 · 守 · 善) */
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 10px 0 6px; padding: 0; }
.promises span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.promises i { font-style: normal; font-family: var(--verse); font-weight: 800; font-size: 14px; color: #fff; background: var(--seal);
  width: 24px; height: 24px; border-radius: 6px; display: inline-grid; place-items: center; transform: rotate(-4deg); }
/* 결과 안 작은 버튼 (2장 궁합 보기 · 답장 보내기) */
.small-btn { align-self: center; width: auto; min-height: 44px; padding: 8px 18px; margin: 10px auto 0; font-size: 15px; }
.match-box em { font-style: normal; color: var(--seal); font-size: 16px; }
.match-box .small-btn { margin-top: 4px; }
/* 첫날 끝 "내일" 약속 */
.tomorrow { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 16px;
  background: var(--glass); border: 1px dashed rgba(168, 50, 42, .45); font-size: 15px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.tomorrow b { color: var(--seal); }
.stamp-mini { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--seal); color: #fff; display: grid; place-items: center;
  font-family: var(--verse); font-weight: 800; transform: rotate(-6deg); }
.btn-ics { align-self: center; display: block; margin: 8px auto 0; }
