@charset "UTF-8";:root{--content-width-mobile: 450px}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#f3f4f6;min-height:100vh;padding:0;color:#111827}.container:has(#relative-name-wrapper){max-width:none;overflow:auto}#relative-name-wrapper{margin:0 auto;width:100%}.app-header{padding-top:1.75rem;margin-bottom:1.75rem}.app-title{font-family:Nanum Myeongjo,"Noto Serif KR",Apple SD Gothic Neo,Batang,Times New Roman,serif;font-size:clamp(1.35rem,3.4vw,1.75rem);font-weight:700;letter-spacing:-.5px;text-align:center;color:#111827;padding:0 16px 10px;line-height:1.3;word-break:keep-all}.app-title-dot{color:#0369a1;margin-left:1px}.accent-bar{height:2px;border-radius:999px;background:linear-gradient(90deg,#bfdbfe,#a7f3d0 34%,#c4b5fd,#fdba74)}#app-container{padding:16px;min-height:500px}.controls{display:flex;gap:12px;margin-bottom:24px;justify-content:flex-end}#app-container.is-empty .controls{display:none}.controls button{padding:10px 20px;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 6px #0000001a}#reset-btn{background:#ff6b81;color:#fff}#reset-btn:hover{background:#ee5a6f;transform:translateY(-1px);box-shadow:0 4px 10px #ff6b814d}#undo-btn{background:#4ecdc4;color:#fff}#undo-btn:hover{background:#45b8af;transform:translateY(-1px);box-shadow:0 4px 10px #4ecdc44d}:where(button,[href],[tabindex]):focus-visible{outline:3px solid #0369a1;outline-offset:2px;border-radius:8px}.profile-card button:focus-visible,.add-member-card button:focus-visible{box-shadow:0 0 0 4px #0369a133}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.profile-card:hover,.profile-card:hover .profile-icon,.btn-speak:hover,.relation-btn:hover,.shortcut-chip:hover{transform:none}}.family-cards-container{display:flex;align-items:flex-start;gap:24px;overflow-x:auto;overflow-y:hidden;padding:20px 40px;scroll-behavior:smooth}.family-cards-container:before,.family-cards-container:after{content:"";margin:auto}.family-cards-container::-webkit-scrollbar{height:8px}.family-cards-container::-webkit-scrollbar-track{background:#f3f4f6;border-radius:4px}.family-cards-container::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:4px}.family-cards-container::-webkit-scrollbar-thumb:hover{background:#a0aec0}.profile-card-wrapper{flex-shrink:0}.profile-card{background:#fff;border-radius:24px;padding:32px;min-width:280px;max-width:320px;min-height:400px;display:flex;flex-direction:column;align-items:center;box-shadow:0 10px 40px -10px #00000014;border:2px solid transparent;transition:all .3s ease;position:relative}.profile-card:hover{box-shadow:0 20px 60px -10px #00000026;transform:translateY(-4px)}.profile-icon{width:144px;height:144px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:24px;transition:transform .3s ease}.profile-card:hover .profile-icon{transform:scale(1.05)}.profile-icon .material-icons-round{font-size:72px}.gender-male .profile-icon{background:#dbeafe}.gender-male .profile-icon .material-icons-round{color:#0ea5e9}.gender-female .profile-icon{background:#fce7f3}.gender-female .profile-icon .material-icons-round{color:#ec4899}.gender-neutral .profile-icon{background:#e0e7ff}.gender-neutral .profile-icon .material-icons-round{color:#6366f1}.profile-badges{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap;justify-content:center}.badge{padding:6px 16px;border-radius:20px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.badge-relation{background:#dbeafe;color:#0369a1}.badge-chon{background:#0369a1;color:#fff;box-shadow:0 2px 8px #0369a14d}.badge-chon.badge-affinal{background:#7c3aed;box-shadow:0 2px 8px #7c3aed4d}.badge-house{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;cursor:help}.profile-name-wrapper{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:8px}.profile-name{font-size:24px;font-weight:700;text-align:center;color:#111827}.profile-formal{font-size:14px;color:#6b7280;margin-bottom:8px;text-align:center;font-weight:500}.profile-relation-path{font-size:12px;color:#64748b;margin-bottom:24px;text-align:center;line-height:1.5;word-break:keep-all}.profile-formal+.profile-relation-path{margin-top:0}.profile-name-wrapper+.profile-relation-path{margin-top:8px}.local-translation{font-size:15px;color:#6b7280;margin-bottom:2px;text-align:center;font-weight:500}.korean-pronunciation-label{font-size:13px;color:#6b7280;text-align:center;font-weight:400}.btn-speak{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;background:#f3f4f6;color:#6b7280;cursor:pointer;transition:all .2s ease;flex-shrink:0}.btn-speak:hover{background:#e5e7eb;color:#0ea5e9;transform:scale(1.1)}.btn-speak .material-icons-round{font-size:20px}.btn-speak.speaking{background:#0ea5e9;color:#fff;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1);box-shadow:0 0 #0ea5e9b3}50%{transform:scale(1.05);box-shadow:0 0 0 8px #0ea5e900}}.btn-speak.speaking:hover{background:#0284c7;transform:scale(1.1)}.gender-selector{display:inline-flex;background:#f3f4f6;border-radius:20px;padding:4px;margin-bottom:16px;box-shadow:inset 0 1px 3px #0000001a;position:relative}.gender-selector:before{content:"";position:absolute;top:4px;left:4px;width:calc(33.333% - 2.667px);height:calc(100% - 8px);background:#fff;border-radius:16px;box-shadow:0 2px 8px #0ea5e94d;transition:left .3s cubic-bezier(.4,0,.2,1);z-index:0}.gender-selector:has(.gender-btn[data-gender=male].active):before{left:4px}.gender-selector:has(.gender-btn[data-gender=neutral].active):before{left:calc(33.333% + 1.333px)}.gender-selector:has(.gender-btn[data-gender=female].active):before{left:calc(66.666% - 1.333px)}.gender-btn{display:flex;align-items:center;justify-content:center;padding:8px 16px;border:none;background:transparent;color:#6b7280;font-size:12px;font-weight:600;cursor:pointer;transition:color .2s ease;border-radius:16px;min-width:44px;position:relative;z-index:1}.gender-btn .material-icons-round{font-size:20px}.gender-btn:hover:not(.active){color:#374151}.gender-btn.active{color:#0ea5e9}.gender-btn.active:hover{color:#0284c7}.profile-action{margin-top:auto;width:100%;transition:opacity .3s ease;opacity:0}.profile-card:hover .profile-action,.profile-card:focus-within .profile-action{opacity:1}.btn-reset-to{width:100%;padding:12px 16px;border:none;border-radius:12px;background:#0ea5e9;color:#fff;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .2s ease}.btn-reset-to:hover{background:#0284c7;transform:translateY(-2px);box-shadow:0 4px 12px #0ea5e94d}.btn-reset-to .material-icons-round{font-size:18px}.arrow-separator{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:0 12px;align-self:center}.arrow-separator .material-icons-round{width:48px;height:48px;border-radius:50%;background:#fff;color:#9ca3af;display:flex;align-items:center;justify-content:center;font-size:24px;box-shadow:0 2px 8px #0000001a}.add-member-card{background:#ffffff80;border-radius:24px;padding:32px;min-width:320px;max-width:420px;min-height:400px;display:flex;flex-direction:column;box-shadow:0 10px 40px -10px #00000014;border:2px dashed #cbd5e0;transition:all .3s ease}.add-member-card:hover{transform:translateY(-4px);box-shadow:0 20px 60px -10px #0000001f}.add-member-header{display:flex;align-items:center;gap:12px;margin-bottom:32px;padding-bottom:16px;border-bottom:2px solid #e5e7eb}.add-icon{width:40px;height:40px;border-radius:50%;background:#f3f4f6;display:flex;align-items:center;justify-content:center;color:#0ea5e9}.add-icon .material-icons-round{font-size:24px}.add-member-header h3{font-size:18px;font-weight:700;color:#111827}.relation-groups{display:flex;flex-direction:column;gap:24px;flex-grow:1;justify-content:center}.relation-group{display:flex;flex-direction:column;gap:12px}.group-title{font-size:10px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:1px;opacity:.6}.relation-buttons-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.relation-btn{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:12px;border:none;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s ease;opacity:.8}.relation-btn .material-icons-round{font-size:18px}.relation-btn:hover{opacity:1;transform:translateY(-2px)}.relation-btn-parent{background:#dbeafe;color:#0369a1}.relation-btn-parent:hover{background:#bfdbfe;box-shadow:0 4px 12px #0ea5e933}.relation-btn-sibling{background:#d1fae5;color:#065f46}.relation-btn-sibling:hover{background:#a7f3d0;box-shadow:0 4px 12px #10b98133}.relation-btn-spouse{background:#fce7f3;color:#9f1239}.relation-btn-spouse:hover{background:#fbcfe8;box-shadow:0 4px 12px #ec489933}.relation-btn-child{background:#fed7aa;color:#9a3412}.relation-btn-child:hover{background:#fdba74;box-shadow:0 4px 12px #fb923c33}@media (max-width: 900px){.app-header{padding-top:1.25rem;margin-bottom:1.25rem}.app-title{padding-bottom:10px}#app-container{border-radius:16px}.family-cards-container{display:flex;flex-direction:column;gap:12px;padding:0;overflow-y:auto;overflow-x:hidden;position:relative;max-width:var(--content-width-mobile);margin:0 auto}.arrow-separator{display:flex;align-items:center;justify-content:center;height:0;margin:-6px 0;position:relative;z-index:10}.arrow-separator .material-icons-round{width:32px;height:32px;border-radius:50%;background:#fff;color:#0ea5e9;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 2px 8px #00000026;transform:rotate(90deg)}.profile-card-wrapper{flex-shrink:0;width:100%}.profile-card{display:grid;grid-template-columns:72px 1fr;grid-template-rows:repeat(auto-fit,auto);gap:6px 16px;width:100%;max-width:none;min-width:0;padding:16px;min-height:auto;align-items:center;box-shadow:0 4px 16px #0000001a;-webkit-tap-highlight-color:transparent}.profile-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #00000026}.profile-icon{grid-row:1 / 4;grid-column:1;width:72px;height:72px;margin-bottom:0}.profile-icon .material-icons-round{font-size:36px}.profile-badges{grid-row:1;grid-column:2;margin-bottom:0;justify-content:flex-start}.badge{padding:4px 10px;font-size:9px}.profile-name-wrapper{grid-row:2;grid-column:2;margin-bottom:0;justify-content:flex-start}.profile-name{font-size:18px;text-align:left}.btn-speak{width:32px;height:32px}.btn-speak .material-icons-round{font-size:18px}.local-translation{grid-row:4;grid-column:2;font-size:13px;margin-bottom:0;text-align:left;color:#9ca3af;font-weight:500}.korean-pronunciation-label{grid-row:3;grid-column:2;font-size:13px;margin-bottom:0;text-align:left;color:#9ca3af;font-weight:400}.profile-formal{grid-row:4;grid-column:2;font-size:12px;margin-bottom:0;text-align:left}.has-local-translation .profile-formal{grid-row:5}.profile-relation-path{grid-row:5;grid-column:2;font-size:11px;margin-bottom:0;text-align:left}.has-local-translation .profile-relation-path{grid-row:6}.gender-selector{grid-row:6;grid-column:1 / -1;justify-self:center;margin-top:8px;margin-bottom:0}.has-local-translation .gender-selector{grid-row:7}.profile-action{grid-row:7;grid-column:1 / -1;margin-top:8px;opacity:1}.has-local-translation .profile-action{grid-row:8}.btn-reset-to{width:100%;padding:10px 16px;font-size:12px}.add-member-card{display:flex;flex-direction:column;width:100%;max-width:none;min-width:0;padding:16px;min-height:auto;box-shadow:0 4px 16px #00000014;-webkit-tap-highlight-color:transparent;transition:all .2s ease}.add-member-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0000001f}.add-member-header{flex-direction:row;align-items:center;margin-bottom:16px;padding-bottom:12px}.add-icon{width:36px;height:36px}.add-icon .material-icons-round{font-size:20px}.add-member-header h3{font-size:16px}.relation-groups{gap:16px}.group-title{font-size:9px;margin-bottom:4px}.relation-buttons-grid{grid-template-columns:repeat(2,1fr);gap:8px}.relation-btn{padding:10px 12px;font-size:12px}.relation-btn .material-icons-round{font-size:16px}}.btn-speak[disabled]{opacity:.35;cursor:not-allowed;pointer-events:none}.profile-hanja{margin-left:6px;color:#64748b;font-weight:400}.empty-intro{max-width:560px;margin:0 auto;padding:8px 20px 4px;text-align:center}.empty-title{font-size:22px;font-weight:700;color:#111827;margin-bottom:8px;word-break:keep-all}.empty-desc{font-size:14px;color:#6b7280;line-height:1.6;margin-bottom:28px;word-break:keep-all}.empty-example{background:#fff;border-radius:16px;padding:18px 20px;box-shadow:0 4px 16px -6px #0000001a;margin-bottom:32px}.empty-example-label{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#0369a1;background:#dbeafe;border-radius:20px;padding:3px 10px;margin-bottom:10px}.empty-example-body{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;font-size:15px;color:#374151}.ex-arrow{color:#9ca3af;margin:0 2px}.ex-eq{color:#9ca3af}.ex-answer{font-size:17px;color:#0369a1;font-weight:700}.empty-shortcuts{margin-top:8px;padding-bottom:32px;text-align:center}.empty-shortcut-label{font-size:13px;color:#6b7280;margin-bottom:12px}.shortcut-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.shortcut-chip{padding:8px 16px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#475569;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.shortcut-chip.house-bonga{background:#eff6ff;border-color:#bfdbfe;color:#0369a1}.shortcut-chip.house-oega{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.shortcut-chip.house-jinoega{background:#f5f3ff;border-color:#c4b5fd;color:#5b21b6}.shortcut-chip.house-oeoega{background:#fff7ed;border-color:#fdba74;color:#9a3412}.shortcut-chip:hover{transform:translateY(-1px);filter:brightness(.97)}.shortcut-chip.house-bonga:hover{border-color:#0369a1}.shortcut-chip.house-oega:hover{border-color:#065f46}.shortcut-chip.house-jinoega:hover{border-color:#5b21b6}.shortcut-chip.house-oeoega:hover{border-color:#9a3412}@media (max-width: 900px){.empty-intro,.empty-shortcuts{max-width:var(--content-width-mobile);margin-left:auto;margin-right:auto;padding-left:0;padding-right:0}.empty-intro{padding-top:4px;padding-bottom:4px}.empty-title{font-size:19px}.empty-example-body{font-size:14px}}
