/* 한가위 소원 부적 화면 (2026-09-16). 머리는 다른 무료 화면과 같은 꼴(물건 상자·제목·한 줄),
   고르는 칸은 알약 단추, 미리 보기는 앞뒤로 뒤집히는 한 장. 붉은 먹은 부적 한 장에만 쓰고 화면은 한지색으로 둔다. */
/* 글은 왼쪽 축(대표 2026-09-16 — 가운데 정렬은 두세 줄이 되면 줄 끝이 들쭉날쭉해 어수선하다).
   물건 상자는 제목 오른쪽에 작게, 설명·안내·다음 단은 한 문단으로 흐른다(text-wrap: pretty). */
.bj-intro { padding: 24px 20px 22px; justify-items: stretch; text-align: left; }
.bj-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bj-head .lucky-object { flex: 0 0 auto; width: 92px; height: 80px; }
.bj-head .lucky-object img { max-height: 64px; }
/* 390px 에서 「한가위 소원 부적」이 한 줄에 들어가는 크기 — 낱말 사이에서만 접는다. */
.bj-intro h1 { margin: 0; font: 400 clamp(24px, 6.2vw, 36px)/1.25 "Gowun Dodum", serif; letter-spacing: -.01em; -webkit-text-stroke: .4px currentColor; word-break: keep-all; }
.bj-intro h1 small { display: block; font-size: .58em; color: var(--jb-brick); -webkit-text-stroke: .3px currentColor; margin-top: 2px; }
.bj-lead { margin: 0; max-width: 30em; font-size: 14.5px; line-height: 1.7; text-wrap: pretty; }
.bj-lead b { color: var(--jb-ink); }
.bj-pick { width: 100%; display: grid; gap: 8px; text-align: left; }
.bj-step { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 700 14px/1.3 "Noto Sans KR", sans-serif; color: var(--jb-ink); }
.bj-step span {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: var(--jb-brick); color: #fff; font-size: 12px;
}
.bj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bj-chip {
    padding: 9px 16px; border: 1.5px solid rgba(94, 66, 39, .22); border-radius: 999px;
    background: #fff; color: var(--jb-ink); font: 700 15px/1.2 "Noto Sans KR", sans-serif; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.bj-chips.is-small .bj-chip { padding: 7px 14px; font-size: 13.5px; font-weight: 500; }
.bj-chip[aria-checked="true"] { background: var(--jb-brick); border-color: var(--jb-brick); color: #fff; }
.bj-chip:focus-visible { outline: 2px solid var(--jb-brick); outline-offset: 2px; }

.bj-card { display: grid; justify-items: center; gap: 10px; padding: 18px 16px 20px; text-align: center; }
.bj-flip {
    position: relative; width: min(300px, 78vw); aspect-ratio: 2 / 3; cursor: pointer;
    perspective: 1200px;
}
.bj-face {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
    box-shadow: 0 10px 24px -8px rgba(94, 66, 39, .45);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    transition: transform .55s cubic-bezier(.4, .1, .2, 1);
}
.bj-front { transform: rotateY(0deg); }
.bj-back { transform: rotateY(180deg); }
.bj-flip.is-back .bj-front { transform: rotateY(-180deg); }
.bj-flip.is-back .bj-back { transform: rotateY(0deg); }
@media (prefers-reduced-motion: reduce) { .bj-face { transition: none; } }
.bj-turn {
    padding: 7px 16px; border: 1.5px solid rgba(94, 66, 39, .25); border-radius: 999px; background: #fff;
    color: var(--jb-ink-soft); font: 500 13px/1.2 "Noto Sans KR", sans-serif; cursor: pointer;
}
.bj-caption { margin: 0; font-size: 13px; color: var(--jb-ink-soft); }
.bj-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.bj-save, .bj-send {
    padding: 11px 16px; border-radius: 999px; font: 700 14px/1.2 "Noto Sans KR", sans-serif; cursor: pointer;
}
.bj-save { border: 0; background: var(--jb-brick); color: #fff; }
.bj-save.is-line, .bj-send { border: 1.5px solid var(--jb-brick); background: #fff; color: var(--jb-brick); }
.bj-save:disabled, .bj-send:disabled { opacity: .6; cursor: default; }
.bj-minor { display: flex; justify-content: center; }
.bj-minor .text-button { font-size: 13px; font-weight: 500; color: var(--jb-ink-soft); }
.bj-note { justify-self: stretch; margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--jb-ink-soft); text-align: left; text-wrap: pretty; }
.bj-closed { width: 100%; display: grid; gap: 12px; }
.bj-closed p { margin: 0; line-height: 1.6; }

.bj-next { display: grid; gap: 10px; padding: 20px 18px; text-align: left; }
.bj-next p { text-wrap: pretty; }
.bj-next .text-button { justify-self: start; }
.bj-next-eyebrow { margin: 0; font: 700 12px/1.2 "Noto Sans KR", sans-serif; letter-spacing: .08em; color: var(--jb-brick); }
.bj-next p { margin: 0; line-height: 1.6; }
.bj-next p b { color: var(--jb-ink); }

/* 길게 눌러 저장 시트 — 성향 카드와 같은 옷(type-v4.css 와 같은 이름, 여기 화면은 그 파일을 안 읽는다). */
.typecard-sheet {
    position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
    padding: 20px; background: rgba(46, 40, 34, .72);
}
.typecard-sheet-card {
    width: min(360px, 100%); max-height: 100%; overflow: auto;
    padding: 14px; border-radius: 16px; background: var(--jb-paper, #FFF7E9); text-align: center;
}
.typecard-sheet-tip { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--jb-ink); }
.typecard-sheet-tip b { color: var(--jb-brick); }
.typecard-sheet-card img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 12px rgba(94, 66, 39, .3); -webkit-touch-callout: default; }
.typecard-sheet-share { display: block; width: 100%; margin-top: 12px; }
.typecard-sheet-share[hidden] { display: none; }
.typecard-sheet-close {
    margin-top: 12px; padding: 8px 18px; border: 1.5px solid var(--jb-brick); border-radius: 999px;
    background: #fff; color: var(--jb-brick); font: 700 13px/1.2 "Noto Sans KR", sans-serif; cursor: pointer;
}
