/* hello aura — 헬로우아우라 브랜딩(남색 면, 흰 볼드, 라임 핵심어, 가는 세로선, 가장자리 빛).
   본문 이하 글자는 Apple HIG 크기: Body 17, Callout 16, Subheadline 15, Footnote 13, Caption 12, Caption2 11, 탭 라벨 10 */
:root {
  --night: #2d2c3e; --canvas: #1c1c22; --box: #3a3952; --ivory: #ffffff; --dim: #a9a8bf; --lime: #eaff00; --edge: #374b6b; --blue: #6f8fc4;
  --f-ko: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-gl: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", sans-serif;
  --vline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 54'%3E%3Cpath d='M1.5 0 C2.7 16 2.7 38 1.5 54 C0.3 38 0.3 16 1.5 0Z' fill='%23fff'/%3E%3C/svg%3E");
  /* HIG */
  --body: 17px; --callout: 16px; --sub: 15px; --foot: 13px; --cap: 12px; --cap2: 11px;
  --gutter: 28px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--canvas); color: var(--ivory); height: 100%; }
body { font-family: var(--f-ko); font-size: var(--body); line-height: 1.6; word-break: keep-all; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.lime { color: var(--lime); }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: -0.02em; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gl { font-family: var(--f-gl); font-weight: 400; font-style: normal; display: inline-block; line-height: 1; }
.gl--ac { font-family: var(--f-mono); font-size: .72em; font-weight: 600; letter-spacing: 0; }
.spark { color: var(--lime); font-size: 22px; line-height: 1; display: inline-block; }

/* 앱 틀: 모바일 한 장, 가장자리 빛 */
#root { height: 100%; }
.app { position: relative; max-width: 430px; height: 100%; margin: 0 auto; background: var(--night); display: flex; flex-direction: column; overflow: hidden; }
.app::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 30; box-shadow: inset 0 0 34px 6px rgba(55, 75, 107, .95), inset 0 0 6px 1px rgba(70, 95, 135, .9); }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
.scroll::-webkit-scrollbar { display: none; }

