/* 내 사주 첫 장 (Claude 2026-10-08, saju-first-look.mjs) — 생일 입력 직후, 정령보다 먼저 보이는 사주 화면 */
.first-look{max-width:560px;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));color:#ede8ff;font-family:'Malgun Gothic',sans-serif}
#app:has(.tester-banner) .first-look{padding-top:calc(62px + env(safe-area-inset-top))}
.fl-head{text-align:center;margin:6px 0 18px}
.fl-eyebrow{display:inline-block;padding:4px 12px;border-radius:999px;border:1px solid rgba(232,217,181,.35);color:#f4dcae;font-size:12px;letter-spacing:.02em}
.fl-head h1{margin:12px 0 4px;font-size:clamp(26px,7vw,34px);color:#fff;font-family:'Gowun Batang',serif}
.fl-head p{margin:0;color:#bfb3dc;font-size:14px}
.fl-pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 18px}
.fl-pillar{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 9px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(232,217,181,.18)}
.fl-pillar small{font-size:11px;color:#bfb3dc;white-space:nowrap}
.fl-pillar em{font-style:normal;font-size:10.5px;color:#f4dcae;text-align:center;line-height:1.25}
.fl-pillar.is-me{border-color:rgba(244,220,174,.75);background:rgba(244,220,174,.1);box-shadow:0 0 0 1px rgba(244,220,174,.25) inset}
.fl-pillar.is-unknown{opacity:.6}
.fl-letter{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:64px;aspect-ratio:1;border-radius:12px;background:rgba(10,6,30,.4)}
.fl-letter b{font-size:clamp(22px,6.4vw,30px);line-height:1;font-family:'Gowun Batang',serif;font-weight:700}
.fl-letter i{font-style:normal;font-size:11px;color:#d9d2ef;margin-top:3px}
.fl-letter{min-height:76px;aspect-ratio:auto;padding:5px 2px;box-sizing:border-box;text-align:center}
.fl-letter .fl-easy{display:block;margin-top:3px;font-size:12px;line-height:1.2;color:#d9d2ef;overflow-wrap:anywhere}
.paid-reading-update{margin:8px 16px;padding:10px 12px;border:1px solid rgba(244,220,174,.4);border-radius:12px;color:#f4dcae;font-size:12px;line-height:1.5;background:#30243f}
.fl-letter.el-wood b{color:#8fd694}.fl-letter.el-fire b{color:#ff9b8a}.fl-letter.el-earth b{color:#f0c97a}.fl-letter.el-metal b{color:#e9edf5}.fl-letter.el-water b{color:#8ec5ff}
.fl-pillar.is-unknown .fl-letter{font-size:22px;color:#9d92bd}
.fl-identity,.fl-groups,.fl-keys,.fl-invite{margin:0 0 14px;padding:16px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(232,217,181,.2)}
.fl-identity h2{margin:0 0 6px;font-size:19px;color:#fff;font-family:'Gowun Batang',serif}
.fl-identity p{margin:0 0 10px;color:#d9d2ef;font-size:15px;line-height:1.6}
.fl-identity strong{display:block;color:#f4dcae;font-size:17px;line-height:1.55}
.fl-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.fl-tags span{padding:4px 10px;border-radius:999px;border:1px solid rgba(232,217,181,.3);font-size:13px;color:#ede8ff}
.fl-groups h2,.fl-keys h2{margin:0 0 12px;font-size:15px;color:#f4dcae}
.fl-bar{display:grid;grid-template-columns:7.5em 1fr 3em;align-items:center;gap:8px;margin:7px 0;font-size:13.5px}
.fl-bar i{height:10px;border-radius:99px;background:rgba(255,255,255,.08);position:relative;overflow:hidden}
.fl-bar i::after{content:'';position:absolute;inset:0 auto 0 0;width:var(--w);border-radius:99px;background:linear-gradient(90deg,#f4dcae,#f2a7c3)}
.fl-bar b{text-align:right;font-weight:700;color:#fff}
.fl-keys article{display:flex;gap:10px;padding:10px 0;border-top:1px solid rgba(232,217,181,.12)}
.fl-keys article:first-of-type{border-top:0;padding-top:0}
.fl-keys article small{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(244,220,174,.15);color:#f4dcae;font-size:12px;font-weight:700}
.fl-keys h3{margin:0 0 3px;font-size:15px;color:#fff}
.fl-keys article p{margin:0;font-size:14px;color:#d9d2ef;line-height:1.5}
.fl-more{margin:10px 0 0;font-size:12.5px;color:#bfb3dc}
.fl-invite{text-align:center;padding:20px 16px;background:radial-gradient(120% 90% at 50% 0%,rgba(244,220,174,.16),rgba(255,255,255,.05));border-color:rgba(244,220,174,.4)}
.fl-egg{font-size:44px;line-height:1;margin-bottom:6px;animation:flEgg 2.6s ease-in-out infinite}
.fl-invite h2{margin:0 0 6px;font-size:19px;color:#fff;font-family:'Gowun Batang',serif}
.fl-invite p{margin:0 0 14px;color:#d9d2ef;font-size:14.5px;line-height:1.6}
.fl-invite .button{min-height:52px;font-size:16px}
@keyframes flEgg{0%,100%{transform:rotate(0)}20%{transform:rotate(-6deg)}40%{transform:rotate(6deg)}60%{transform:rotate(0)}}
@media(prefers-reduced-motion:reduce){.fl-egg{animation:none}}
@media(min-width:700px){.first-look{padding-top:calc(36px + env(safe-area-inset-top))}}
/* 정령 만나기 단추는 화면 아래에 늘 보이게 (코덱스 상의 10/8: 첫 장이 길어 단추가 밀림) */
.fl-sticky{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(16,13,38,0),rgba(16,13,38,.92) 35%)}
.fl-sticky .button{max-width:528px;margin:0 auto;display:flex;align-items:center;justify-content:center;min-height:54px;font-size:16.5px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
/* 생일 입력 시트: 반투명+흐림이 안 되는 브라우저에서 뒤 글자가 비쳐 보여서 불투명하게 (Claude 10/8, 아이폰 확인) */
.phone .garden-form-sheet{background:linear-gradient(180deg,#2a254e,#17132b)!important}
/* 짧은 가로 화면: 오늘의 운세 띠가 정원 상태 단추를 가리지 않게 운세 보기 알약 옆 위쪽 줄로 (코덱스 검수 10/8) */
@media(max-height:520px){.garden-today-strip{top:calc(12px + env(safe-area-inset-top))!important;left:14px!important;transform:none!important;width:auto!important;max-width:calc(100% - 200px)!important}#app:has(.tester-banner) .garden-today-strip{top:calc(52px + env(safe-area-inset-top))!important}}

/* 사주 홈 (Claude 10/8 A안) — 첫 페이지 다음 풀이 목록, 정령 카드는 맨 아래 */
.saju-home{max-width:560px;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));color:#ede8ff;font-family:'Malgun Gothic',sans-serif}
#app:has(.tester-banner) .saju-home{padding-top:calc(62px + env(safe-area-inset-top))}
.saju-home-page .back-button{position:absolute;top:calc(14px + env(safe-area-inset-top));left:16px;z-index:5}
#app:has(.tester-banner) .saju-home-page .back-button{top:calc(58px + env(safe-area-inset-top))}
.sh-head{text-align:center;padding:40px 0 14px}
.sh-head h1{margin:6px 0 4px;font-size:24px;line-height:1.35;color:#fff6e0}
.sh-head p{margin:0;font-size:14px;color:#cfc5ee}
.sh-first{margin-top:10px;background:none;border:0;color:#f4dcae;font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px}
.sh-menu h2{margin:20px 2px 10px;font-size:15px;color:#f4dcae}
.sh-menu .fortune-menu-list{gap:8px}
.sh-menu .fortune-menu-row{width:100%;display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 14px;border-radius:16px;border:1px solid #ffffff1f;background:#ffffff0d;color:#fff;text-align:left;font:inherit;cursor:pointer}
.sh-menu .fortune-menu-row:active{background:#ffffff1c}
.sh-menu .fortune-menu-row.is-season{border-color:#ff9b7a99;background:#ff7a5a1a}
.sh-menu .fortune-menu-row .fm-icon{font-size:24px;width:32px}
.sh-menu .fortune-menu-row b{font-size:16px}
.sh-menu .fortune-menu-row small{font-size:13px;line-height:1.45}
.sh-spirit{margin-top:28px;display:grid;grid-template-columns:auto 1fr;gap:6px 12px;align-items:center;padding:16px;border-radius:18px;border:1px dashed #f4dcae66;background:#f4dcae0d}
.sh-spirit .sh-egg{font-size:32px}
.sh-spirit h2{margin:0 0 4px;font-size:15.5px;color:#fff6e0}
.sh-spirit p{margin:0;font-size:13.5px;line-height:1.55;color:#d9cdf5}
.sh-spirit .button{grid-column:1/-1;margin-top:8px;min-height:48px}
.sh-drawer{grid-column:1/-1;background:none;border:0;color:#cfc5ee;font:inherit;font-size:13.5px;padding:8px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.saju-home .sh-head p{text-align:center}
.sh-settings{display:block;margin:18px auto 0}

/* 정령 알 카드 (JUNO 10/8): 맨 아래지만 눈에 띄게 — 큰 알이 가끔 흔들리고 숨 쉬듯 빛남 */
.sh-spirit.sh-spirit-egg{display:block;text-align:center;padding:8px 18px 20px;border:1px solid #f4dcae55;border-radius:22px;background:radial-gradient(120% 70% at 50% 30%,#6a4fb04d,#20183e00 70%),linear-gradient(180deg,#2a2152,#1a1438);box-shadow:0 0 0 1px #ffffff0a inset,0 14px 40px #0006;overflow:hidden}
.sh-egg-stage{position:relative;display:block;width:100%;height:250px;margin:0 auto;padding:0;border:0;background:none;cursor:pointer}
.sh-egg-img{position:absolute;left:50%;bottom:14px;width:auto;height:220px;transform-origin:50% 92%;translate:-50% 0;animation:sh-egg-wobble 3.6s ease-in-out infinite,sh-egg-float 5s ease-in-out infinite;filter:drop-shadow(0 0 18px #ffd9f080)}
.sh-egg-glow{position:absolute;left:50%;top:52%;width:240px;height:240px;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,#ffe7c6aa 0%,#d9b8ff55 38%,#d9b8ff00 70%);animation:sh-egg-breathe 3.6s ease-in-out infinite}
.sh-spark{position:absolute;left:var(--x);bottom:24px;width:6px;height:6px;border-radius:50%;background:#fff6d8;box-shadow:0 0 8px #ffe9b0;opacity:0;animation:sh-spark 4.2s linear infinite;animation-delay:var(--d)}
.sh-egg-tag{display:inline-block;margin-top:2px;padding:4px 12px;border-radius:999px;background:#f4dcae22;color:#f4dcae;font-size:12.5px}
.sh-spirit.sh-spirit-egg h2{margin:10px 0 6px;font-size:19px;line-height:1.4;color:#fff6e0}
.sh-spirit.sh-spirit-egg p{margin:0 0 14px;font-size:14.5px;line-height:1.6;color:#ddd3f7}
.sh-spirit.sh-spirit-egg .button{min-height:54px;font-size:16px}
@keyframes sh-egg-wobble{0%,62%,100%{rotate:0deg}68%{rotate:-6deg}74%{rotate:5deg}80%{rotate:-3deg}86%{rotate:2deg}92%{rotate:0deg}}
@keyframes sh-egg-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes sh-egg-breathe{0%,100%{opacity:.55;scale:.9}50%{opacity:1;scale:1.08}}
@keyframes sh-spark{0%{opacity:0;transform:translateY(0) scale(.6)}15%{opacity:1}100%{opacity:0;transform:translateY(-190px) scale(1.1)}}
@media(prefers-reduced-motion:reduce){.sh-egg-img,.sh-egg-glow,.sh-spark{animation:none}.sh-spark{display:none}}
.low-motion-app .sh-egg-img,.low-motion-app .sh-egg-glow{animation:none}.low-motion-app .sh-spark{display:none}
.saju-home .sh-spirit-egg p,.saju-home .sh-spirit-egg h2{text-align:center}
.saju-home .sh-spirit-egg .button{display:flex;align-items:center;justify-content:center;white-space:nowrap}

/* 공유받은 풀이 (Claude 10/9) */
.shared-reading{max-width:560px;margin:0 auto;padding:calc(24px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));color:#ede8ff}
.sr-head{text-align:center;padding:18px 0 8px}.sr-head h1{margin:8px 0 6px;font-size:23px;line-height:1.35;color:#fff6e0}
.sr-sum{margin:0;font-size:15px;color:#e1d6f6}.sr-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:10px}.sr-chips span{padding:4px 10px;border-radius:999px;border:1px solid #ffffff33;font-size:13px}
.sr-page{margin:12px 0;padding:16px;border-radius:18px;background:#281f38;border:1px solid #5e4b65}
.sr-page small{color:#a99cc2}.sr-page h2{margin:4px 0 6px;font-size:17px;color:#fff3dc}.sr-page strong{display:block;margin:4px 0 8px;font-size:19px;line-height:1.4;color:#f4d496}
.sr-page p{margin:6px 0;font-size:15.5px;line-height:1.7}.sr-page .sr-hook{color:#d9cdf0}
.sr-cta{margin-top:20px;padding:18px;border-radius:20px;text-align:center;border:1px solid #f4d49666;background:linear-gradient(180deg,#3a2b5e,#241b3c)}
.sr-cta h2{margin:0 0 6px;font-size:19px;color:#fff6e0}.sr-cta p{margin:0 0 14px;color:#ddd3f7}.sr-cta .button{min-height:54px;font-size:16px}

/* 사주 홈 고민 칸 (Claude 10/9) */
.saju-home .worry-home{margin:6px 0 4px;padding:14px;border-radius:18px;border:1px solid #8fe3c855;background:linear-gradient(180deg,#24304a,#1d2238)}
.saju-home .worry-home label{display:block;font-size:16.5px;font-weight:700;color:#bdf3e1;margin-bottom:4px}
.saju-home .worry-home-note{display:block;margin-bottom:8px;font-size:12.5px;color:#a9bfd0}
.saju-home .worry-home textarea{width:100%;box-sizing:border-box;font-size:16px}
.saju-home .worry-next{margin-top:10px}.saju-home .worry-next small{display:block;margin-bottom:6px;color:#bdf3e1;font-size:13px}
.saju-home .worry-records{margin:8px 0 0}
/* 내 상황 고르기 (선택, Claude 10/11) */
.fl-sit{margin:0 0 14px;padding:16px;border-radius:18px;background:rgba(255,255,255,.06);border:1px dashed rgba(232,217,181,.35)}
.fl-sit h2{margin:0 0 6px;font-size:15px;color:#f4dcae}.fl-sit h2 small{font-size:12px;font-weight:500;color:#cfc6ea;margin-left:4px}
.fl-sit>p{margin:0 0 12px;font-size:13px;line-height:1.5;color:#cfc6ea}
.fl-sit-row{margin-top:10px}.fl-sit-row>b{display:block;font-size:13px;color:#ede8ff;margin-bottom:6px}
.fl-sit-row>div{display:flex;flex-wrap:wrap;gap:6px}
.fl-chip{min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid rgba(232,217,181,.35);background:transparent;color:#ede8ff;font:inherit;font-size:14px;cursor:pointer}
.fl-chip.is-on{background:#f4dcae;color:#2a1a3a;border-color:#f4dcae;font-weight:700}
.fl-rarity{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:rgba(244,220,174,.1)}.fl-rarity b{display:block;font-size:14px;line-height:1.5;color:#f4dcae}.fl-rarity small{display:block;margin-top:4px;font-size:12px;line-height:1.45;color:#cfc6ea}

/* 사주 홈 '요즘 인기' 그림 카드 (Claude 10/11, 웹툰처럼 그림+제목) */
.hot-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}
.hot-tile{display:flex;flex-direction:column;gap:4px;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer;font:inherit;min-width:0}
.hot-img{position:relative;display:block;aspect-ratio:3/4;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.06);box-shadow:0 6px 18px rgba(0,0,0,.25)}
.hot-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.hot-tile:active .hot-img img{transform:scale(1.03)}
.hot-img i{position:absolute;left:8px;top:8px;padding:2px 8px;border-radius:999px;background:#ff5d73;color:#fff;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.04em}
.hot-tile strong{font-size:15px;line-height:1.3;color:#fff4dc;margin-top:4px}
.hot-tile small{font-size:12.5px;line-height:1.4;color:#cfc6ea}
@media(min-width:680px){.hot-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hot-img i.is-new{background:#ff5d73}.hot-img i.is-daily{background:#2fb5a3}.hot-img i:not(.is-new):not(.is-daily){background:#f0a020}
.hot-img em{position:absolute;right:8px;bottom:8px;padding:2px 8px;border-radius:999px;background:rgba(20,14,30,.78);color:#f4dcae;font-style:normal;font-size:11px;font-weight:700}

/* 가로로 넘기는 그림 카드 줄 (Claude 10/11 2차) */
.hot-row-wrap{margin:0 0 18px}.hot-row-wrap h2{margin:0 0 10px;font-size:17px;color:#f4dcae}
.hot-row{display:grid;grid-auto-flow:column;grid-auto-columns:42%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:none;margin-right:-16px;padding-right:16px}
.hot-row::-webkit-scrollbar{display:none}.hot-row .hot-tile{scroll-snap-align:start}
@media(min-width:680px){.hot-row{grid-auto-columns:23%}}
.sh-all{margin:6px 0 18px;border-radius:16px;border:1px solid rgba(232,217,181,.22);background:rgba(255,255,255,.04)}
.sh-all>summary{cursor:pointer;padding:14px 16px;font-weight:700;color:#f4dcae;list-style:none}.sh-all>summary::-webkit-details-marker{display:none}
.sh-all>summary::after{content:' ▾'}.sh-all[open]>summary::after{content:' ▴'}.sh-all>.sh-menu{padding:0 12px 12px}

/* 무료·유료 딱지 + 핵심 세 줄 (Claude 10/11 3차) */
.hot-img em.is-free{background:#2f9e6b;color:#fff}.hot-img em.is-paid{background:linear-gradient(135deg,#f6d27a,#c9973a);color:#3a2606}
.sh-core{margin:0 0 20px;padding:16px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(244,220,174,.28)}
.sh-core h2{margin:0 0 4px;font-size:15px;color:#f4dcae}.sh-core-id{margin:0 0 10px;font-size:18px;font-weight:800;color:#fff}
.sh-core ol{margin:0;padding-left:20px;display:grid;gap:8px}.sh-core li{line-height:1.5;color:#e9e3f5}.sh-core li b{color:#fff}.sh-core li span{color:#cfc6e4}
.sh-core-more{margin-top:10px;background:none;border:0;color:#f4dcae;font-weight:700;padding:4px 0;cursor:pointer}
.sh-core{padding:14px 16px}.sh-core ol{gap:4px}.sh-core li{font-weight:700;color:#fff}.sh-core-id{font-size:17px;margin-bottom:8px}.sh-core-more{margin-top:6px}

/* 정통 사주 큰 카드 줄 (Claude 10/12) — 폰에서 약 1.5장 보이게 */
.hot-row-wrap.is-big h2{font-size:19px;color:#f6e3b8;letter-spacing:.02em}
.hot-row-wrap.is-big .hot-row{grid-auto-columns:62%}
.hot-row-wrap.is-big .hot-img{border:1px solid rgba(214,180,110,.55);box-shadow:0 6px 18px rgba(0,0,0,.35)}
.hot-row-wrap.is-big .hot-tile strong{font-size:17px}
@media(min-width:680px){.hot-row-wrap.is-big .hot-row{grid-auto-columns:30%}}
.sh-core-btns{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:6px}
.sh-core-free{background:rgba(244,220,174,.14);border:1px solid rgba(244,220,174,.45);color:#f4dcae;font-weight:700;border-radius:999px;padding:7px 12px;cursor:pointer}

/* 오늘의 수호수 카드 크게 보기 (Claude 10/12) */
.dh-card-zoom{position:relative;padding:0;border:0;background:none;cursor:zoom-in;flex:none;border-radius:12px;overflow:hidden}
.dh-card-zoom img{display:block}.dh-card-zoom i{position:absolute;right:4px;bottom:4px;font-style:normal;font-size:12px;background:rgba(20,12,34,.75);border-radius:999px;padding:2px 5px}
.cz{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:16px}
.cz-backdrop{position:absolute;inset:0;border:0;background:rgba(8,5,16,.86);cursor:pointer}
.cz-panel{position:relative;width:min(420px,100%);max-height:calc(100dvh - 32px);overflow:auto;display:grid;gap:6px;text-align:center;color:#fff;background:#1d1630;border:1px solid rgba(244,220,174,.3);border-radius:22px;padding:14px 14px 16px}
.cz-x{position:absolute;right:10px;top:10px;z-index:2;width:36px;height:36px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;font-size:16px;cursor:pointer}
.cz-media{border-radius:16px;overflow:hidden;aspect-ratio:3/4;background:#0e0a18}.cz-media video,.cz-media img{width:100%;height:100%;object-fit:cover;display:block}
.cz small{color:#f4dcae;font-size:13px;margin-top:6px}.cz b{font-size:22px}.cz p{margin:0;color:#e9e3f5;line-height:1.55}
.sh-egg-points{list-style:none;margin:4px 0 14px;padding:0;display:grid;gap:8px;text-align:left}.sh-egg-points li{padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(244,220,174,.2);color:#efe7ff;line-height:1.5;font-size:15px}

/* 10/16 카드 첫 줄 질문 + 유료 카드 내용 줄 */
.hot-tile small.hot-q{color:#efe8ff;font-weight:600}
.hot-tile small.hot-sub{font-size:11.5px;color:#a99fca;margin-top:2px}
