/* 실제 앱 보완 스타일 (proto.css 위에 덧씌움) */
.brand { text-decoration: none; color: var(--text); }
.hint { font-weight: 400; color: var(--text-muted); }
.sub { color: var(--text-muted); font-weight: 400; }
.lead.tight { margin: var(--sp-3) 0 0; }
.body { font-size: var(--fs-sm); margin-top: var(--sp-3); }
.reason { min-height: 1.4em; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }
h3 { font-size: var(--fs-sm); margin: var(--sp-4) 0 var(--sp-1); color: var(--accent); }
.bul { padding-left: 1.2em; font-size: var(--fs-sm); }
.us { font-size: 11px; opacity: .85; }
.tengod { line-height: 1.4; }

/* 십신 칩: 터치 타깃 44px */
.chip { min-height: var(--tap-min); padding: 0 14px; }
.chips { gap: var(--sp-2); }

/* 용어 풀이 버튼 */
.term { min-width: 28px; min-height: 28px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--accent); font-size: var(--fs-xs); font-weight: 700; cursor: pointer; vertical-align: middle; position: relative; }
.term::after { content: ""; position: absolute; inset: -8px; } /* 탭 영역 44px 확보 */
.linkbtn { background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: var(--tap-min); padding: 0 var(--sp-1); }

/* 대운 타임라인은 키보드 포커스 시 링 표시 */
.timeline:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dm-card .kw span { color: var(--el); }

/* 결과 화면은 고정 액션바에 가리지 않게 */
.footer { margin-bottom: var(--sp-5); }
.err-card { text-align: center; padding: var(--sp-6) var(--sp-4); }
.err-card .btn { margin-top: var(--sp-5); }

/* 바텀시트 */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); }
.sheet[hidden] { display: none; }
.sheet-panel { width: 100%; max-width: var(--content-max); max-height: 90vh; overflow-y: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--sp-4) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-card); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.sheet-head h2 { margin: 0; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-top: var(--sp-4); }
.card-preview { text-align: center; }
.card-preview img { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1080 / 1350; border-radius: var(--radius-md); border: 1px solid var(--line); background: #0a0908; }
.sheet .field { margin-bottom: var(--sp-4); }
.sheet .body:first-child { margin-top: 0; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-size: var(--fs-sm); text-align: center; }
.toast[hidden] { display: none; }

@media (max-width: 340px) {
  .glyph .hj { font-size: var(--fs-xl); }
  .action-bar button { font-size: var(--fs-xs); }
}
@media print { .action-bar, .topbar, .sheet, .toast { display: none !important; } }

details.pos { margin-top: var(--sp-3); font-size: var(--fs-sm); }
details.pos summary { cursor: pointer; min-height: var(--tap-min); display: flex; align-items: center; color: var(--accent); }

/* QA: 터치 타깃 44px */
.seg span { min-height: var(--tap-min); }
.brand { display: inline-flex; align-items: center; min-height: var(--tap-min); }
