.home-hub { --gold:#edcf91; }
.hub-hero { position:relative; overflow:hidden; padding:36px 24px 28px; border:1px solid #cab3ee28; border-radius:24px; background:radial-gradient(ellipse at 100% 0,#58407577,transparent 65%),linear-gradient(140deg,#242037,#171724); }
.hub-hero h1 { font-size:clamp(1.65rem,6vw,2.3rem); line-height:1.4; letter-spacing:-.05em; margin:16px 0; position:relative; z-index:1; }
.hub-hero p:not(.eyebrow) { color:#c9c0d8; line-height:1.8; font-size:.86rem; position:relative; z-index:1; }
.hub-primary { display:flex; justify-content:space-between; padding:15px 18px; border-radius:12px; margin:24px 0 12px; background:#ebd5a6; color:#292133; text-decoration:none; font-weight:700; position:relative; z-index:1; }
.hub-secondary { display:block; text-align:center; font-size:.8rem; color:#c5bad5; padding:6px; }
.hero-orbit { position:absolute; right:12px; top:-32px; font-size:170px; color:#dcc59422; transform:rotate(15deg); }
.hub-tabs { display:flex; gap:6px; margin:20px 0 30px; }
.hub-tabs a { flex:1; text-align:center; padding:12px 3px; border-bottom:1px solid #bda4db44; text-decoration:none; font-size:.8rem; }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:16px; }
.section-head h2,.how-it-works h2,.hub-help h2 { font-size:1.2rem; margin:4px 0; }
.section-head>span { color:#edcf91; font-size:.7rem; }
.rhythm-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.rhythm-grid a { position:relative; overflow:hidden; text-decoration:none; padding:22px 16px; border:1px solid #d9bda530; border-radius:18px; background:linear-gradient(140deg,#392e38,#221e30); }
.rhythm-grid a:nth-child(2) { background:linear-gradient(140deg,#2a304c,#201c32); border-color:#a7b5ed30; }
.rhythm-grid small { color:#bcb1ca; font-size:.7rem; }
.rhythm-grid h3 { font-size:1.15rem; margin:12px 0; color:#fff4db; }
.rhythm-grid p { font-size:.78rem; color:#c9c1d6; line-height:1.7; }
.rhythm-grid b { font-size:.77rem; color:#edcf91; }
.rhythm-symbol { display:block; font-size:2.2rem; line-height:1.2; color:#edcf91; margin-bottom:18px; }
.how-it-works { margin:32px 0; padding:24px 20px; border-radius:18px; background:#ffffff04; border:1px solid #ffffff0c; }
.how-it-works ol { padding:0; list-style:none; margin:22px 0 0; }
.how-it-works li { display:flex; align-items:center; gap:15px; margin:18px 0; font-size:.86rem; }
.how-it-works li>b { color:#edcf91; font-size:.78rem; border:1px solid #edcf9133; padding:7px; border-radius:50%; }
.how-it-works small { display:block; color:var(--dim); margin-top:5px; font-size:.7rem; }
.guide-section,.hub-help { margin-top:32px; }
.home-advisors .card { min-height:320px; height:360px; }
.hub-help details { border-bottom:1px solid #ffffff16; padding:18px 0; font-size:.86rem; }
.hub-help summary { cursor:pointer; line-height:1.6; }
.hub-help p { color:var(--dim); line-height:1.8; }
.hub-help>a { display:inline-block; margin:20px 0; font-size:.8rem; }
.input-progress { border-bottom:2px solid #c5a0ee; padding-bottom:12px; color:#dfc5ff; font-size:.85rem; }
.step-nav { display:flex; gap:10px; margin:20px 0 0; }
.step-nav button { flex:1; border:1px solid #b696d744; border-radius:12px; padding:14px; color:#eee2fc; background:#332741; cursor:pointer; font:inherit; }
.input-review { padding:18px; background:#ffffff06; border:1px solid #ffffff12; border-radius:14px; }
.input-review h3 { font-size:1rem; }
.input-review p { font-size:.85rem; line-height:1.8; }
[hidden] { display:none!important; }
.read-all { border:1px solid #c1a4e044; padding:9px 14px; background:#241d32; color:#dfc5ff; border-radius:30px; font:inherit; font-size:.8rem; cursor:pointer; margin-bottom:18px; }
.suggested-asks { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.suggested-asks button { background:#252035; color:#d8c8ec; border:1px solid #b793e333; border-radius:20px; padding:9px 12px; font:inherit; font-size:.75rem; cursor:pointer; }
.result-links { display:flex; flex-wrap:wrap; gap:15px; font-size:.8rem; margin:24px 0; }
.stats-scroll { overflow-x:auto; }
.stats-scroll table { min-width:620px; }
@media(max-width:360px) { .hub-hero { padding:25px 18px; } .hub-primary { font-size:.85rem; } .rhythm-grid a { padding:18px 12px; } }

.rhythm-grid a { isolation:isolate; }
.rhythm-art { position:absolute; right:0; top:0; width:75%; height:100%; object-fit:cover; object-position:50% 20%; opacity:.28; z-index:-2; }
.rhythm-grid a::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#241e30 0%,#241e3040 100%); z-index:-1; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:100; padding:10px 16px; background:#ead6ff; color:#201629; border-radius:8px; }
.skip-link:focus { top:10px; }
.catalog-search { display:block; font-size:.88rem; margin:20px 0 12px; color:#d9c9eb; }
.catalog-search input { display:block; width:100%; margin-top:8px; border:1px solid #b69bc255; border-radius:12px; padding:13px 14px; background:#211c2d; color:#f1ecff; font:inherit; font-size:16px; }
.catalog-search input:focus-visible { outline:2px solid #c9a2ff; outline-offset:2px; }
:where(a,button,input,summary):focus-visible { outline:2px solid #c9a2ff; outline-offset:3px; }
.tabbar { padding-bottom:max(6px,env(safe-area-inset-bottom)); }
input[type="date"],input[type="time"],.ask-row input { font-size:16px; min-width:0; }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto!important; } *,*::before,*::after { animation:none!important; transition:none!important; } }
.mine-filter { display:flex; align-items:center; gap:12px; font-size:.85rem; margin:12px 0; }
.mine-filter select { flex:1; min-width:0; font:inherit; color:var(--ink); background:var(--card); padding:10px; border:1px solid var(--line); border-radius:10px; }
.mine-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.mine-actions button { font:inherit; font-size:.82rem; padding:10px 14px; border-radius:10px; border:1px solid #c9a2ff50; background:#292135; color:#dfc5ff; cursor:pointer; }
.mine-item p { overflow-wrap:anywhere; }
.mine-item summary { cursor:pointer; line-height:1.7; }
.topic-share { margin:24px 0; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--card); }
.share-topic { padding:12px 18px; border:1px solid #c9a2ff70; border-radius:24px; background:#292135; color:#dfc5ff; font:inherit; cursor:pointer; }
.share-topic:disabled { opacity:.6; cursor:wait; }
.share-fallback { overflow-wrap:anywhere; }
.related-topics { margin:36px 0; }
.related-grid { display:grid; gap:12px; }
.related-card { display:flex; align-items:stretch; overflow:hidden; border-radius:18px; border:1px solid var(--line); background:var(--card); text-decoration:none; color:var(--ink); }
.related-card img { width:104px; height:144px; object-fit:cover; flex:none; }
.related-card > span { display:flex; flex-direction:column; justify-content:center; gap:6px; padding:14px; min-width:0; }
.related-card small { color:#baa5ce; font-size:.75rem; }
.related-card strong { font-size:1.08rem; }
.related-card span span { font-size:.82rem; color:#b4adc2; }
.related-card b { font-size:.8rem; color:#f19bbe; }
.related-card:hover { border-color:#c9a2ff; }
.reading-usage { margin:20px 0; padding:18px; border:1px solid #c9a2ff50; border-radius:16px; background:linear-gradient(135deg,#30233e,#1d1928); text-align:left; }
.reading-usage strong { display:block; margin-top:6px; color:#f2defe; font-size:1.25rem; }
.reading-usage small { font-size:.8rem; font-weight:400; color:#b4adc2; }
.reading-usage a { display:inline-block; padding:8px 0; color:#f19bbe; }
.copy-manual textarea { display:block; box-sizing:border-box; width:100%; margin-top:10px; padding:12px; font:inherit; font-size:16px; line-height:1.7; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:10px; resize:vertical; }
.reading-controls { margin:20px 0; padding:16px; border:1px solid var(--line); border-radius:14px; }
.reading-size-options { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.reading-size-options button { min-height:44px; padding:10px 16px; border:1px solid #c9a2ff50; border-radius:24px; font:inherit; color:var(--ink); background:var(--card); cursor:pointer; }
.reading-size-options button[aria-pressed="true"] { background:#c9a2ff; color:#21182e; border-color:#c9a2ff; font-weight:700; }
.reading-size-options button:focus-visible { outline:3px solid #f19bbe; outline-offset:3px; }
:root { --reading-font-size:1rem; }
:root[data-reading-size="large"] { --reading-font-size:1.15rem; }
:root[data-reading-size="xlarge"] { --reading-font-size:1.3rem; }
.chat .bubble p, .mine-item details p { font-size:var(--reading-font-size); line-height:1.85; word-break:keep-all; overflow-wrap:anywhere; }
.birth-steps { list-style:none; padding:0; display:flex; gap:6px; }
.birth-steps li { flex:1; padding:9px 4px; border-radius:9px; text-align:center; font-size:.78rem; color:var(--dim); border:1px solid var(--line); }
.birth-steps li[aria-current="step"] { background:#c9a2ff; color:#21182e; font-weight:700; }
.birth-steps li.complete { border-color:#c9a2ff; color:#dfc5ff; }
.birth input:disabled { opacity:.45; cursor:not-allowed; }
.review-person { padding:12px 0; border-bottom:1px solid var(--line); }
.review-person button { min-height:44px; padding:8px 14px; border:1px solid #c9a2ff60; border-radius:10px; color:#dfc5ff; background:#292135; cursor:pointer; font:inherit; }
.unavailable { margin:24px 0; padding:32px 22px; text-align:center; border:1px solid var(--line); border-radius:24px; background:radial-gradient(ellipse at top,#49335266,transparent 70%),var(--card); }
.unavailable-star { font-size:4rem; color:#edcf91; line-height:1.3; margin-bottom:16px; }
.unavailable h1 { font-size:1.5rem; line-height:1.5; }
.unavailable > p { line-height:1.8; }
.unavailable .cta { display:block; box-sizing:border-box; text-decoration:none; margin-top:24px; }
.recovery-links { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; margin:16px 0; }
.recovery-links a { padding:10px 0; }

.birth-date-picker { margin:12px 0 18px; }
.birth-date-picker > p:first-child { margin:0 0 8px; }
.birth-date-fields { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:8px; }
.birth .birth-date-fields label { display:flex; flex-direction:column; gap:6px; min-width:0; margin:0; font-size:.9rem; }
.birth-date-fields select { width:100%; min-width:0; min-height:48px; padding:10px 6px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); font:inherit; font-size:16px; }
.birth-date-fields select:disabled { opacity:.55; }
.birth-date-picker .note { margin-top:8px; }

/* 입력 화면 캐릭터 말풍선(6회차) — 단계마다 캐릭터가 묻는다. 움직임 없음 */
.birth-bubble { display:flex; gap:12px; align-items:flex-start; margin:18px 0 14px; }
.birth-bubble img { flex:0 0 auto; width:64px; height:86px; object-fit:cover; object-position:50% 20%; border-radius:14px; border:1px solid #c9a2ff50; }
.birth-bubble-emoji { flex:0 0 auto; width:64px; height:86px; display:flex; align-items:center; justify-content:center; font-size:2rem; border-radius:14px; background:var(--card); }
.birth-bubble-body { min-width:0; padding:10px 14px; border-radius:4px 16px 16px 16px; background:#2b2540; }
.birth-bubble-who { display:block; font-size:.78rem; color:var(--accent); font-weight:700; }
.birth-bubble h3 { margin:2px 0 0; font-size:clamp(1.15rem,4.6vw,1.4rem); line-height:1.4; color:#fff; word-break:keep-all; }
/* 12지시 버튼 — 3열, 44px 이상, 눌린 것은 보라 */
.birth-time-bands { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 12px; }
.birth-time-bands button { min-height:48px; padding:8px 6px; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--ink); font:inherit; font-size:.95rem; cursor:pointer; }
.birth-time-bands button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; line-height:1.25; }
.birth-time-bands .band-hours { font-size:.78rem; opacity:.72; font-weight:400; }
.birth-time-bands button[aria-pressed="true"] { background:#c9a2ff; color:#21182e; border-color:#c9a2ff; font-weight:700; }
.birth-time-bands button:focus-visible { outline:3px solid #f19bbe; outline-offset:3px; }
.birth-time-picker > select[hidden] { display:none; }
