/* 핫딜맘 시제품 스타일: 따뜻한 크림 바탕, 귤색 하나, 메신저형 딜 목록과 딜 대화방 */
:root {
  --bg: #FBF8F4; --card: #fff; --text: #1F2329; --sub: #6E7781; --muted: #6E7781; --line: #F1ECE5;
  --accent: #FF7A30; --accent-weak: #FFF1E6; --accent-ink: #E2601A; --good: #12A06A; --good-weak: #E9F7F0;
  --room: #F4EEE6;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #E7E2DA; }
body { font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; }
button, input, textarea, select { font: inherit; color: inherit; border: 0; background: none; }
button { cursor: pointer; text-align: left; }
#app { max-width: 430px; min-height: 100vh; margin: 0 auto; background: var(--bg); position: relative; overflow-x: clip; }   /* hidden이면 스크롤 상자가 돼서 sticky 머리줄이 안 붙는다 */
.screen { min-height: 100vh; padding-bottom: 96px; }
svg.i { display: block; flex: none; }

/* 공통 */
.top { position: sticky; top: 0; z-index: 5; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--bg); }
.top h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; flex: 1; }
.top .ttl { flex: 1; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo b { color: var(--accent); }
.iconbtn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #4B5560; }
.pad { padding: 0 20px; }
h2.big { font-size: 26px; line-height: 35px; font-weight: 700; letter-spacing: -0.7px; }
.sub { font-size: 16px; line-height: 24px; color: var(--sub); margin-top: 8px; }
.label { font-size: 14px; font-weight: 700; color: var(--sub); margin: 26px 0 10px; }
.card { background: var(--card); border-radius: 22px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: 16px; font-size: 17px; font-weight: 700; text-align: center; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:disabled { background: #F2C9AE; }
.btn.soft { background: var(--accent-weak); color: var(--accent-ink); }
.btn.text { height: 44px; color: var(--sub); font-weight: 600; font-size: 15px; }
.bottom { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 18%); z-index: 6; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 12px; background: #F2EFEA; font-size: 15px; font-weight: 600; color: #4B5560; white-space: nowrap; }
.chip.on { background: var(--text); color: #fff; }
.chip.acc { background: var(--accent-weak); color: var(--accent-ink); }
.chip.line { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scrollx { display: flex; gap: 8px; overflow-x: auto; padding: 4px 20px; scrollbar-width: none; }
.scrollx::-webkit-scrollbar { display: none; }
.steps { display: flex; gap: 6px; padding: 4px 20px 0; } .steps i { flex: 1; height: 4px; border-radius: 2px; background: #EDE8E1; } .steps i.on { background: var(--accent); }
.toggle { width: 50px; height: 30px; border-radius: 15px; background: #E3DED7; position: relative; flex: none; transition: background .15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: left .15s; }
.toggle.on { background: var(--accent); } .toggle.on::after { left: 23px; }
.menu { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 0; font-size: 16px; font-weight: 500; }
.menu + .menu { border-top: 1px solid var(--line); }
.menu .r { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 2px; }
.field { width: 100%; height: 54px; border-radius: 16px; background: #fff; padding: 0 18px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.field:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.chubi { display: block; margin: 0 auto; }

/* 탭 */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; height: calc(70px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding-top: 9px; z-index: 6; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #B5BCC3; width: 72px; }
.tab.on { color: var(--text); }

/* 딜 목록(메신저형) */
.filters { position: sticky; top: 56px; z-index: 4; background: var(--bg); padding-bottom: 6px; }
.sale { display: flex; align-items: center; gap: 6px; padding: 2px 20px 8px; font-size: 14px; font-weight: 600; color: var(--sub); }
.box { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 2px #D5D0C8; display: flex; align-items: center; justify-content: center; color: #fff; }
.box.on { background: var(--accent); box-shadow: none; }
.list { background: #fff; border-radius: 22px; margin: 6px 12px 0; padding: 4px 0; }
.row { display: flex; gap: 12px; width: 100%; padding: 13px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.thumb { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.thumb img { width: 80%; height: 80%; object-fit: contain; }
.body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.l1 { display: flex; align-items: baseline; gap: 8px; }
.l1 .name { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l1 time { font-size: 12px; color: var(--muted); flex: none; }
.l2 { display: flex; align-items: center; gap: 6px; }
.l2 .price { font-size: 16.5px; font-weight: 800; letter-spacing: -0.3px; }
.off { font-style: normal; font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.st { font-style: normal; font-size: 12px; font-weight: 700; color: #7D858D; background: #EEECE8; border-radius: 6px; padding: 2px 6px; }
.got { font-style: normal; font-size: 12px; font-weight: 700; color: var(--good); background: var(--good-weak); border-radius: 6px; padding: 2px 6px; display: inline-flex; align-items: center; gap: 2px; }
.l3 { display: flex; align-items: center; gap: 8px; }
.l3 .last { flex: 1; min-width: 0; font-size: 13.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l3 .last b { font-weight: 700; color: #4B5560; margin-right: 5px; }
.meta { display: flex; align-items: center; gap: 10px; flex: none; }
.cnt { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: #5F676F; min-width: 34px; }
.cnt.hot { color: var(--accent-ink); }
.cnt.heart i { display: flex; color: #E0567A; }
.row.gray .cnt { color: #B8BEC4; } .row.gray .cnt.heart i { color: #DDB9C4; }
.row.gray .thumb { filter: grayscale(1); opacity: .5; }
.row.gray .name, .row.gray .price, .row.gray .last { color: #AEB4BA; }

/* 딜 대화방 */
.room { background: var(--room); min-height: 100vh; padding-bottom: 150px; }
.room .top { background: var(--room); }
.views { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #5F676F; padding-right: 4px; }
.views span { display: flex; align-items: center; gap: 3px; } .views .h { color: #E0567A; }
.msgs { padding: 6px 14px 0; display: flex; flex-direction: column; gap: 14px; }
.day { align-self: center; font-size: 12px; color: #8E8579; background: rgba(255,255,255,.55); border-radius: 10px; padding: 4px 10px; }
.m { display: flex; gap: 8px; align-items: flex-start; }
.av { width: 38px; height: 38px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #5C5246; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.who { font-size: 12.5px; color: #6F675C; margin: 0 0 5px 2px; display: flex; align-items: center; gap: 5px; }
.who .mo { font-size: 11px; font-weight: 700; color: #9A8F82; background: rgba(255,255,255,.7); border-radius: 6px; padding: 1px 5px; }
.bb { background: #fff; border-radius: 4px 18px 18px 18px; padding: 10px 13px; font-size: 15px; line-height: 21px; max-width: 260px; }
.m.me { justify-content: flex-end; } .m.me .bb { background: #FFE3CC; border-radius: 18px 4px 18px 18px; }
.when { font-size: 11px; color: #A39A8F; align-self: flex-end; margin-bottom: 2px; flex: none; }
.dealcard { background: #fff; border-radius: 4px 20px 20px 20px; width: 278px; overflow: hidden; }
.dealcard .pic { height: 150px; display: flex; align-items: center; justify-content: center; }
.dealcard .pic img { height: 120px; }
.dealcard .in { padding: 14px 16px 16px; }
.dealcard .nm { font-size: 14.5px; color: #4B5560; line-height: 20px; }
.dealcard .now { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; margin-top: 6px; }
.dealcard .was { font-size: 14px; color: var(--muted); margin-top: 2px; }
.dealcard .was s { text-decoration-thickness: 1px; }
.dealcard .pct { display: inline-flex; margin-top: 10px; font-size: 16px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 10px; padding: 6px 10px; }
.dealcard .unit { font-size: 13px; color: var(--sub); margin-top: 8px; }
.dealcard .btn { height: 48px; font-size: 16px; margin-top: 14px; }
.dealcard .disc { font-size: 10.5px; color: var(--muted); margin-top: 8px; text-align: center; line-height: 15px; }
.dealcard.ended .pct { background: #B9B3AB; }
.chartcard { background: #fff; border-radius: 4px 20px 20px 20px; width: 278px; padding: 14px 14px 12px; }
.chartcard b { font-size: 15px; }
.chartcard .cap { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; }
.chartcard .note { font-size: 13.5px; font-weight: 700; color: var(--good); margin-top: 8px; }
.say { display: flex; flex-direction: column; gap: 10px; }
.roombar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; background: var(--room); padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); z-index: 6; }
.quick { display: flex; gap: 6px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.quick button { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; background: #fff; font-size: 13.5px; font-weight: 700; color: #5C5246; }
.quick button.on { background: var(--good); color: #fff; }
.quick b { margin-left: 5px; color: var(--accent-ink); } .quick button.on b { color: #fff; }
.inputbar { display: flex; gap: 8px; align-items: center; }
.inputbar input { flex: 1; height: 46px; border-radius: 23px; background: #fff; padding: 0 18px; font-size: 15px; }
.inputbar input:focus { outline: 0; }
.send { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ask { margin-top: 10px; display: inline-flex; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--accent-weak); color: var(--accent-ink); font-size: 14px; font-weight: 700; align-items: center; }

/* 시트 */
.dim { position: fixed; inset: 0; background: rgba(25,20,15,.42); z-index: 20; }
.sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; background: #fff; border-radius: 28px 28px 0 0; padding: 14px 22px calc(22px + env(safe-area-inset-bottom)); z-index: 21; text-align: center; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #E4DFD8; margin: 0 auto 16px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 110px; background: rgba(31,35,41,.92); color: #fff; font-size: 14px; font-weight: 600; padding: 11px 16px; border-radius: 14px; z-index: 30; white-space: nowrap; }

/* 온보딩 */
.opt { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: #fff; font-size: 17px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.opt + .opt { margin-top: 10px; }
.opt.on { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-ink); }
.opt small { display: block; font-size: 13.5px; font-weight: 500; color: var(--sub); margin-top: 3px; }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 24px; }
.months button { height: 44px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 700; text-align: center; }
.months button.on { background: var(--accent); color: #fff; box-shadow: none; }
.namecard { margin: 28px 20px 0; background: #fff; border-radius: 24px; padding: 26px 20px; text-align: center; }
.namecard b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.6px; margin-top: 12px; }

/* 기타 */
.rank { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.rank button { display: flex; gap: 10px; padding: 9px 0; font-size: 15px; }
.rank b { width: 18px; color: var(--accent-ink); }
.rank button:nth-child(n+4) b { color: var(--muted); }
.req { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.req + .req { border-top: 1px solid var(--line); }
.stat { display: flex; gap: 10px; margin: 14px 20px 0; }
.stat div { flex: 1; background: #fff; border-radius: 18px; padding: 14px 16px; }
.stat small { font-size: 13px; color: var(--sub); font-weight: 600; } .stat b { display: block; font-size: 21px; font-weight: 800; margin-top: 2px; }
textarea.field { height: 150px; padding: 16px 18px; resize: none; line-height: 22px; }
.days { display: flex; gap: 6px; } .days button { flex: 1; height: 38px; border-radius: 11px; background: #F2EFEA; font-size: 14px; font-weight: 700; color: #4B5560; text-align: center; } .days button.on { background: var(--text); color: #fff; }
.time { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--sub); }
.time select { height: 42px; border-radius: 12px; background: #F2EFEA; padding: 0 12px; font-size: 15px; font-weight: 700; color: var(--text); }
.dealcard.ended .btn.primary { background: #CFC9C1; }

/* 핫딜맘 0.2: 캐릭터 말풍선, 정렬, 태어난 달 */
.bubble { display: inline-block; position: relative; background: #fff; border-radius: 20px; padding: 12px 18px; font-size: 16px; font-weight: 700; margin: 0 auto 14px; box-shadow: 0 2px 10px rgba(80,60,30,.07); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble.big { font-size: 24px; line-height: 33px; letter-spacing: -0.6px; padding: 18px 24px; margin-bottom: 18px; }
.logocat { width: 34px; height: 34px; object-fit: cover; object-position: top; border-radius: 12px; background: #FFE9D6; }
.saleline { display: flex; align-items: center; padding: 6px 20px 8px 0; }
.saleline .sale { padding-bottom: 0; }
.sort { margin-left: auto; display: flex; gap: 4px; }
.sort button { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 4px 6px; }
.sort button.on { color: var(--text); font-weight: 800; }
.two { display: flex; gap: 8px; }
.field.month { font-size: 20px; font-weight: 700; height: 60px; }
.age { margin-top: 16px; font-size: 17px; color: var(--sub); } .age b { color: var(--accent-ink); }

/* 핫딜맘 0.3: 내 냥이, 선물 상자, 이모티콘, 이야기, 아낀 돈 */
.av.cat { background: #FFF1E3; }
.av.cat img { width: 128%; height: 128%; margin-top: 18%; object-fit: cover; object-position: top; }
.top.home { gap: 4px; }
.mycat { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.mycat .av { width: 40px; height: 40px; border-radius: 15px; }
.say1 { position: relative; background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #4B5560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 6px rgba(80,60,30,.06); }
.say1 b { color: var(--accent-ink); }
.searchbar { display: flex; align-items: center; gap: 8px; margin: 2px 16px 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 15px; width: calc(100% - 32px); }
.tabbar { justify-content: space-around; align-items: flex-start; }
.tab { width: 90px; }
.giftab { margin-top: -22px; }
.giftbtn { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(255,122,48,.35); margin-bottom: 2px; animation: wiggle 3.2s ease-in-out infinite; }
.giftbtn .dot { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: #F0425C; box-shadow: 0 0 0 2px #fff; }
.giftab.on { color: var(--accent-ink); }
@keyframes wiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-9deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
.tabcat { width: 26px; height: 26px; border-radius: 9px; overflow: hidden; background: #FFF1E3; display: block; }
.tabcat img { width: 130%; margin: 3px 0 0 -15%; }
.tab:not(.on) .tabcat { opacity: .55; filter: grayscale(.4); }
.lk { position: absolute; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(60,50,40,.55); border-radius: 50%; padding: 5px; }
.sticker { width: 108px; height: 108px; }

/* 딜방 이모티콘 */
.emobtn { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; color: #8E8579; flex: none; }
.emobtn.on { color: var(--accent); }
.room.emo { padding-bottom: 420px; }
.emopanel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; background: #fff; border-radius: 18px; padding: 10px; max-height: 250px; overflow-y: auto; }
.emopanel button { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.emopanel img { width: 100%; }
.emopanel .locked img { filter: grayscale(1); opacity: .35; }
.emohint { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--sub); padding: 4px 2px 0; }
.emohint .lk { position: static; background: none; color: var(--muted); padding: 0; }

/* 선물 상자 */
.top .opened { font-size: 13px; font-weight: 700; color: var(--sub); }
.giftcard { margin: 6px 12px 0; background: linear-gradient(180deg, #FFF3E6, #fff); border-radius: 24px; padding: 22px 20px 24px; text-align: center; }
.giftcard .giftimg { width: 130px; animation: wiggle 2.4s ease-in-out infinite; }
.giftcard h2 { font-size: 23px; line-height: 31px; letter-spacing: -0.6px; margin-top: 8px; }
.giftcard p { font-size: 14.5px; color: var(--sub); margin-top: 6px; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.pop { display: block; margin: 0 auto; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 내 냥이 */
.catstage { text-align: center; padding: 4px 20px 0; }
.catstage .bubble { font-size: 15px; max-width: 300px; line-height: 21px; margin-bottom: 4px; }
.nest { position: relative; width: 200px; height: 220px; margin: 0 auto; }
.mycatbig { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0 auto; width: 170px; transform-origin: 50% 100%; transform: scale(var(--s, 1)); z-index: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cushion { position: absolute; left: 22px; right: 22px; bottom: 0; height: 40px; border-radius: 50%; background: #FFD9BD; box-shadow: inset 0 -6px 0 #F7C29C; }
.catname { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.catname b { font-size: 22px; font-weight: 800; }
.stagepill { font-size: 12.5px; font-weight: 800; color: var(--accent-ink); background: var(--accent-weak); border-radius: 8px; padding: 3px 8px; }
.grow { margin: 12px 30px 0; }
.bar { height: 10px; border-radius: 5px; background: #EFE8DF; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.growt { font-size: 13px; color: var(--sub); margin-top: 6px; }
.savecard { display: flex; align-items: center; margin: 18px 12px 0; background: #fff; border-radius: 20px; padding: 16px 20px; width: calc(100% - 24px); }
.savecard span { flex: 1; } .savecard small { display: block; font-size: 13.5px; color: var(--sub); font-weight: 600; } .savecard b { font-size: 22px; font-weight: 800; color: var(--good); }
.kwn { font-weight: 600; color: var(--muted); margin-left: 4px; }
.mission { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; }
.mission + .mission { border-top: 1px solid var(--line); }
.mission b { display: block; font-size: 15.5px; font-weight: 600; } .mission small { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.mission .mk { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px #E1DBD3; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.mission.done .mk { background: var(--good); box-shadow: none; } .mission.done b { color: var(--muted); text-decoration: line-through; } .mission.done small { color: var(--muted); }
.mission em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--good); }
.ogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 12px; }
.ocell { position: relative; background: #fff; border-radius: 18px; padding: 8px 4px 10px; display: flex; flex-direction: column; align-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.ocell img { width: 62px; height: 70px; object-fit: cover; object-position: top; }
.ocell span { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.ocell small { font-size: 10.5px; color: var(--muted); height: 14px; text-align: center; line-height: 14px; }
.ocell.on { box-shadow: inset 0 0 0 2.5px var(--accent); } .ocell.on small { color: var(--accent-ink); font-weight: 700; }
.ocell.locked img { filter: grayscale(1); opacity: .35; }
.ocell.secret img { filter: brightness(0); opacity: .18; }
.ocell .lk { top: 26px; }
.card.story { margin: 0 12px; padding: 16px 0 14px; }
.card.story > b { font-size: 17px; padding: 0 18px; } .card.story > p { font-size: 14px; line-height: 21px; color: var(--sub); margin: 6px 18px 12px; }
.stiles { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px; scrollbar-width: none; }
.stile { position: relative; flex: none; width: 116px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.stile img { width: 116px; height: 78px; object-fit: cover; display: block; }
.stile.locked img { filter: blur(3px) grayscale(.6); opacity: .6; }
.stile span { position: absolute; left: 6px; bottom: 5px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(40,30,20,.45); border-radius: 7px; padding: 2px 6px; }
.egrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0 12px; background: #fff; border-radius: 18px; padding: 10px; }
.egrid span { position: relative; display: flex; align-items: center; justify-content: center; }
.egrid img { width: 100%; } .egrid .locked img { filter: grayscale(1); opacity: .3; }

/* 이야기 */
.storypage { background: #FFFBF6; }
.spic { position: relative; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.spic img { width: 100%; display: block; } .spic.locked img { filter: blur(8px) grayscale(.5); opacity: .6; }
.ep { display: block; font-size: 13px; font-weight: 800; color: var(--accent-ink); margin-top: 18px; }
.storypage h2.big { margin-top: 2px; }
.stxt { font-size: 17px; line-height: 29px; color: #3A4048; margin-top: 12px; }
.recap { font-size: 14px; line-height: 22px; color: #6B6259; background: #F6EFE6; border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.recap .rl { display: block; font-weight: 700; font-size: 12px; color: #B07A4A; margin-bottom: 2px; }
.stxt:has(.lk) { display: flex; gap: 6px; }   /* 잠긴 화의 자물쇠 줄만 가로로. 본문은 이름(b)이 글줄 안에 흐르게 */
.stxt .lk { position: static; background: none; color: var(--muted); padding: 0; }
.btn.soft:disabled { opacity: .8; }

/* 아낀 돈 리포트 */
.total { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--good); margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 6px; margin: 16px 12px 0; padding: 16px 12px 10px; height: 190px; }
.bars button { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bars i { width: 26px; border-radius: 8px 8px 4px 4px; background: #E6EFE9; }
.bars .amt { font-size: 11.5px; color: var(--sub); }
.bars button.on i { background: var(--good); } .bars button.on { color: var(--text); font-weight: 800; } .bars button.on .amt { color: var(--good); font-weight: 800; }
.sav { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.sav + .sav { border-top: 1px solid var(--line); }
.snm { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sav small { font-size: 12.5px; color: var(--sub); }
.sav > b { font-size: 15px; color: var(--good); flex: none; }
/* 핫딜맘 0.4: 레벨업에 열린 이모티콘 */
.newemo { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.newemo img { width: 76px; height: 76px; animation: pop .5s ease-out both; }
body:has(.sheet) .toast { bottom: auto; top: calc(18px + env(safe-area-inset-top)); }   /* 축하 화면이 떠 있으면 알림 문구는 위로 비켜 준다 */

/* 핫딜맘 0.5(v7): 같은 크기 메뉴 셋, 말풍선 꼬리, 핫딜냥 질문, 프로필, 키우는 맛 연출 */
.tabbar { justify-content: space-around; align-items: center; }
.tab { position: relative; width: 33%; }
.tab .dot { position: absolute; top: 2px; left: calc(50% + 10px); width: 9px; height: 9px; border-radius: 50%; background: #F0425C; box-shadow: 0 0 0 2px #fff; }
.tab.on .tabcat { box-shadow: 0 0 0 2px var(--accent); }
.say1 { overflow: visible; margin-left: 6px; }
.say1::before { content: ""; position: absolute; left: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right-color: #fff; border-left: 0; }
.mycat { overflow: hidden; }
.mycat .say1 { max-width: calc(100% - 54px); text-overflow: ellipsis; overflow: hidden; }
.answers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.answers .chip { height: 34px; padding: 0 12px; font-size: 14px; }
.qhint { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.breathe { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(var(--s, 1)); } 50% { transform: scale(var(--s, 1)) scaleY(1.025) scaleX(.99); } }
.card.prof { display: flex; align-items: center; gap: 14px; margin: 6px 12px 0; padding: 16px 18px; }
.card.prof b { display: block; font-size: 19px; }
.card.prof small { display: block; margin-top: 3px; font-size: 13px; color: var(--sub); }
.av.cat.big { width: 56px; height: 56px; border-radius: 20px; }
.chip svg { margin-right: 3px; }
.views b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.say1 b b { font-variant-numeric: tabular-nums; }
.day .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2DBE6C; margin: 0 4px 1px 2px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.spic.last { margin-top: 16px; }
.storypage .stxt b { color: var(--accent-ink); }
.newemo img { animation: flip .6s ease-out both; }
@keyframes flip { from { transform: perspective(400px) rotateY(90deg) scale(.6); opacity: 0; } to { transform: perspective(400px) rotateY(0) scale(1); opacity: 1; } }
.fx { position: fixed; z-index: 60; pointer-events: none; font-size: 20px; font-weight: 800; }
.fx.heart { color: #F0627E; font-size: 22px; }
.fx.snack { color: var(--accent-ink); background: #fff; border-radius: 12px; padding: 3px 8px; font-size: 15px; box-shadow: 0 3px 10px rgba(80,60,30,.15); }
.flash { position: fixed; inset: 0; background: #fff; z-index: 55; pointer-events: none; }
.confetti { position: fixed; z-index: 56; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .breathe, .day .live, .newemo img, .pop { animation: none; } }

/* 서버 딜의 상품 사진 */
.thumb.photo { background: #fff; overflow: hidden; }
.thumb.photo img, .dealcard .pic.photo img { width: 100%; height: 100%; object-fit: cover; }
a.btn { text-decoration: none; }

/* 심부름 */
.card.quests { margin: 0 12px; padding: 14px 16px; }
.qcard { border: 1px solid #EFE7DC; border-radius: 14px; padding: 12px 12px 10px; margin-bottom: 10px; background: #FFFCF8; }
.qtop { display: flex; align-items: center; gap: 8px; } .qtop b { flex: 1; font-size: 16px; }
.qlv { font-size: 12.5px; color: #B07A4A; background: #F6EFE6; border-radius: 999px; padding: 4px 10px; }
.qx { color: var(--muted); padding: 4px; }
.qline { font-size: 14px; color: #5B6168; margin-top: 4px; }
.qform { display: flex; gap: 8px; margin-top: 10px; } .qform .field { height: 46px; } .qform .chip { height: 46px; flex: none; }

/* 가격 근거, 핫딜방 약속 */
.dealcard .basis { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 17px; }
.rules { margin: 12px 0 4px; padding-left: 20px; font-size: 15px; line-height: 26px; color: #3A4048; text-align: left; }

/* UX 리뷰(2026-11-18): 할인율이 먼저 크게, 손가락 닿는 크기 44px, 작은 폰에서 아래 고정 영역이 내용을 가리지 않게, 알림 글은 위에 */
.l2 .off { display: inline-flex; align-items: baseline; gap: 3px; font-size: 18px; font-weight: 800; color: #C2410C; }
.l2 .off small { font-size: 12px; font-weight: 700; }
.l2 .price { font-size: 17px; }
.tab { font-size: 12px; }
.chip { height: 40px; }
.sort button { padding: 12px 8px; }
.sale { padding-top: 12px; padding-bottom: 12px; }
.qlv { min-height: 36px; padding: 0 12px; }
.qx { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin: -10px -12px -10px 0; }
.screen:has(.bottom) { padding-bottom: 190px; }
.screen:has(.steps) .nest .mycatbig, .screen:has(.steps) .chubi { max-height: 26vh; width: auto; }   /* 첫 실행 화면만 */
.toast { top: calc(64px + env(safe-area-inset-top)); bottom: auto; }
@media (max-height: 700px) { .bubble.big { font-size: 20px; } .screen:has(.steps) .nest .mycatbig { max-height: 19vh; } .screen:has(.steps) .chubi { max-height: 22vh; } }   /* 작은 폰(360x640)에서 첫 실행 단추가 아래 고정 영역에 숨지 않게 */

/* 링크로 들어온 엄마에게 보이는 맨 위 띠(그로스 리뷰) */
.invitebar { margin: 4px 0 12px; padding: 14px 16px; background: #FFF4EA; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.invitebar b { font-size: 16px; } .invitebar span { font-size: 13.5px; color: var(--sub); } .invitebar .btn { height: 48px; margin-top: 4px; }

/* 저녁 모음 */
.digest { margin: 6px 12px 10px; padding: 14px 14px 6px; background: #FFF4EA; border-radius: 18px; }
.drow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; border-top: 1px solid #F3E2D2; font-size: 15px; text-align: left; }
.drow .dname { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .drow b { color: #C2410C; font-size: 16px; }

.dealcard .disc { font-size: 12px; line-height: 17px; }   /* 대가성 문구는 숨기지 않되 담백하게(법정 표시) */
