/* 아이의 첫 이름 결과 화면 정리 (2026-11-08): 한자 풀이 · 버튼 배치 · 공유 · 머리말 메뉴 */

/* 1. 한자와 함께 보는 풀이 */
html body .bn-page .bn-hanja{margin:0 0 14px;padding:18px 16px 16px;border:1px solid #e3e6ee;border-radius:16px;background:linear-gradient(160deg,#fbfaf6,#f5f6fa);color:#162a45;text-align:left}
html body .bn-page .bn-hanja-title{margin:0 0 10px;font-size:15px;font-weight:700;color:#1d334a;letter-spacing:-.3px}
html body .bn-page .bn-hanja-badge{display:inline-block;margin:0 0 8px;padding:3px 10px;border-radius:999px;background:#e9edf5;color:#1d334a;font-size:12px;font-weight:600}
html body .bn-page .bn-hanja-combo{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 6px;color:#5d6a80;font-size:13px}
html body .bn-page .bn-hanja-combo strong{font-family:'Noto Serif KR','Batang',serif;font-size:30px;font-weight:700;line-height:1.2;letter-spacing:2px;color:#162a45}
html body .bn-page .bn-hanja-meaning{margin:0 0 12px;font-size:14px;line-height:1.75;color:#24314a;word-break:keep-all}
html body .bn-page .bn-hanja-rows{display:grid;gap:10px;margin:0 0 12px}
html body .bn-page .bn-hanja-row{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;gap:8px}
html body .bn-page .bn-hanja-syllable{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#1d334a;color:#fff;font-size:14px;font-weight:700}
html body .bn-page .bn-hanja-options{display:flex;flex-wrap:wrap;gap:6px}
html body .bn-page .bn-hanja-option{display:inline-flex;align-items:center;gap:6px;min-height:36px;margin:0;padding:5px 11px 5px 9px;border:1px solid #d8dde5;border-radius:10px;background:#fff;color:#24314a;font-family:inherit;font-size:12px;cursor:pointer}
html body .bn-page .bn-hanja-option[aria-checked="true"]{border-color:#1d334a;background:#f3f6fa;box-shadow:0 0 0 2px #1d334a1f}
html body .bn-page .bn-hanja-option:focus-visible{outline:2px solid #1d334a;outline-offset:2px}
html body .bn-page .bn-hanja-char{font-family:'Noto Serif KR','Batang',serif;font-size:19px;font-weight:700;line-height:1;color:#162a45}
html body .bn-page .bn-hanja-hun{color:#5d6a80;white-space:nowrap}
html body .bn-page .bn-hanja-note{margin:0;font-size:11px;line-height:1.65;color:#7a8499;word-break:keep-all}

/* 2. 결과 아래 버튼: [비교에 담기][후보 보관하기] / [공유하기] */
html body .bn-page .bn-result-actions-v2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0 10px}
html body .bn-page .bn-result-actions-v2>button{width:100%;min-height:48px;margin:0}
html body .bn-page .bn-result-actions-v2 .bn-share-open{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d8dde5;border-radius:12px;background:#fff;color:#1d334a;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer}
html body .bn-page .bn-result-actions-v2 .bn-share-open svg{width:18px;height:18px}
html body .bn-page .bn-result-actions-v2 .bn-share-open:disabled{color:#8b95a5;cursor:not-allowed}
html body .bn-page .bn-result-actions-v2 .bn-share-open:focus-visible{outline:2px solid #1d334a;outline-offset:2px}
html body .bn-page .bn-footer-actions-v2{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 14px;margin:14px 0 4px}
html body .bn-page .bn-result-sources{margin:14px 0 0;padding-top:12px;border-top:1px solid #eceff4}
html body .bn-page .bn-result-sources .bn-small{margin:0 0 6px;font-size:11px;line-height:1.65;color:#8a93a7}
html body .bn-page .bn-result-sources a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* 3. 공유 시트(공통 .df-share-sheet) 안의 상태 문구 · 링크 직접 복사 칸 */
html body .bn-share-sheet [data-bn-share-status]{margin:6px 0 0;font-size:13px;color:#5d6a80;text-align:center}
html body .bn-share-sheet [data-bn-share-status]:empty{display:none}
html body .bn-share-sheet [data-bn-share-status][data-error="1"]{color:#a33a3a}
html body .bn-share-sheet .bn-share-link-fallback{display:block;width:100%;min-height:44px;margin:6px 0 0;padding:10px 12px;border:1px solid #d8dde5;border-radius:10px;background:#f7f8fa;font-size:13px;color:#162a45}
html body .bn-share-sheet .bn-share-link-fallback[hidden]{display:none}

/* 4. 흰 배경 결과·비교·보관 화면의 머리말 메뉴 버튼: 배경·테두리 없는 남색 아이콘 */
html body:has(.bn-page:is([data-view="results"],[data-view="compare"],[data-view="saved"])) .app-shell :is(.fortune-box-topbar,.zodiac-topbar,.site-header) button[data-menu-open]{background:transparent!important;border:0!important;box-shadow:none!important;color:#111d43!important;filter:none!important;border-radius:10px}

/* 5. 이름 카드: 꽃 프레임 이미지 (모서리 꽃은 비율 그대로, 가운데만 늘어남) */
html body .bn-page[data-view="results"] > [data-naming-view="results"] .bn-free-name-frame{margin-top:18px;border:0;border-radius:0;background:#fff;box-shadow:none}
html body .bn-page[data-view="results"] > [data-naming-view="results"] .bn-free-name-frame::before{content:"";display:block;position:absolute;z-index:0;inset:0;box-sizing:border-box;border-style:solid;border-color:transparent;border-width:72px 82px 52px 113px;border-radius:0;border-image:url("/images/baby-name-20261108/name-frame.webp") 300 340 215 470 fill stretch;background:none;pointer-events:none}
html body .bn-page[data-view="results"] > [data-naming-view="results"] .bn-free-name-frame::after{content:none;display:none}
html body .bn-page[data-view="results"] > [data-naming-view="results"] .bn-free-name-frame > .bn-name-card{padding:54px 30px 10px;background:transparent}
html body .bn-page[data-view="results"] > [data-naming-view="results"] .bn-free-name-frame > .bn-hanja-note{padding:0 30px 38px}

/* 6. 다른 이름 추천받기 · 이미지로 저장 · 소감 남기기 */
html body .bn-page .bn-results :is(.bn-more-names,.bn-image-save,.bn-review-write) svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body .bn-page .bn-results .bn-more-names{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:50px;margin:18px 0 0;padding:0 14px;border:1px solid #d9c9e8;border-radius:12px;background:#faf6fd;color:#5a456f;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
html body .bn-page .bn-results .bn-more-names:disabled{opacity:.7;cursor:progress}
html body .bn-page .bn-results .bn-more-names.is-loading svg{animation:bn-more-spin 1s linear infinite}
@keyframes bn-more-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){html body .bn-page .bn-results .bn-more-names.is-loading svg{animation:none}}
html body .bn-page .bn-results .bn-result-actions-v3{margin-top:8px}
html body .bn-page .bn-results .bn-result-actions-v3 .bn-image-save{border:1px solid #d8dde5;background:#fff;color:#1d334a}
html body .bn-page .bn-results .bn-result-actions-v3 .bn-image-save:disabled{color:#8b95a5;cursor:progress}
html body .bn-page .bn-results .bn-result-actions-v3 > .bn-primary{grid-column:1/-1}
html body .bn-page .bn-results .bn-result-feedback{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:0 0 10px}
html body .bn-page .bn-results .bn-result-feedback:empty{display:none}
html body .bn-page .bn-results .bn-result-feedback > button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:48px;margin:0;border:1px solid #e3e6ee;border-radius:12px;background:#fff;color:#4a5568;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
html body .bn-page .bn-results :is(.bn-more-names,.bn-image-save,.bn-review-write):focus-visible{outline:2px solid #1d334a;outline-offset:2px}html body .bn-page .bn-results .bn-result-actions-v3 > :is(.bn-image-save,.bn-share-open){min-height:50px;height:auto}

/* 7. 생각해 둔 이름 직접 풀어보기 (2026-11-08) */
html body .bn-page .bn-intro-actions{display:grid;gap:10px}
html body .bn-page .bn-intro-actions .bn-custom-open{width:100%;min-height:48px;margin:0;padding:10px 15px;border:1px solid #fff0d78c;border-radius:999px;background:#0f1d2e66;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff0d7;font:600 15px/1.4 "Noto Serif KR","Batang",serif;letter-spacing:-.2px;cursor:pointer}
html body .bn-page .bn-intro-actions .bn-custom-open:focus-visible{outline:2px solid #fff0d7;outline-offset:3px}
html body .bn-page .bn-results .bn-custom-actions{display:grid;gap:8px;margin:0 0 10px}
html body .bn-page .bn-results .bn-custom-actions > button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:48px;margin:0;border:1px dashed #cfc0de;border-radius:12px;background:#fff;color:#5a456f;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
html body .bn-page .bn-results .bn-custom-actions > button[hidden]{display:none}
html body .bn-page .bn-results .bn-custom-actions .bn-custom-exit{border-style:solid;border-color:#d8dde5;color:#1d334a}
html body .bn-page .bn-results .bn-custom-actions svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body .bn-page .bn-results .bn-custom-actions > button:focus-visible{outline:2px solid #1d334a;outline-offset:2px}
/* 직접 입력한 이름에는 서버 후보 전용 기능(후보 넘기기·다른 이름·보관·소감·의견·자료 출처)을 숨긴다 */
html body .bn-page .bn-results[data-mode="custom"] :is(.bn-result-nav,.bn-more-names,[data-naming-save],.bn-result-feedback,.bn-result-source){display:none!important}
html body .bn-page .bn-results[data-mode="custom"] .bn-result-actions-v3{margin-top:18px}
html body .bn-page .bn-hanja .bn-hanja-help{margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid #eef0f4;font-size:13px;line-height:1.7;color:#5d6a80;word-break:keep-all}
html body .bn-page .bn-hanja-option.is-static{cursor:default}
html body .bn-custom-sheet .bn-custom-fields{display:grid;grid-template-columns:104px minmax(0,1fr);gap:10px;margin:14px 0 0}
html body .bn-custom-sheet .bn-field{display:block;margin:0;font-size:13px;font-weight:600;color:#1d334a}
html body .bn-custom-sheet .bn-field > span{font-size:11px;font-weight:500;color:#8a93a7}
html body .bn-custom-sheet .bn-field input{display:block;width:100%;min-width:0;min-height:50px;margin-top:6px;padding:10px 14px;border:1px solid #d8dde5;border-radius:12px;background:#fff;color:#162a45;font-family:inherit;font-size:17px;box-sizing:border-box}
html body .bn-custom-sheet .bn-field input:focus{outline:2px solid #1d334a;outline-offset:1px;border-color:#1d334a}
html body .bn-custom-sheet .bn-custom-error{margin:10px 0 0;font-size:13px;line-height:1.6;color:#a33a3a}
html body .bn-custom-sheet .bn-custom-error[hidden]{display:none}
html body .bn-custom-sheet .bn-custom-submit{display:block;width:100%;min-height:52px;margin:16px 0 0;border:0;border-radius:14px;background:linear-gradient(105deg,#1d334a,#172b43);color:#fff;font-family:inherit;font-size:16px;font-weight:700;cursor:pointer}
html body .bn-custom-sheet .bn-custom-submit:focus-visible{outline:2px solid #1d334a;outline-offset:2px}

/* 8. 2026-11-09 추천 이유 · 한자 직접 입력 · 비교 담기 · 첫 화면 안내 */
html body .bn-page .bn-hanja [hidden]{display:none!important}
html body .bn-page .bn-reason{margin:0 0 14px;padding:16px 16px 14px;border:1px solid #e6dcef;border-radius:16px;background:#fcf9fe;color:#24314a;text-align:left}
html body .bn-page .bn-reason-title{margin:0 0 8px;font-size:15px;font-weight:700;color:#5a456f;letter-spacing:-.3px}
html body .bn-page .bn-reason-intro{margin:0;font-size:14px;line-height:1.75;color:#24314a;word-break:keep-all}
html body .bn-page .bn-reason-list{display:grid;gap:7px;margin:10px 0 0;padding:10px 0 0;border-top:1px solid #efe7f5;list-style:none}
html body .bn-page .bn-reason-list li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px;margin:0;font-size:13px;line-height:1.7;color:#3d4a60;word-break:keep-all}
html body .bn-page .bn-reason-list li.is-plain{grid-template-columns:minmax(0,1fr);color:#7a8499}
html body .bn-page .bn-reason-list strong{padding:1px 8px;border-radius:999px;background:#efe6f7;color:#5a456f;font-size:12px;font-weight:700;white-space:nowrap}
html body .bn-page .bn-hanja-basis{display:inline-block;margin:2px 0 6px;padding:2px 9px;border-radius:999px;background:#e9edf5;color:#3d4f68;font-size:11.5px;font-weight:600;line-height:1.6}
html body .bn-page .bn-hanja-choices{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
html body .bn-page .bn-hanja-empty{display:inline-flex;align-items:center;min-height:36px;padding:0 4px;color:#8a93a7;font-size:12px}
html body .bn-page .bn-hanja-own-toggle{display:inline-flex;align-items:center;min-height:36px;margin:0;padding:5px 11px;border:1px dashed #c4cbd6;border-radius:10px;background:transparent;color:#4a5a72;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
html body .bn-page .bn-hanja-own-toggle.is-active{border-style:solid;border-color:#1d334a;background:#f3f6fa;color:#162a45;box-shadow:0 0 0 2px #1d334a1f}
html body .bn-page .bn-hanja-own-toggle:focus-visible,html body .bn-page .bn-hanja-own-apply:focus-visible{outline:2px solid #1d334a;outline-offset:2px}
html body .bn-page .bn-hanja-own{flex:1 0 100%;margin:2px 0 0}
html body .bn-page .bn-hanja-own-line{display:flex;gap:6px}
html body .bn-page .bn-hanja-own input{flex:0 1 160px;min-width:0;min-height:42px;margin:0;padding:6px 12px;border:1px solid #d8dde5;border-radius:10px;background:#fff;color:#162a45;font:700 18px/1.2 'Noto Serif KR','Batang',serif;box-sizing:border-box}
html body .bn-page .bn-hanja-own input::placeholder{color:#a0a8b6;font-family:inherit;font-size:13px;font-weight:500}
html body .bn-page .bn-hanja-own input:focus{outline:2px solid #1d334a;outline-offset:1px;border-color:#1d334a}
html body .bn-page .bn-hanja-own-apply{flex:none;min-height:42px;margin:0;padding:0 16px;border:0;border-radius:10px;background:#1d334a;color:#fff;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer}
html body .bn-page .bn-hanja-own-hint{margin:5px 0 0;font-size:11px;line-height:1.6;color:#7a8499;word-break:keep-all}
html body .bn-page .bn-hanja-own-hint.is-error{color:#a33a3a}
html body .bn-page .bn-results .bn-compare-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 0}
html body .bn-page .bn-results .bn-compare-bar > button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 6px;width:100%;min-height:48px;margin:0;padding:6px 10px;border:1px solid #d8dde5;border-radius:12px;background:#fff;color:#1d334a;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer}
html body .bn-page .bn-results .bn-compare-bar svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
html body .bn-page .bn-results .bn-compare-bar > button:disabled{background:#fafbfc;color:#9aa3b2;cursor:not-allowed}
html body .bn-page .bn-results .bn-compare-bar > button:focus-visible{outline:2px solid #1d334a;outline-offset:2px}
html body .bn-page .bn-results .bn-compare-count{padding:1px 7px;border-radius:999px;background:#eef1f6;font-size:12px;font-variant-numeric:tabular-nums}
html body .bn-page .bn-results[data-mode="custom"] .bn-compare-bar{display:none!important}
html body .bn-page .bn-intro-title > p.bn-intro-scope{flex:none;max-width:30em;margin:0;color:#f3e1c7d9;font-size:12px;font-weight:500;line-height:1.65;letter-spacing:-.01em;text-align:center;word-break:keep-all}