/* 머리 */
.top { display: flex; justify-content: space-between; align-items: center; padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 6px; position: relative; z-index: 2; }
.logo { font-family: var(--f-mono); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: #fff; white-space: nowrap; line-height: 1; display: inline-flex; align-items: flex-start; }
.logo i { font-style: italic; }
.logo .au { font-size: .82em; margin-left: .12em; margin-top: -.42em; padding-bottom: .08em; border-bottom: 2.5px solid var(--lime); }
.me-btn { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -12px; }
.txtbtn { font-size: var(--sub); font-weight: 600; color: #fff; padding: 10px 0 3px; border-bottom: 2px solid var(--lime); }
.txtbtn.danger { color: var(--dim); border-bottom-color: var(--dim); }
.linkbtn { font-size: inherit; color: #fff; border-bottom: 1px solid var(--lime); padding: 0 0 1px; }
.linkbtn.danger { color: var(--dim); border-bottom-color: var(--dim); }

/* 글자: 큰 제목은 브랜드, 본문 이하 HIG */
.h1 { font-weight: 800; font-size: 31px; line-height: 1.36; margin: 0; letter-spacing: -0.04em; }
.h2 { font-weight: 700; font-size: 23px; line-height: 1.42; margin: 0; letter-spacing: -0.035em; }
.eyebrow { font-family: var(--f-mono); font-size: var(--foot); color: var(--dim); margin: 0; letter-spacing: 0; }
.soft { color: var(--dim); font-size: var(--callout); line-height: 1.6; margin: 0; }
.lead { font-size: var(--body); line-height: 1.65; margin: 0; color: #fff; }
.foot { font-size: var(--foot); color: var(--dim); margin: 0; line-height: 1.55; }
.pb { padding: 24px var(--gutter) 8px; }

/* 구획: 가운데 정렬, 카드 없음, 세로선으로 끊는다 */
.sec { padding: 26px var(--gutter); display: grid; gap: 14px; justify-items: center; text-align: center; position: relative; }
.sec--tight { padding-top: 10px; padding-bottom: 8px; }
.vl { display: block; width: 3px; height: 54px; background: var(--vline) center / 100% 100% no-repeat; margin: 4px auto; opacity: .9; }
.cta { margin-top: 8px; border: 0; background: none; padding: 6px 0 4px; cursor: pointer; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; color: #fff; border-bottom: 3px solid var(--lime); display: inline-block; }
.cta:disabled { opacity: .4; }
.cta.is-done { border-bottom-color: var(--dim); color: var(--dim); opacity: 1; }

/* 히어로 */
.hero { position: relative; padding: 34px var(--gutter) 30px; display: grid; gap: 14px; justify-items: center; text-align: center; overflow: hidden; }
.hero > *:not(canvas) { position: relative; }
canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero--full { min-height: 100%; align-content: space-between; padding-top: calc(26px + env(safe-area-inset-top)); padding-bottom: calc(46px + env(safe-area-inset-bottom)); }
.hero--full .hrow { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.hero__mid { display: grid; gap: 16px; justify-items: center; }
.hero__moon { margin-bottom: 18px; animation: float 7s ease-in-out infinite; }
.hero--love { min-height: 72vh; align-content: center; gap: 16px; }
.glyphs { font-size: 26px; margin: 6px 0 0; display: flex; gap: 10px; align-items: center; justify-content: center; }
.glyphs .gl--ac { font-size: 17px; }
.asp { width: .8em; height: .8em; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; margin: 0 4px; vertical-align: -0.06em; flex: none; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* 달 */
.moonwrap { display: grid; place-items: center; margin: 4px 0 2px; }
.moonwrap--sm { margin: 8px 0 0; }
.moonsvg .m-dark { fill: var(--box); }
.moonsvg .m-lit { fill: #fff; }

/* 오늘 닿는 별 */
.tlist { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.tl { width: 100%; display: grid; gap: 4px; justify-items: center; padding: 14px 0; text-align: center; }
.tl + .tl { border-top: 0; }
.tl__g { font-size: 22px; display: flex; gap: 6px; align-items: center; }
.tl b { font-size: var(--body); font-weight: 700; line-height: 1.5; letter-spacing: -0.02em; }
.tl__s { font-size: var(--callout); color: var(--dim); }
.tl__more { display: none; gap: 4px; font-size: var(--foot); color: var(--dim); margin-top: 6px; }
.tl[aria-expanded="true"] .tl__more { display: grid; }
.tl[aria-expanded="true"] b { color: #fff; }
.tl[aria-expanded="false"] .tl__g::after { content: "+"; font-family: var(--f-mono); font-size: var(--foot); color: var(--dim); margin-left: 4px; }

/* 셋 */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 4px; }
.trio > div { display: grid; gap: 8px; justify-items: center; }
.trio b { font-size: var(--body); font-weight: 700; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dots i.on { background: var(--lime); box-shadow: 0 0 8px rgba(234, 255, 0, .5); }

.dodont { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 12px; }
.dodont > div { display: grid; gap: 8px; align-content: start; }
.dodont b { font-size: var(--body); font-weight: 700; margin-bottom: 2px; }
.dodont span { font-size: var(--callout); color: #fff; }
.dodont > div:last-child span { color: var(--dim); }

/* 하루의 달 */
.daytrack { position: relative; width: 100%; height: 58px; touch-action: none; cursor: grab; margin-top: 6px; }
.dt__line { position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: rgba(255, 255, 255, .35); }
.dt__h { position: absolute; top: 36px; transform: translateX(-50%); font-family: var(--f-mono); font-size: var(--cap2); color: var(--dim); }
.dt__hit { position: absolute; top: 17px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; border: 1.5px solid #fff; background: var(--night); }
.dt__hit--harm { border-color: var(--blue); }
.dt__hit--conj { background: #fff; }
.dt__now { position: absolute; top: 12px; width: 1px; height: 21px; background: var(--lime); }
.dt__knob { position: absolute; top: 9px; width: 27px; height: 27px; margin-left: -13.5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px rgba(234, 255, 0, .55); transition: left .05s; }
.daytrack + .foot { min-height: 44px; font-size: var(--sub); color: #fff; }

/* 원형 차트 */
.wheelbox { width: min(100%, 390px); aspect-ratio: 1; margin: 4px auto 0; padding: 0 14px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.wheelbox:active { cursor: grabbing; }
.wheel { width: 100%; height: 100%; display: block; overflow: visible; }
.w-ring { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; }
.w-ring--in { stroke: rgba(255, 255, 255, .22); }
.w-div { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.w-tick { stroke: rgba(255, 255, 255, .3); stroke-width: .8; }
.w-sign { fill: #fff; font-family: var(--f-gl); font-size: 17px; text-anchor: middle; dominant-baseline: central; }
.w-house { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.w-hn { fill: var(--dim); font-family: var(--f-mono); font-size: 9px; text-anchor: middle; dominant-baseline: central; opacity: .8; }
.w-asc { stroke: var(--lime); stroke-width: 1.5; }
.w-ac { fill: var(--lime); font-family: var(--f-mono); font-size: 10px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.w-asp { stroke-width: 1.1; stroke: rgba(255, 255, 255, .6); transition: opacity .2s; }
.w-asp--harm { stroke: #8eaadb; }
.w-asp--tense { stroke: rgba(255, 255, 255, .62); stroke-dasharray: 3 3; }
.w-asp--conj { stroke: rgba(255, 255, 255, .8); }
.w-asp.is-on { stroke: var(--lime); stroke-width: 1.6; opacity: 1; }
.w-asp.is-dim { opacity: .12; }
.w-pt { stroke: #fff; stroke-width: 1.2; }
.w-pt.is-out { stroke: var(--dim); }
.w-p { cursor: pointer; }
.w-hit { fill: var(--night); stroke: none; }
.w-pg { fill: #fff; font-family: var(--f-gl); font-size: 17px; text-anchor: middle; dominant-baseline: central; transition: fill .2s; }
.w-p.is-out .w-pg { fill: var(--dim); font-size: 15px; }
.w-p.is-on .w-hit { fill: var(--lime); }
.w-p.is-on .w-pg { fill: var(--night); }
.w-p.is-dim .w-pg { fill: rgba(255, 255, 255, .45); }
.w-r { fill: var(--lime); font-family: var(--f-mono); font-size: 8px; font-weight: 600; }
.w-ghost { fill: rgba(255, 255, 255, .38); font-family: var(--f-gl); font-size: 13px; text-anchor: middle; dominant-baseline: central; }
.wheel.is-intro .w-ring, .wheel.is-intro .w-div { animation: fadein 1s ease both; }
.wheel.is-intro .w-sign { animation: fadein .5s ease both; animation-delay: calc(var(--i) * 60ms + 200ms); }
.wheel.is-intro .w-p { animation: pop .6s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(var(--i) * 90ms + 700ms); transform-box: fill-box; }
.wheel.is-intro .w-asp { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1s ease forwards; animation-delay: calc(var(--i) * 70ms + 1500ms); }
.wheel.is-intro .w-asp--tense { animation-name: drawdash; }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawdash { 0% { stroke-dashoffset: var(--len); stroke-dasharray: var(--len); } 99% { stroke-dashoffset: 0; stroke-dasharray: var(--len); } 100% { stroke-dasharray: 3 3; stroke-dashoffset: 0; } }

/* 별 설명 */
.pi { display: grid; gap: 6px; justify-items: center; min-height: 170px; }
.pi__g { font-size: 34px; color: var(--lime); line-height: 1; }
.pi__g .gl--ac { font-size: 22px; }
.big3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); width: 100%; gap: 6px; }
.b3 { display: grid; gap: 4px; justify-items: center; padding: 8px 0; animation: rise .7s ease both; animation-delay: calc(var(--i, 0) * 260ms + 1800ms); }
.sec .b3 { animation: none; }
.is-ob .b3 { animation: rise .7s ease both; animation-delay: calc(var(--i, 0) * 260ms + 1800ms); }
.b3 .gl { font-size: 30px; color: var(--lime); }
.b3 .gl--ac { font-size: 20px; padding: 5px 0; }
.b3 b { font-size: var(--body); font-weight: 700; }
.b3 span:last-child { font-size: var(--foot); color: var(--dim); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.bars { width: 100%; display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 52px 1fr 30px; align-items: center; gap: 12px; font-size: var(--callout); color: var(--dim); }
.bar i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); width: var(--w); animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.bar b { font-size: var(--foot); text-align: right; font-weight: 500; }
.bar.is-top { color: #fff; }
.bar.is-top i { background: var(--lime); box-shadow: 0 0 10px rgba(234, 255, 0, .4); }
.bar span { text-align: left; }
@keyframes grow { from { width: 0; } }

.plist, .alist, .rxl, .evl, .cmp, .elist, .howl { list-style: none; margin: 0; padding: 0; width: 100%; text-align: left; }
.plist li button { width: 100%; display: grid; grid-template-columns: 30px 56px 1fr auto; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; min-height: 44px; }
.plist .gl { font-size: 20px; text-align: center; }
.plist b { font-size: var(--body); font-weight: 600; }
.plist span { font-size: var(--callout); color: #fff; }
.plist span .mono { color: var(--dim); font-size: var(--foot); }
.plist em { font-style: normal; font-size: var(--foot); color: var(--dim); }
.alist li { display: grid; grid-template-columns: 70px 1fr; column-gap: 8px; row-gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.alist .ag { grid-row: span 2; font-size: 19px; display: flex; align-items: center; gap: 2px; padding-top: 2px; align-self: start; }
.alist .ag .gl--ac { font-size: 12px; }
.alist li > b { font-size: var(--body); font-weight: 700; }
.alist li > span:last-child { font-size: var(--callout); color: var(--dim); }
.rxl li { display: grid; grid-template-columns: 30px 64px 1fr; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rxl .gl { font-size: 20px; color: var(--lime); text-align: center; }
.rxl b { font-size: var(--body); font-weight: 600; }
.rxl span { font-size: var(--callout); color: var(--dim); }
.evl li button { width: 100%; display: grid; grid-template-columns: 52px 1fr; column-gap: 10px; row-gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.evl .mono { font-size: var(--foot); color: var(--lime); grid-row: span 2; padding-top: 3px; }
.evl b { font-size: var(--body); font-weight: 700; }
.evl span:last-child { font-size: var(--foot); color: var(--dim); }
.cmp li { display: grid; grid-template-columns: 30px 50px 1fr 1fr; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: var(--callout); }
.cmp .gl { font-size: 20px; text-align: center; }
.cmp li span:last-child { color: var(--dim); }
.cmp .cmp__h { font-size: var(--foot); color: var(--dim); padding: 4px 0; }
.cmp .cmp__h span:nth-child(3) { color: #fff; }
.howl li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.howl b { font-size: var(--body); }
.howl span { font-size: var(--foot); color: var(--dim); }

/* 지금 하늘 */
.scrub { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 6px var(--gutter) 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; touch-action: none; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, .35); border-radius: 1px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(234, 255, 0, .55); }
input[type=range]::-moz-range-track { height: 2px; background: rgba(255, 255, 255, .35); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--lime); }
.scrub + .foot { padding: 4px var(--gutter) 0; }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px 4px; width: 100%; }
.mcal > span { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border-radius: 10px; }
.mcal i { font-style: normal; font-family: var(--f-mono); font-size: var(--cap2); color: var(--dim); }
.mcal .is-today { box-shadow: inset 0 0 0 1.5px var(--lime); }
.mcal .is-today i { color: var(--lime); }

/* 궁합 */
.people { display: flex; gap: 18px; overflow-x: auto; padding: 4px var(--gutter) 6px; scrollbar-width: none; }
.person { flex: none; font-size: var(--callout); font-weight: 700; color: var(--dim); padding: 10px 0 3px; border-bottom: 2.5px solid transparent; }
.person.is-on { color: #fff; border-bottom-color: var(--lime); }
.person--add { color: var(--dim); font-weight: 500; }
.person--add::before { content: "+ "; }
.venn { position: relative; width: 168px; height: 108px; margin: 0 auto 10px; }
.venn span { position: absolute; top: 0; width: 108px; height: 108px; border-radius: 50%; border: 1.5px solid #fff; }
.venn span:first-child { left: 0; animation: vl 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.venn span:last-child { right: 0; border-color: var(--lime); animation: vr 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.venn b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: var(--lime); }
.venn--sm { margin-top: 10px; }
@keyframes vl { from { transform: translateX(-26px); opacity: 0; } }
@keyframes vr { from { transform: translateX(26px); opacity: 0; } }

/* 별 일기 */
.write { padding: 10px var(--gutter) 6px; display: grid; gap: 14px; justify-items: center; text-align: center; }
textarea { width: 100%; resize: none; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .3); border-radius: 0; padding: 14px 4px; font-size: var(--body); line-height: 1.65; color: #fff; outline: none; }
textarea:focus { border-bottom-color: var(--lime); }
textarea::placeholder, input::placeholder { color: rgba(169, 168, 191, .7); }
.chkline { display: inline-flex; align-items: center; gap: 8px; font-size: var(--callout); min-height: 44px; }
.chkline input { width: 20px; height: 20px; accent-color: var(--lime); margin: 0; }
.elist li a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.elist b { display: block; font-size: var(--body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry { padding: 10px var(--gutter) 6px; font-size: var(--body); line-height: 1.75; white-space: normal; }
.entry--other { padding: 0; text-align: left; width: 100%; }
.arrive { gap: 12px; }
.trip { font-size: var(--callout); margin: 0; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.trip .gl { color: var(--lime); }

/* 입력 */
.form { display: grid; gap: 18px; padding: 8px var(--gutter) 20px; justify-items: stretch; }
.form .cta { justify-self: center; }
.form .foot { text-align: center; }
.fld { display: grid; gap: 4px; }
.fld > span { font-size: var(--foot); color: var(--dim); }
.fld input, .fld select { width: 100%; min-height: 44px; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .3); border-radius: 0; padding: 8px 2px; font-size: var(--body); color: #fff; outline: none; color-scheme: dark; -webkit-appearance: none; appearance: none; }
.fld select { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9a8bf' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.fld select option { background: var(--night); }
.fld input:focus, .fld select:focus { border-bottom-color: var(--lime); }
.fld input:disabled { opacity: .35; }
.fld__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.obwheel { width: 230px; margin: 4px auto 0; display: grid; gap: 8px; justify-items: center; }
.obwheel .wheel { width: 230px; height: 230px; }
.obw__cap { margin: 0; font-size: var(--sub); display: flex; gap: 4px; align-items: center; }
.obw__cap .gl { color: var(--lime); }

/* 탭 */
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--night) 70%, rgba(45, 44, 62, 0)); position: relative; z-index: 31; }
.tab { display: grid; justify-items: center; gap: 3px; padding: 6px 0 2px; color: var(--dim); font-size: 10px; font-weight: 500; min-height: 44px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-on { color: #fff; }
.tab.is-on svg { stroke: var(--lime); }
.tab.is-on span { border-bottom: 1.5px solid var(--lime); }

/* 시트 */
.ovl { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(14, 14, 22, .62); animation: fadein .25s both; }
.scrim--solid { background: var(--night); }
.sheet { position: relative; width: 100%; max-width: 430px; max-height: 88vh; overflow-y: auto; background: var(--night); border-radius: 22px 22px 0 0; padding: 8px 0 calc(24px + env(safe-area-inset-bottom)); box-shadow: inset 0 0 26px 4px rgba(55, 75, 107, .9); animation: up .32s cubic-bezier(.2, .8, .2, 1) both; }
.ovl.is-out .sheet { animation: down .24s ease both; }
.ovl.is-out .scrim { opacity: 0; transition: opacity .24s; }
.sheet__grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin: 0 auto 6px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 4px var(--gutter) 4px; }
.sheet__t { font-size: var(--body); font-weight: 700; }
.sheet__head .txtbtn { padding-top: 6px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
.ask { padding: 10px var(--gutter) 6px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.ask__chips { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }
.chip { font-size: var(--sub); color: #fff; padding: 8px 0 2px; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.ask__a { width: 100%; text-align: left; display: grid; gap: 10px; min-height: 10px; }
.ask__q { margin: 0; font-size: var(--foot); color: var(--lime); }
.ask__txt { margin: 0; font-size: var(--body); line-height: 1.7; white-space: pre-wrap; }
.ask__wait { text-align: center; }
.dotdot::after { content: ""; animation: dd 1.2s steps(4) infinite; }
@keyframes dd { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* 일기 도착 */
.ovl--arrive { align-items: center; }
.arr { position: relative; width: 100%; max-width: 430px; height: 100%; display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; }
.arr .h2 { position: relative; }
.arr__moon { position: relative; animation: float 2.4s ease-in-out infinite, fadein .8s both; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; display: flex; gap: 10px; align-items: center; background: var(--box); color: #fff; font-size: var(--sub); padding: 12px 18px; border-radius: 14px; max-width: 88vw; animation: rise .3s both; }
.toast .spark { font-size: 16px; }
.toast.is-out { opacity: 0; transition: opacity .3s; }

@media (min-width: 520px) { .app { height: min(100%, 932px); margin-top: max(0px, calc((100vh - 932px) / 2)); border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
