/* 앱 화면 스타일. 11-16 공개 목업의 밝은 미색 UI가 기준이다 */
/* 글자: 제목·단추 Jua, 본문 Gothic A1 500(강조 700). 크기 단계 13 · 15 · 16(본문) · 18 · 20 · 24 · 28. 여백 단계 4 · 8 · 12 · 16 · 20 · 24. 누르는 곳은 44px 이상.
   모서리: 알약 999 · 카드 28 · 작은 상자 20 · 모달·시트 36 */
/* 레이아웃: 화면 가운데 휴대폰 한 대(최대 430px). Quabble식 틀 — 밝은 미색 화면(말풍선+캐릭터+아래 큰 버튼)과
   어두운 남색 화면(질문·홈·이야기)을 번갈아 쓴다. 색은 옐로우하트 것: 산호 버튼, 남색 어두운 바탕, 노랑은 하트에만. */
:root{
  --cream:#FAF8F2; --line:#E5E1D3; --ink:#2B2A33; --ink2:#7A7768; --ink3:#A9A597;
  --night:#28304A; --night2:#343D5C; --nightT:#F3F1EA; --nightT2:#B7B9C8;
  --coral:#EE7B5C; --coralD:#D9603F; --coral50:#FCEBE4;
  --heart:#F7C81E; --navy:#182448;
  --card1:#55708A; --card2:#6E8A78; --card3:#8A6A70; --card4:#7A6E50;
  --round:"Jua","Pretendard Variable",Pretendard,system-ui,sans-serif;
  --body:"Pretendard Variable",Pretendard,"Apple SD Gothic Neo","Malgun Gothic",system-ui,-apple-system,sans-serif;
  --gut:20px; /* 화면 좌우 여백 */
  --spring:cubic-bezier(.3,1.6,.5,1);
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{height:100%}
body{background:#DCD9CF;color:var(--ink);font-family:var(--body);font-weight:500;font-size:16px;line-height:1.55;letter-spacing:-.01em;word-break:keep-all;overflow-wrap:break-word;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;
  padding-left:max(0px,env(safe-area-inset-left,0px));padding-right:max(0px,env(safe-area-inset-right,0px))}
.stage{min-height:100%;display:flex;justify-content:center;align-items:flex-start;padding-block:16px}
.phone{position:relative;width:100%;max-width:430px;height:min(880px,calc(100dvh - 32px));background:var(--cream);
  border-radius:40px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 50px rgba(40,48,74,.22);transition:background .3s}
.phone.dark{background:var(--night);color:var(--nightT)}
@media (max-width:460px){.stage{padding-block:0}.phone{border-radius:0;height:100dvh;box-shadow:none}}
button,input,textarea{font:inherit;color:inherit;background:none;border:0;-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:focus-visible,input:focus-visible{outline:3px solid var(--coral);outline-offset:2px}
h1,h2,h3{font-family:var(--round);font-weight:400;margin:0;text-wrap:balance;letter-spacing:-.01em;line-height:1.3}
p{margin:0;text-wrap:pretty}

/* 위 줄: 뒤로 · 진행 · 건너뛰기 */
.nav{display:grid;grid-template-columns:76px 1fr 76px;align-items:center;padding:16px 12px 4px;min-height:60px}
.back{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--ink2);transition:transform .12s}
.back:active,.icob:active{transform:scale(.88)}
.dark .back{color:var(--nightT2)}
.back svg{width:24px;height:24px}
.skip{font-family:var(--round);font-size:15px;color:var(--ink2);text-align:right;padding:0 8px;min-height:44px;white-space:nowrap}
.over.again,.over.again .sheet{animation:none}
.dash{display:flex;gap:6px;justify-content:center}
.dash i{width:32px;height:6px;border-radius:9px;background:#5B5F78}
.dash i.on{background:var(--coral)}
.dots{display:flex;gap:6px;justify-content:center}
.dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}
.dots i.on{background:var(--ink2)}
.navtitle{text-align:center;font-family:var(--round);color:var(--ink2);font-size:15px}

.body{flex:1;overflow-y:auto;padding:4px var(--gut) 16px;display:flex;flex-direction:column}
.foot{padding:12px var(--gut) calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}

/* 큰 알약 버튼 */
.cta{display:block;width:100%;border-radius:999px;padding:16px;min-height:56px;font-family:var(--round);font-size:20px;line-height:1.2;background:var(--coralD);color:#fff;box-shadow:0 5px 0 #A9472D;transition:transform .08s,box-shadow .08s}
.cta:active{transform:translateY(4px);box-shadow:0 1px 0 #A9472D}
.cta:disabled{background:#F6C9B9;cursor:default;box-shadow:0 5px 0 #EBB09C;transform:none}
.dark .cta:disabled{background:#4E5672;color:#7D839A;box-shadow:0 5px 0 #3B4260}
.cta.soft{background:var(--coral50);color:var(--coralD);box-shadow:0 5px 0 #F3CFC2}
.cta.small{width:auto;min-height:48px;padding:12px 28px;font-size:18px;align-self:center}
.cta.mint{background:#8DBF9B}

/* 말풍선 + 캐릭터 */
.bubble{position:relative;background:#fff;border:1.5px solid var(--line);border-radius:28px;padding:24px 20px;text-align:center;font-size:18px;line-height:1.55;margin-top:8px}
.bubble b{font-family:var(--round);font-weight:400}
.bubble::after,.bubble::before{content:"";position:absolute;left:50%;translate:-50% 0;border:14px solid transparent;border-bottom:0}
.bubble::before{bottom:-15px;border-top-color:var(--line)}
.bubble::after{bottom:-12.5px;border-top-color:#fff}
.bubble.r::before,.bubble.r::after{left:72%}
.hero{display:flex;justify-content:center;align-items:flex-end;padding-bottom:12px;position:relative;margin-top:24px}
.hero>img{position:relative;z-index:1;animation:bob 3.2s ease-in-out infinite;transform-origin:bottom center}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

/* 하얀 알약 선택지 */
.opts{display:flex;flex-direction:column;gap:12px;margin-top:24px}
.opt{width:100%;border:1.5px solid var(--line);border-radius:999px;background:#fff;padding:14px 16px;min-height:52px;font-family:var(--round);font-size:18px;color:var(--ink2);transition:transform .1s,box-shadow .1s}
.opt:active{transform:scale(.98)}
.opt[aria-pressed="true"]{border-color:var(--coral);color:var(--coralD);background:var(--coral50)}
.chips{display:flex;flex-wrap:wrap;gap:12px 8px;justify-content:flex-start;margin-top:0}
.chip{border:1.5px solid var(--line);border-radius:999px;background:#fff;padding:9px 16px;min-height:44px;font-family:var(--round);font-size:17px;line-height:1.3;color:var(--ink2);display:flex;align-items:center;gap:6px;transition:transform .1s,box-shadow .1s}
.chip svg{width:18px;height:18px;flex:none;margin-left:-2px}
.chip[aria-pressed="true"]{border-color:var(--coral);color:var(--coralD);background:var(--coral50)}
.ghost{border:1.5px solid var(--line);border-radius:999px;padding:12px 16px;min-height:52px;text-align:center;font-family:var(--round);color:var(--ink2);background:transparent;width:100%;font-size:18px}
.ghost[aria-pressed="true"]{color:var(--coralD);border-color:var(--coral)}

/* 이름 */
.namerow{display:flex;gap:12px;margin-top:-6px;position:relative;z-index:2}
.namerow input{flex:1;min-width:0;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:14px 16px;min-height:56px;text-align:center;font-family:var(--round);font-size:20px;color:var(--ink)}
.namerow input::placeholder{color:var(--ink3)}
.namerow .cta{width:auto;padding:14px 24px;border-radius:999px}

/* 어두운 질문 화면: 동그라미 선택 */
.lead2{color:var(--nightT2);text-align:center;font-size:15px;margin:12px 0 24px}
.q{font-family:var(--round);font-size:24px;line-height:1.35}
.radios{display:flex;flex-direction:column;gap:4px;margin-top:20px}
.radio{display:flex;align-items:center;gap:12px;padding:8px 0;font-family:var(--round);font-size:18px;line-height:1.3;text-align:left;color:var(--nightT)}
.radio .c{width:32px;height:32px;border-radius:50%;border:2px solid #6C7189;display:grid;place-items:center;flex:none;transition:transform .15s var(--spring)}
.radio:active .c{transform:scale(.85)}
.radio svg.w{width:34px;height:34px;flex:none}
.radio .t small{display:block;font-family:var(--body);font-size:15px;color:var(--nightT2);margin-top:2px}
.radio[aria-pressed="true"]{color:var(--coral)}
.radio[aria-pressed="true"] .c{background:var(--coral);border-color:var(--coral)}

/* 결과·추천 카드 줄 */
.rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 calc(var(--gut) * -1);padding:4px var(--gut) 12px;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.rcard{flex:0 0 76%;scroll-snap-align:center;border-radius:28px;padding:28px 20px 24px;color:#FFF7F0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:300px}
.rcard .art{width:110px;height:100px;display:grid;place-items:center}
.rcard .art svg{width:96px;height:96px}
.rcard h3{font-size:24px}
.rcard p{font-size:15px;opacity:.92}
.sec-label{font-family:var(--round);color:var(--ink2);font-size:18px;line-height:1.3;margin:28px 0 12px}
.dark .sec-label{color:var(--nightT)}

/* 홈 */
.hhead{display:flex;align-items:center;gap:12px;padding:16px var(--gut) 8px}
.hhead .me{width:48px;height:48px;flex:none;border-radius:50%;background:#C9CCDA;overflow:hidden;display:grid;place-items:end center}
.hhead .me{position:relative}
.hhead .me img{position:absolute;left:50%;top:6%;width:96%;translate:-50% 0}
.hheart{position:relative;z-index:1;display:block;animation:hop 1.8s ease-in-out infinite}
.hheart svg{width:100%;height:auto}
.hhead .nm{flex:1;min-width:0;font-family:var(--round);font-size:18px;color:var(--nightT2)}
.hp{display:inline-flex;align-items:center;gap:5px;background:#fff;color:var(--ink);border-radius:999px;padding:0 14px 0 10px;min-height:40px;font-family:var(--round);font-size:18px;line-height:1;font-variant-numeric:tabular-nums}
.hp svg{width:22px;height:22px}
.bump{animation:bump .5s var(--spring)}
@keyframes bump{40%{transform:scale(1.25)}}
.icob{width:44px;height:44px;flex:none;display:grid;place-items:center;color:var(--nightT2);position:relative;transition:transform .12s}
.icob svg{width:26px;height:26px}
.icob .dot{position:absolute;top:8px;right:8px;width:9px;height:9px;border-radius:50%;background:var(--coral)}
.hbody{flex:1;overflow-y:auto;padding:8px var(--gut) 112px}
.favs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:4px}
.fav{display:flex;flex-direction:column;align-items:center;gap:8px;font-family:var(--round);font-size:15px;line-height:1.3;color:var(--nightT)}
.fav .t{width:100%;aspect-ratio:1;border-radius:28px;background:var(--night2);border:1.5px solid #454E70;display:grid;place-items:center;position:relative;transition:transform .12s var(--spring)}
.fav:active .t{transform:scale(.93)}
.fav .t svg{width:58%;height:58%}
.fav.done .t::after{content:"✓";position:absolute;top:-6px;right:-6px;width:28px;height:28px;border-radius:50%;background:var(--coral);color:#fff;display:grid;place-items:center;font-size:15px;font-weight:700;animation:bump .4s}
.fav small{color:var(--nightT2);font-family:var(--body);font-size:13px;line-height:1.3;margin-top:-4px}
.today{margin-top:24px;border-radius:28px;background:var(--night2);border:1.5px solid #454E70;overflow:hidden}
.today .scene{position:relative;aspect-ratio:16/11;overflow:hidden}
.today .scene .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.today .scene .who{position:absolute;left:50%;bottom:4%;height:66%;translate:-50% 0;cursor:pointer;animation:bob 3.2s ease-in-out infinite}
.today .scene .who.small{height:44%}
.wbub{position:absolute;left:50%;translate:-50% 0;top:6%;background:#fff;color:var(--ink);border-radius:999px;padding:4px 14px 4px 6px;display:flex;align-items:center;gap:6px;font-family:var(--round);font-size:15px;line-height:1.2;white-space:nowrap;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.wbub svg{width:30px;height:30px}
.wbub.empty{padding:0 16px;min-height:44px;color:var(--coralD)}
.today .meta{padding:20px 16px;text-align:center}
.today .meta .k{color:var(--nightT2);font-size:15px}
.today .meta h3{font-size:20px;margin:2px 0 16px}
.week{display:flex;justify-content:center;gap:6px}
.week span{flex:1;max-width:40px;aspect-ratio:1;border-radius:50%;background:#20273F;display:grid;place-items:center;font-family:var(--round);color:var(--nightT2);font-size:15px}
.week span.on{background:var(--coral);color:#fff}
.peep{display:flex;gap:12px;overflow-x:auto;margin:0 calc(var(--gut) * -1);padding:4px var(--gut) 8px;scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding-left:var(--gut)}
.peep::-webkit-scrollbar{display:none}
/* 홈: 하트친구들의 오늘 날씨. 동그란 프로필 위에 날씨가 뜬다 */
.fpeep{display:flex;gap:12px;overflow-x:auto;margin:0 calc(var(--gut) * -1);padding:4px var(--gut) 8px;scrollbar-width:none}
.fpeep::-webkit-scrollbar{display:none}
.fw{flex:0 0 96px;display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;color:inherit;padding-top:12px;line-height:1.3}
.fw .pf{transition:transform .12s var(--spring)}
.fw:active .pf{transform:scale(.93)}
.fw .wx{position:absolute;top:0;right:2px;width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 3px 8px rgba(0,0,0,.2);z-index:1}
.fw .wx img.w{width:30px;height:30px}
.fw .pf{width:76px;height:76px;border-radius:50%;background:#C9CCDA;overflow:hidden;position:relative;border:3px solid var(--night2)}
.fw .pf img{position:absolute;left:50%;top:8%;width:96%;height:auto;translate:-50% 0}
.fw b{font-family:var(--round);font-weight:400;font-size:16px;margin-top:8px}
.fw small{font-size:13px;color:var(--nightT2);white-space:nowrap}
.fempty{background:var(--night2);border-radius:20px;padding:16px;display:flex;align-items:center;gap:12px;color:var(--nightT2);font-size:15px;line-height:1.5}
.fempty span{flex:1}
.modal .pal{position:relative;width:112px;height:112px}
.modal .pal .pf{display:block;width:112px;height:112px;border-radius:50%;background:#C9CCDA;overflow:hidden;position:relative}
.modal .pal .pf img{position:absolute;left:50%;top:8%;width:96%;height:auto;translate:-50% 0}
.modal .pal .wx{position:absolute;top:-2px;right:-6px;width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 3px 8px rgba(0,0,0,.2)}
.modal .pal .wx img.w{width:32px;height:32px}
.modal .cta:disabled{opacity:.5;box-shadow:none}
.toline{display:flex;align-items:center;gap:8px;background:var(--coral);color:#fff;border-radius:20px;padding:4px 16px;min-height:52px;margin-top:12px;font-family:var(--round);line-height:1.3}
.toline span{flex:1}
.toline button{color:inherit;font:inherit;font-size:15px;min-height:44px;flex:none;text-decoration:underline dashed rgba(255,255,255,.7) 1.5px;text-underline-offset:5px}
.fempty .pill-btn{align-self:center;background:var(--coral);white-space:nowrap}
.pcard{flex:0 0 62%;scroll-snap-align:start;border-radius:28px;padding:20px;color:#FFF7F0;display:flex;flex-direction:column;gap:4px;min-height:208px}
.pcard svg{width:58px;height:58px}
.pcard b{font-family:var(--round);font-weight:400;font-size:20px;line-height:1.3;margin-top:8px}
.pcard p{font-size:15px;opacity:.92;flex:1}
.pill-btn{align-self:flex-start;flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:999px;background:rgba(32,39,63,.55);padding:8px 16px;font-family:var(--round);color:#fff;font-size:16px;line-height:1.2;white-space:nowrap;transition:transform .1s,box-shadow .1s}
button.pill-btn:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.18)}
.pill-btn.sent{background:rgba(255,255,255,.25)}
.nextday{width:100%;margin-top:24px;border:1.5px dashed #5B6382;border-radius:999px;padding:12px 16px;min-height:52px;font-family:var(--round);color:var(--nightT2);font-size:16px;transition:transform .1s}
.nextday:active{transform:scale(.98)}
.tabs{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 8px calc(8px + env(safe-area-inset-bottom,0px));background:var(--night);z-index:10}
.tabs::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:20px;background:linear-gradient(180deg,rgba(40,48,74,0),var(--night));pointer-events:none}
.tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;font-family:var(--round);font-size:13px;line-height:1;color:#8A90A8}
.tabs svg{width:26px;height:26px;transition:transform .15s var(--spring)}
.tabs button:active svg{transform:scale(.85)}
.tabs button[aria-current="page"]{color:var(--nightT)}
.tabs button[aria-current="page"] svg{animation:bump .45s}

/* 이야기 여정 */
.path{display:flex;flex-direction:column;align-items:center;gap:0;margin-top:16px}
.stop{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.stop .o{width:150px;height:150px;border-radius:50%;overflow:hidden;position:relative;border:4px solid var(--coral);background:var(--night2)}
.stop .o img{width:100%;height:100%;object-fit:cover}
.stop.now .o{border-style:dashed}
.stop.off .o{border-color:#4E5672}
.stop.off .o img{filter:grayscale(1) brightness(.55)}
.stop .o .ok{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;background:var(--coral);color:#fff;display:grid;place-items:center;font-weight:700}
.stop .o .lk{position:absolute;inset:0;display:grid;place-items:center}
.stop .o .lk span{width:60px;height:60px;border-radius:50%;background:#E9B54A;display:grid;place-items:center}
.stop b{font-family:var(--round);font-weight:400;font-size:20px;line-height:1.3;margin-top:4px}
.stop small{color:var(--nightT2);font-size:15px;line-height:1.5;max-width:280px;text-wrap:balance}
.stop .need{color:#E9B54A;font-family:var(--round);font-size:16px}
.stop .walk{align-self:center;background:var(--coral);margin-top:4px}
.stop .peek{font-family:var(--round);font-size:15px;color:var(--nightT2);border-bottom:1.5px dashed #5B6382;padding:2px 0}
.over.town{background:var(--night);color:var(--nightT)}
.over.town .bar{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:8px 12px;font-family:var(--round);font-size:16px}
.over.town .bar button{display:flex;align-items:center;gap:4px;min-height:44px;color:inherit;font:inherit;padding:0 12px 0 4px}
.over.town .bar svg{width:22px;height:22px}
.over.town .bar span{margin-left:auto;color:var(--nightT2);font-size:15px;padding-right:8px}
.over.town iframe{flex:1;width:100%;border:0;display:block;background:#AEB7C4}
.link{width:3px;height:32px;border-radius:2px;background:repeating-linear-gradient(var(--coral) 0 6px,transparent 6px 12px);margin:8px 0}

/* 선물 */
.gift{display:flex;align-items:center;gap:12px;border-radius:28px;padding:16px;color:#FFF7F0}
.gift+.gift{margin-top:12px}
.gift .pill-btn{align-self:center;padding:8px 14px}
.gift .tile{width:60px;height:60px;flex:none;border-radius:20px;background:rgba(255,255,255,.18);display:grid;place-items:center}
.gift .tile svg{width:42px;height:42px}
.gift .m{flex:1;min-width:0}
.gift .m b{font-family:var(--round);font-weight:400;font-size:18px;line-height:1.3}
.gift .m p{font-size:15px;line-height:1.4;opacity:.92;margin-top:2px}

/* 꾸미기 판(아래에서) */
.over{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;animation:fade .2s}
@keyframes fade{from{opacity:0}}
.over .top{flex:0 0 38%;position:relative;overflow:hidden}
.over .top .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%}
.over .top img.who{position:absolute;left:50%;bottom:6%;height:78%;translate:-50% 0;animation:bob 3s ease-in-out infinite}
.over .top .hp{position:absolute;top:18px;left:var(--gut)}
.over .top .x{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.25);color:#fff;display:grid;place-items:center}
.sheet{color:var(--ink);flex:1;background:#fff;border-radius:36px 36px 0 0;margin-top:-34px;position:relative;padding:12px var(--gut) calc(24px + env(safe-area-inset-bottom,0px));overflow-y:auto;animation:up .35s cubic-bezier(.2,1.2,.4,1)}
@keyframes up{from{transform:translateY(40%)}}
.sheet .handle{width:48px;height:6px;border-radius:9px;background:#E7E4DA;margin:0 auto 12px}
.sheet h2{text-align:center;font-size:24px}
.segs{display:flex;gap:8px;justify-content:center;margin:16px 0}
.sheet .segs,.segs.dk:not([style]){justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin-left:calc(var(--gut) * -1);margin-right:calc(var(--gut) * -1);padding:0 var(--gut)}
.segs::-webkit-scrollbar{display:none}
.segs button{white-space:nowrap;flex:none;border-radius:999px;padding:0 18px;min-height:44px;font-family:var(--round);font-size:16px;line-height:1.2;background:#F1EEE4;color:var(--ink2);transition:transform .12s var(--spring)}
.segs button:active{transform:scale(.94)}
.segs button[aria-selected="true"]{background:var(--navy);color:#fff}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.item{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;border-radius:24px;padding:12px 6px;position:relative;line-height:1.3;transition:transform .12s var(--spring)}
.item:active{transform:scale(.95)}
.item img{height:104px;width:auto;max-width:100%;object-fit:contain}
.item .price{display:flex;align-items:center;gap:4px;font-family:var(--round);font-size:16px;color:var(--ink2)}
.item .price svg{width:18px;height:18px}
.item .free{font-family:var(--round);font-size:15px;color:#5C8F6D}
.item[aria-pressed="true"]{background:var(--coral50);box-shadow:inset 0 0 0 2px var(--coral)}
.item .sw{width:64px;height:64px;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(0,0,0,.08)}

/* 가운데 알림 카드(보상·아직이에요) */
.modal-bg{position:absolute;inset:0;z-index:30;background:rgba(30,34,52,.45);display:grid;place-items:center;padding:24px;animation:fade .2s}
.modal{color:var(--ink);width:100%;background:#fff;border-radius:36px;padding:28px 24px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;max-height:100%;overflow-y:auto;scrollbar-width:none;animation:pop .35s cubic-bezier(.3,1.5,.5,1)}
.modal::-webkit-scrollbar{display:none}
.modal>.cta{flex:none}
.modal>p+.cta,.modal>.sentrow+.cta,.modal>.help+.cta{margin-top:8px}
.modal>.cta+.cta,.modal>.cta+.ghost{margin-top:2px}
.modal.dark{background:var(--night2);color:var(--nightT)}
@keyframes pop{from{transform:scale(.8);opacity:0}}
.modal .big{width:120px;height:112px;flex:none;animation:hop 1.2s ease-in-out infinite}
@keyframes hop{0%,100%{transform:translateY(0)}40%{transform:translateY(-18px) scale(1.04,.97)}60%{transform:translateY(0) scale(1.06,.94)}}
.modal h2{font-size:24px}
.modal p{color:var(--ink2);line-height:1.6;text-wrap:balance}
.modal.dark p{color:var(--nightT2)}
.modal img.grow{height:220px}
.modal .help{width:100%;display:flex;flex-direction:column;gap:8px;text-align:left}
.modal .help>*{display:block;padding:12px 16px;min-height:56px;border-radius:20px;background:#EEF3F8;color:var(--ink);text-decoration:none}
.modal .help b{display:block;font-family:var(--round);font-weight:400;font-size:17px;line-height:1.3}
.modal .help small{display:block;color:var(--ink2);font-size:13px;line-height:1.45;margin-top:2px}
.confetti{position:absolute;top:-14px;width:6px;height:16px;border-radius:4px;animation:fall linear forwards;z-index:31}
@keyframes fall{to{transform:translateY(940px) rotate(560deg)}}
.toast{position:absolute;left:50%;bottom:104px;translate:-50% 0;background:var(--coralD);color:#fff;border-radius:20px;padding:12px 20px;font-family:var(--round);font-size:16px;line-height:1.4;z-index:40;width:max-content;max-width:86%;text-align:center;animation:pop .3s}
.toast::before{content:"";position:absolute;left:50%;top:-9px;translate:-50% 0;border:10px solid transparent;border-top:0;border-bottom-color:var(--coralD)}
.walker{position:absolute;left:100%;bottom:4%;height:44%;z-index:1;animation:walk 18s linear infinite,bob .55s ease-in-out infinite}
@keyframes walk{from{translate:0 0}to{translate:-150vw 0}}
@media (min-width:461px){@keyframes walk{from{translate:0 0}to{translate:-560px 0}}}
.scene-top .pet{position:absolute;left:12%;bottom:40px;height:20%;z-index:1}
.hero .buddy{position:absolute;z-index:2;right:6%;bottom:-8px;height:76px;animation:bob 2.6s ease-in-out infinite}
.banner .prop{position:absolute;z-index:1}

/* 통통한 버튼 · 배경 그림 */
.opt,.chip{box-shadow:0 4px 0 var(--line)}
.opt:active,.chip:active{transform:translateY(3px);box-shadow:0 1px 0 var(--line)}
.fav .t{box-shadow:0 4px 0 #20273F}
.pill-btn{box-shadow:0 3px 0 rgba(0,0,0,.18)}
.hero .disc{position:absolute;left:50%;bottom:-16px;translate:-50% 0;aspect-ratio:1;border-radius:50%;overflow:hidden;z-index:0;border:5px solid #fff;box-shadow:0 6px 0 var(--line)}
.hero .disc img{width:100%;height:100%;object-fit:cover}
.hero .disc.plain{background:#D6E8F2}
.hero:has(.disc)::after{display:none}
.hbody.flush{padding:0 0 112px}
.scene-top{position:relative;height:360px;overflow:hidden}
.roomlayer{position:absolute;inset:0;pointer-events:none}
.roomlayer .furn{position:absolute;translate:-50% 0;pointer-events:auto;touch-action:none;cursor:grab;user-select:none;-webkit-user-drag:none}
.roomlayer .furn.drag{cursor:grabbing;filter:drop-shadow(0 6px 8px rgba(0,0,0,.25))}
.wd-l .roomlayer .furn,.over .top .roomlayer .furn{pointer-events:none}
.roomhint{text-align:center;color:var(--ink2);font-size:15px;margin:8px 0 12px}
.scene-top>.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%}
.scene-top .hhead{position:relative;z-index:2}
.scene-top .hhead .nm{flex:none;margin-right:auto;background:rgba(255,255,255,.92);color:var(--ink);border-radius:999px;padding:0 14px;min-height:36px;display:inline-flex;align-items:center;font-size:16px;line-height:1}
.scene-top .icob{background:rgba(255,255,255,.92);border-radius:50%;color:var(--ink)}
.scene-top .who{position:absolute;left:50%;bottom:44px;height:56%;translate:-50% 0;cursor:pointer;z-index:1;animation:bob 3.2s ease-in-out infinite}
.scene-top .who.p-fog,.scene-top .who.p-rain,.scene-top .who.p-whirl,.scene-top .who.p-thunder{height:40%}
.scene-top .who.p-heat{height:auto;width:auto;max-width:62%;max-height:46%;bottom:40px}
.scene-top .who.p-sun{height:58%;bottom:70px}
.scene-top .wbub{top:86px;z-index:2}
.sheet-up{position:relative;z-index:3;margin-top:-32px;border-radius:32px 32px 0 0;background:var(--night);padding:24px var(--gut) 0}
.banner{position:relative;height:168px;border-radius:28px;overflow:hidden;margin:4px 0 20px;box-shadow:0 5px 0 #20273F}
.banner>img:first-child{width:100%;height:100%;object-fit:cover}
.floaty{position:absolute;width:34px;animation:drift 5s ease-in-out infinite}
.floaty svg{width:100%;height:auto}

/* 홈화면 위젯 */
.hs{position:absolute;inset:0;z-index:20;background:linear-gradient(180deg,#BFD9EE,#E9D8EC 55%,#FBE3D0);padding:18px 22px;display:flex;flex-direction:column;color:var(--ink);overflow-y:auto}
.hs-top{display:flex;justify-content:space-between;align-items:center;height:44px}
.hs-top b{font:700 17px var(--body)}
.hs-top .x{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.7);display:grid;place-items:center}
.hs-top .x svg{width:20px;height:20px}
.wd{margin-top:14px;height:172px;border-radius:28px;background:#fff;display:grid;grid-template-columns:42% 1fr;overflow:hidden;box-shadow:0 10px 24px rgba(40,48,74,.18)}
.wd-l{position:relative;overflow:hidden;background:#EDEBE4}
.wd-l .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%}
.wd-l .who{position:absolute;left:50%;bottom:10px;translate:-50% 0;max-height:74%;max-width:88%}
.wd-l .who.stand{max-height:88%}
.wd-r{padding:16px 16px 14px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.wd-r .brand{display:flex;align-items:center;gap:5px;font:400 13px/1.3 var(--round);color:var(--ink2)}
.wd-r .brand svg{width:16px;height:16px}
.wd-r .big{font:400 28px/1.15 var(--round);margin-top:6px}
.wd-r .sub{font-size:13px;line-height:1.4;color:var(--ink2);text-align:left;margin:0}
.wd-r .row{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:6px}
.wchip{display:inline-flex;align-items:center;gap:5px;background:var(--cream);border-radius:999px;padding:4px 12px 4px 6px;font:400 15px/1.2 var(--round);white-space:nowrap}
.wchip img.w{width:26px;height:26px}
.wchip:not(:has(img)){padding-left:12px;color:var(--coralD)}
.wh{display:inline-flex;align-items:center;gap:4px;font:400 16px var(--round)}
.wh svg{width:20px;height:20px}
.wname{text-align:center;font-size:13px;margin-top:8px;color:#3b4460}
.hs-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:22px 20px;margin-top:20px}
.hs-icons i{aspect-ratio:1;border-radius:22%;display:grid;place-items:center}
.hs-icons i.yh{background:#fff}
.hs-icons i.yh svg{width:58%;height:auto}
.hs-ctl{margin-top:auto;background:rgba(255,255,255,.85);border-radius:24px;padding:12px}
.hs-ctl p{text-align:center;font-size:13px;color:var(--ink2);margin-bottom:8px}
.hs-ctl .segs{margin:0;gap:6px}
.hs-ctl .segs button{flex:1 1 0;padding:0 6px;font-size:15px}

/* 하트친구 */
.frow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.fbtn{background:#fff;color:var(--ink);border-radius:20px;padding:14px 8px;display:flex;flex-direction:column;gap:4px;align-items:center;line-height:1.3;box-shadow:0 5px 0 #20273F;transition:transform .1s,box-shadow .1s}
.fbtn:active{transform:translateY(3px);box-shadow:0 2px 0 #20273F}
.fbtn b{font-family:var(--round);font-weight:400;font-size:17px}
.fbtn small{color:var(--ink2);font-size:13px;text-wrap:balance}
.code{display:flex;align-items:center;gap:12px;background:var(--night2);border-radius:20px;padding:8px 12px 8px 16px;margin-top:16px}
.code span{color:var(--nightT2);font-size:15px}
.code b{font-family:var(--round);font-weight:400;font-size:20px;flex:1;letter-spacing:.04em}
.code .pill-btn{align-self:center}

/* 선물 하트 */
.giftrule{display:flex;align-items:center;gap:10px;background:var(--night2);border-radius:20px;padding:12px 16px;margin-top:12px;font-size:15px;line-height:1.45;color:var(--nightT)}
.giftrule svg{width:24px;height:24px;flex:none}
.gift .m .gh{display:flex;align-items:center;gap:5px;font-family:var(--round);opacity:1;margin-top:6px}
.gift .m .gh svg{width:18px;height:18px;flex:none}

/* 상점 */
.segs.dk{justify-content:flex-start}
.segs.dk button{background:var(--night2);color:var(--nightT2)}
.segs.dk button[aria-selected="true"]{background:var(--coralD);color:#fff}
.shopgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.sitem{background:#fff;color:var(--ink);border-radius:28px;padding:16px 12px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;line-height:1.3;box-shadow:0 5px 0 #20273F;transition:transform .1s,box-shadow .1s}
.sitem:active{transform:translateY(3px);box-shadow:0 2px 0 #20273F}
.sitem .pic{height:110px;display:grid;place-items:center;width:100%;margin-bottom:4px}
.sitem .pic img{max-height:110px;max-width:88%;object-fit:contain}
.sitem .pic.head{overflow:hidden;align-items:start}
.sitem .pic.head img{max-height:none;height:300px;max-width:none}
.sitem b{font-family:var(--round);font-weight:400;font-size:16px}
.sitem .price{display:flex;align-items:center;gap:4px;font-family:var(--round);font-size:16px;color:var(--coralD)}
.sitem .price svg{width:18px;height:18px}
.sitem .have{font-family:var(--round);font-size:15px;color:#5C8F6D}

/* 날씨별 사람 수 · 놀이 결과(놀이판은 soft.css 의 .mg) */
.num{font-family:var(--round);font-weight:400;font-size:18px}
.numb{font-family:var(--round);font-weight:400;font-size:20px;color:var(--coralD)}
.modal>img.w{width:84px;height:84px}
.sentrow{display:flex;gap:8px;justify-content:center}
.sentrow span{width:34px;animation:hop 1s ease-in-out 2}
.sentrow svg{width:100%;height:auto}

/* 날씨 캐릭터 */
img.w{object-fit:contain;flex:none}
.radio img.w{width:56px;height:56px;background:#fff;border-radius:18px;padding:6px}
.wbub img.w{width:32px;height:32px}
.pcard img.w{width:68px;height:68px;background:#fff;border-radius:22px;padding:8px}
.gift .tile{background:#fff}
.gift .tile img.w{width:50px;height:50px}

/* 아바타 만들기 */
.ttl{font-size:28px;text-align:center;margin-top:4px}
.sub{text-align:center;color:var(--ink2);margin-top:8px;font-size:15px;text-wrap:balance}
.dark .sub{color:var(--nightT2)}
.lbl{font-family:var(--round);color:var(--ink);margin:24px 0 12px;font-size:18px;line-height:1.3}
.seg2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seg2 .opt{padding:12px}
.sw-row{display:flex;justify-content:space-between;gap:8px}
.swb{width:52px;height:52px;border-radius:50%;padding:4px;background:#fff;box-shadow:0 4px 0 var(--line);border:2px solid transparent}
.swb span{display:block;width:100%;height:100%;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(24,36,72,.25)}
.swb[aria-pressed="true"]{border-color:var(--coral)}
.grid.g2{grid-template-columns:repeat(2,1fr)}
.hcrop{display:flex;justify-content:center;height:92px;overflow:hidden;width:100%}
.hcrop img{height:330px!important;max-width:none;margin-top:2px}

/* 첫 화면 */
.splash{flex:1;display:flex;flex-direction:column}
.splash .art{flex:1;position:relative;overflow:hidden}
.splash .art img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.splash .art .ttl{position:absolute;left:0;right:0;top:15%;text-align:center;color:var(--navy)}
.splash .art .ttl h1{font-size:54px;line-height:1}
.splash .art .ttl p{font-family:var(--round);font-size:18px;line-height:1.5;margin-top:12px}
.splash .art .heart{position:absolute;width:42px;animation:drift 5s ease-in-out infinite}
@keyframes drift{50%{transform:translateY(-16px) rotate(8deg)}}
.mock{font-size:13px;line-height:1.5;color:var(--ink2);text-align:center}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* 앱 본체(홈·하트·상점·이야기·선물)는 밝은 미색 바탕. 남색 바탕은 마음 날씨 질문 화면에만 남긴다 */
.phone.lite{--night:#FAF8F2;--night2:#FFFFFF;--nightT:#2B2A33;--nightT2:#7A7768}
.lite .cta:disabled{background:#F6C9B9;color:#fff;box-shadow:0 5px 0 #EBB09C}
.lite .hp{box-shadow:0 0 0 1.5px var(--line)}
.lite .fav .t{border-color:var(--line);box-shadow:0 4px 0 var(--line)}
.lite .today{border-color:var(--line)}
.lite .week span:not(.on){background:#F1EEE4}
.lite .nextday{border-color:#CFCABA}
.lite .tabs::before{background:linear-gradient(180deg,rgba(250,248,242,0),var(--night))}
.lite .tabs button{color:var(--ink2)}
.lite .tabs button[aria-current="page"]{color:var(--coralD)}
.lite .stop.off .o{border-color:#D5D0C0}
.lite .stop .peek{border-bottom-color:#CFCABA}
.lite .stop .need{color:#A9770A}
.lite .banner,.lite .fbtn,.lite .sitem{box-shadow:0 5px 0 var(--line)}
.lite .fbtn:active,.lite .sitem:active{box-shadow:0 2px 0 var(--line)}
.lite .fempty,.lite .code,.lite .giftrule{border:1.5px solid var(--line)}
.lite .segs.dk button:not([aria-selected="true"]){box-shadow:inset 0 0 0 1.5px var(--line)}
.lite .gift[style*="--night2"]{color:var(--ink);border:1.5px solid var(--line)!important}
.lite .gift[style*="--night2"] .tile{background:#F1EEE4}
.lite .fw .pf{border-color:var(--line)}
.lite .gift[style*="--night2"] .pill-btn:not(.sent),.lite .code .pill-btn{background:var(--coral)}

/* 날씨 화면: 날씨 → 위로가 필요한 상황 → 마음일기 */
.dark .lbl{color:var(--nightT)}
#consec,#diarysec{scroll-margin-top:8px}
.dnote{font-size:15px;color:var(--nightT2);margin:-6px 0 12px}
#diarysec .dnote:last-child{margin:8px 0 6px}
.diary{width:100%;border:1.5px solid var(--line);border-radius:24px;background:#fff;color:var(--ink);font:inherit;font-size:16px;line-height:1.6;padding:16px;resize:none;display:block}
.diary::placeholder{color:var(--ink3)}
.dcard{margin-top:16px;border-radius:24px;background:var(--night2);border:1.5px solid var(--line);padding:16px}
.dcard .k{font-family:var(--round);font-size:15px;color:var(--nightT2);margin-bottom:6px}
.dcard .t{white-space:pre-wrap;word-break:break-word;color:var(--nightT)}

/* 이야기 탭의 마음일기 */
.dentry{margin-top:16px;border-radius:28px;background:var(--night2);border:1.5px solid var(--line);padding:16px;display:flex;flex-direction:column;gap:12px}
.dentry .dh{display:flex;align-items:center;gap:12px}
.dentry .dh img.w{width:48px;height:48px;background:#F1EEE4;border-radius:16px;padding:5px}
.dentry .dh b{display:block;font-family:var(--round);font-weight:400;font-size:18px;line-height:1.3}
.dentry .dh small{color:var(--nightT2);font-size:15px}
.dentry .dtags{display:flex;flex-wrap:wrap;gap:8px}
.dentry .dtags span{background:#F1EEE4;color:var(--ink2);border-radius:999px;padding:5px 12px;font-size:13px;line-height:1.3;font-family:var(--round)}
.dentry .t{white-space:pre-wrap;word-break:break-word}
.dentry .none{color:var(--nightT2);font-size:15px}
.dentry .pill-btn{background:var(--coral)}

/* 날씨 고르는 화면도 밝은 바탕 */
.lite .dash i:not(.on){background:#DDD8C8}
.lite .radio .c{border-color:#CFCABA}
.lite .radio[aria-pressed="true"]{color:var(--coralD)}
.lite .radio img.w{box-shadow:0 0 0 1.5px var(--line)}

/* 내 방: 3장 게임의 방 그림(세로로 긴 그림의 가운데 56%가 방)을 틀 높이에 맞춰 보여 준다. 가구는 그림 안의 정해진 자리에 놓인다 */
.roombox{position:absolute;left:50%;top:-39.2%;height:178.6%;aspect-ratio:1080/1935;translate:-50% 0;pointer-events:none}
.roombox img{position:absolute;height:auto}
.roombox .rbg{inset:0;width:100%;height:100%}
.scene-top{height:auto;aspect-ratio:1/.98;background:#F6EBDD}
.scene-top .who{bottom:17%;height:36%}
.scene-top .who.p-fog,.scene-top .who.p-rain,.scene-top .who.p-whirl,.scene-top .who.p-thunder{height:26%}
.scene-top .who.p-heat{max-width:44%;max-height:30%;bottom:15%}
.scene-top .who.p-sun{height:38%;bottom:20%}
.over .top,.wd-l{background:#F6EBDD}
.over .top img.who{bottom:15%;height:44%}
/* 팽이 놀이의 .top 과 이름이 겹쳐 꾸미기 화면 위쪽 방이 좁아지던 것을 막는다 */
.over .top{width:auto;height:auto;margin:0;border-radius:0;align-self:stretch}
/* 홈의 오늘 할 일: 마음 날씨 · 나에게 하트 · 모르는 사람에게 · 하트친구에게 네 칸 */
.favs{grid-template-columns:repeat(4,1fr);gap:8px}
.fav{font-size:13px;line-height:1.3;text-align:center}
.fav .t{border-radius:24px}
/* 홈: 오늘 사람들의 마음 날씨 — 날씨마다 옅은 색 칸 */
.moodhint{color:var(--nightT2);font-size:13px;margin:-4px 0 12px}
.mood{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mtile{--tint:#F1EEE4;--deep:#B9B29C;display:flex;flex-direction:column;gap:8px;text-align:left;color:var(--ink);background:var(--tint);border:1.5px solid var(--line);border-radius:24px;padding:14px 14px 12px;min-height:44px;transition:transform .12s var(--spring,ease)}
.mtile:active{transform:scale(.96)}
.mtile .top2{display:flex;align-items:center;gap:10px;position:relative}
.mtile img.w{width:46px;height:46px;background:#fff;border-radius:16px;padding:5px;flex:none}
.mtile .nm{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.mtile .nm b{font-family:var(--round);font-weight:400;font-size:18px}
.mtile .nm small{font-size:13px;color:var(--ink2)}
.mtile .me{position:absolute;top:-22px;right:-8px;font-style:normal;font-family:var(--round);font-size:13px;line-height:1;background:var(--coral);color:#fff;border-radius:999px;padding:5px 9px}
.mtile .cnt{font-size:13px;color:var(--ink2)}
.mtile .cnt strong{font-family:var(--round);font-weight:400;font-size:24px;color:var(--ink);margin-right:2px;font-variant-numeric:tabular-nums}
.mtile .bar{display:block;height:8px;border-radius:999px;background:rgba(255,255,255,.75);overflow:hidden}
.mtile .bar i{display:block;height:100%;border-radius:999px;background:var(--deep)}
.m-sun{--tint:#FFF3CF;--deep:#F2B93B}
.m-fog{--tint:#EEF0F3;--deep:#A9B1C0}
.m-rain{--tint:#DDECF8;--deep:#6FA3D6}
.m-heat{--tint:#FDE3D8;--deep:#EE7B5C}
.m-whirl{--tint:#DDF1EA;--deep:#6FB59A}
.m-thunder{--tint:#EAE4F6;--deep:#9C86CC}

/* 날씨가 아홉 가지라 세 칸씩 놓는다: 그림 위, 이름·마음 아래 */
.mood{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mtile{padding:12px 10px 10px;border-radius:20px;gap:6px}
.mtile .top2{flex-direction:column;align-items:flex-start;gap:8px}
.mtile .nm b{font-size:16px}
.mtile .cnt strong{font-size:20px}
.mtile .me{top:-4px;right:-2px}
.m-rainbow{--tint:#FDE9E4;--deep:#F08E7A}
.m-moon{--tint:#FBF3D2;--deep:#D9BE5A}
.m-breeze{--tint:#E3F0E2;--deep:#7FAE86}

/* 위젯 속 하티: 상태마다 바탕색이 달라진다 */
.wd-l.hati{background:#FFF3CF;display:grid;place-items:center}
.wd-l.hati img.hati{width:84%;height:84%;object-fit:contain}
.wd-l.h-beg,.wd-l.h-wave{background:#FDE9D6}
.wd-l.h-cry{background:#DDECF8}
.wd-l.h-sulk{background:#EEF0F3}
.wd-l.h-rest{background:#E6EEF6}
.wd-r .big{font-size:24px}
.hs-ctl .segs{flex-wrap:wrap;gap:8px;justify-content:center}
.hs-ctl .segs button{flex:none}
.hs-ctl .segs button{padding:0 14px}

/* 하티 위젯: 위젯 전체가 한 가지 색, 하티와 스트릭 숫자가 크게 */
.wd.hw{--bg:#FFD45E;--fg:#3A2A00;display:flex;align-items:center;gap:4px;background:var(--bg);color:var(--fg);padding:0 16px 0 6px;grid-template-columns:none}
.wd.hw img.hati{width:48%;height:92%;object-fit:contain;flex:none}
.hw-r{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hw-r .brand{display:flex;align-items:center;gap:5px;font:400 13px/1.3 var(--round);opacity:.75}
.hw-r .brand svg{width:16px;height:16px}
.hw-r .big{font:400 44px/1.05 var(--round);letter-spacing:-.5px}
.hw-r .sub{font-size:13px;line-height:1.4;word-break:keep-all}
.hw.h-smug{--bg:#FFE9A8}
.hw.h-stare{--bg:#D8EEDC;--fg:#1F3A27}
.hw.h-beg2{--bg:#CFE6F8;--fg:#1B3550}
.hw.h-angry{--bg:#FF8A6B;--fg:#3D0F05}
.hw.h-melt{--bg:#E3D6F5;--fg:#2E1F4D}
.hw.h-faint{--bg:#F4D9DF;--fg:#4A1F2B}
.hw.h-stone{--bg:#DADDE2;--fg:#30343B}
.hw.h-fire{--bg:#FFB347;--fg:#3D1D00}
.hw.h-rest{--bg:#E6EEF6;--fg:#24364A}
.hw.h-rest .big{font-size:36px}
.hw-r .sub{text-align:left;margin:6px 0 0;color:inherit;opacity:.85;font-size:15px}

/* 홈 스트릭 카드 위의 하티: 그림 + 말풍선 */
.hatirow{display:flex;align-items:center;gap:8px;width:100%;padding:14px 16px 0 10px;text-align:left;color:var(--ink)}
.hatirow img{width:96px;height:96px;object-fit:contain;flex:none}
.hatirow:active img{transform:scale(.94)}
.hatirow .say{position:relative;flex:1;min-width:0;background:#FFF3CF;border-radius:20px;padding:12px 14px;font-size:15px;line-height:1.45;word-break:keep-all}
.hatirow .say::before{content:"";position:absolute;left:-7px;top:50%;width:14px;height:14px;background:inherit;transform:translateY(-50%) rotate(45deg);border-radius:3px}
.hatirow .say small{display:block;margin-top:4px;font-family:var(--round);font-size:13px;color:var(--coralD)}
.hatirow.h-rest .say{background:#E6EEF6}
.hatirow.h-ecstatic .say{background:#FFE08A}
.today .hatirow+.meta{padding-top:12px}
/* 날씨 그림이 흰 테두리 스티커라 흰 상자를 빼고 크게 보여 준다 */
.mtile img.w{width:68px;height:68px;background:none;padding:0;border-radius:0;margin:-4px 0 -2px -4px}
.radio img.w,.lite .radio img.w{background:none;padding:0;box-shadow:none;border-radius:0}

.mtile .gm{align-self:flex-start;font-family:var(--round);font-size:13px;line-height:1;background:rgba(255,255,255,.8);color:var(--ink);border-radius:999px;padding:6px 10px;margin-top:2px}

/* 시험(?3d): 2D 아바타 머리 위에 3D 날씨가 둥실 떠 있다 */
.scene-top .wx3d{position:absolute;left:50%;top:20%;width:30%;translate:-50% 0;pointer-events:none;filter:drop-shadow(0 10px 10px rgba(80,50,20,.22));animation:wx3d 3.2s ease-in-out infinite}
@keyframes wx3d{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-8px) rotate(2deg)}}
.scene-top .wx3d{top:13%;width:25%}
.scene-top:has(.wx3d) .wbub{top:auto;bottom:5%}
.scene-top:has(.wx3d) .wbub img{display:none}
.scene-top:has(.wx3d) .wbub{padding-left:14px}
.scene-top:has(.wx3d) .wbub{bottom:11%}
/* 날씨 칸의 사람 수: 큰 숫자 대신 이름 아래 작은 한 줄 */
.mtile .cnt{font-size:13px;line-height:1.3;color:var(--ink2);margin-top:-2px}
.mtile .cnt strong{font-size:15px;margin-right:1px;color:var(--ink)}
.mtile .cnt::before{content:"오늘 "}
