/* 제때 — 홈 상단은 Home.svg(402×874), 나머지는 팝가·배민·NOL 모바일 비율 */
:root {
  --brand: #ff0051;
  --brand-soft: #fff0f4;
  --ink: #111;
  --ink2: #3c3c43;
  --sub: #8a8a90;
  --faint: #c2c2c7;
  --bg: #fff;
  --well: #f2f2f4;
  --well2: #f7f7f8;
  --star: #ffb400;
  --green: #12a35c;
  --red: #f03d3d;
  --blue: #2f6bff;
  --sat: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sab: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --tabh: 63px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 4px 18px rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink); font-size: 15px; letter-spacing: -.015em; line-height: 1.4;
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: .35; cursor: default; }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input, textarea { font: inherit; color: inherit; user-select: text; -webkit-user-select: text; }
a { color: inherit; text-decoration: none; }
img { -webkit-user-drag: none; }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* ── 화면 쌓기 ───────────────────────────── */
#stack { position: fixed; inset: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; background: var(--bg); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.tabbed { padding-bottom: calc(var(--tabh) + var(--sab)); }
.screen.has-cta { padding-bottom: calc(92px + var(--sab)); }
.screen.push-in { animation: pushIn .34s var(--ease) backwards; z-index: 2; }
.screen.pop-out { animation: pushIn .26s var(--ease) reverse forwards; z-index: 3; pointer-events: none; }
.screen.under-in { animation: underIn .34s var(--ease) backwards; }
@keyframes pushIn { from { transform: translateX(100%); } }
@keyframes underIn { from { transform: translateX(-20%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

/* ── 아래 탭 (시안) ──────────────────────── */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tabh) + var(--sab)); padding: 0 39px var(--sab);
  background: #fff; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: start; overflow: hidden;
}
#tabbar button { height: 58px; display: grid; place-items: center; font-size: 27px; color: #000; opacity: .33; transition: opacity .2s; }
#tabbar button.on { opacity: 1; }
#tabbar button i { display: inline-block; }
#tabbar button.pop i { animation: tPop .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes tPop { 25% { transform: translateY(2px) scale(1.15, .8); } 55% { transform: translateY(-9px) scale(.92, 1.1); } 80% { transform: translateY(1px) scale(1.06, .95); } }
#tabbar .ind { position: absolute; bottom: -15px; left: 0; width: 47px; height: 21px; border-radius: 10.5px; background: #000; transition: transform .35s var(--ease); }

/* ── 위 막대 ─────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 6; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: var(--sat) 12px 0; height: calc(56px + var(--sat)); display: flex; align-items: center; }
.bar h1 { font-size: 17px; font-weight: 700; margin: 0 0 0 2px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.float { position: fixed; left: 0; right: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.bar.float > * { pointer-events: auto; }
.ib { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; font-size: 19px; flex: none; transition: transform .15s; }
.ib:active { transform: scale(.88); }
.bar.float .ib { background: #fff; box-shadow: var(--shadow); width: 40px; height: 40px; font-size: 16px; margin: 0 4px; }

/* ── 로딩 (정사각형 + 로고 시소) ───────────── */
.loader { width: 64px; height: 64px; border-radius: 20px; background: var(--brand); display: grid; place-items: center; }
.loader svg { width: 42px; overflow: visible; fill: #fff; }
.loader path { transform-box: view-box; }
.loader .l-bar { transform-origin: 43px 21px; animation: lSee 1.4s ease-in-out infinite; }
.loader .l-c1 { transform-origin: 119px 82px; animation: lCol 1.4s ease-in-out infinite; }
.loader .l-c2 { transform-origin: 164px 82px; animation: lCol 1.4s ease-in-out .18s infinite; }
@keyframes lSee { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes lCol { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(.62); } }
.loader.sm { width: 44px; height: 44px; border-radius: 14px; }
.loader.sm svg { width: 29px; }
.loadbox { display: grid; place-items: center; padding: 70px 0; }
.busy { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }

/* 시작 인트로 */
#intro { position: fixed; inset: 0; z-index: 100; background: var(--brand); display: grid; place-items: center; transition: opacity .35s ease, visibility .35s; }
#intro.done { opacity: 0; visibility: hidden; }
#intro svg { overflow: visible; }
#intro path { transform-box: view-box; }
.i-tri { transform-origin: 43px 82px; animation: iTri .45s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.i-bar { transform-origin: 43px 21px; animation: iBar 1.25s cubic-bezier(.4, 0, .2, 1) .25s backwards; }
.i-c1 { transform-origin: 119px 82px; animation: iCol .5s cubic-bezier(.3, 1.6, .5, 1) .95s backwards; }
.i-c2 { transform-origin: 164px 82px; animation: iCol .5s cubic-bezier(.3, 1.6, .5, 1) 1.08s backwards; }
@keyframes iTri { from { transform: scale(0); } }
@keyframes iBar { 0% { transform: translateY(-46px) rotate(-16deg); opacity: 0; } 18% { transform: translateY(0) rotate(-16deg); opacity: 1; } 40% { transform: rotate(13deg); } 58% { transform: rotate(-7deg); } 74% { transform: rotate(3.5deg); } 88% { transform: rotate(-1deg); } }
@keyframes iCol { from { transform: scaleY(0); } }

/* ── 홈 (시안) ───────────────────────────── */
.home { position: relative; min-height: 100%; }
.home .glow { position: absolute; left: 0; right: 0; top: calc(-79px + var(--sat)); height: 333px; background: linear-gradient(180deg, rgba(255, 0, 0, .5), rgba(255, 0, 204, 0)); pointer-events: none; }
.home .glow::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 200px; background: rgba(255, 0, 0, .5); }
.home .head { position: relative; padding: calc(19px + var(--sat)) 26px 0 17px; display: flex; align-items: center; gap: 4px; height: calc(50px + var(--sat)); }
.loc { height: 30.8px; padding: 0 12px 0 14px; border-radius: 15.4px; background: #fff; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; max-width: 190px; transition: transform .15s; }
.loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc i { font-size: 10px; }
.loc:active { transform: scale(.95); }
.home .head .ib { width: 34px; height: 34px; font-size: 21px; }
.dot { position: relative; }
.dot::after { content: ''; position: absolute; top: 5px; right: 2px; width: 7px; height: 7px; border-radius: 4px; background: var(--brand); }
.banner { position: relative; display: block; width: 100%; height: 132px; margin-top: 3px; }
.banner .copy { position: absolute; left: 37px; top: 34px; }
.banner .t1 { font-size: 12.6px; font-weight: 800; letter-spacing: -.02em; }
.banner .t2 { font-size: 15.6px; font-weight: 900; letter-spacing: -.02em; margin-top: 1px; }
.banner .fine { font-size: 9px; line-height: 1.3; opacity: .42; font-weight: 600; margin-top: 7px; width: 215px; transform: scale(.55); transform-origin: left top; }
.banner img { position: absolute; pointer-events: none; }
.banner .b-ice { left: calc(50% + 74px); top: 10px; width: 75px; }
.banner .b-choco { left: calc(50% + 30px); top: 60px; width: 85px; }
.banner .b-milk { left: calc(50% + 5px); top: 76px; width: 35px; }
.cats { position: relative; margin-top: 7px; }
.cats .row { display: flex; gap: 12px; padding: 9px 25px 10px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.cats .row::-webkit-scrollbar { display: none; }
.cat { position: relative; flex: none; width: 60px; display: grid; justify-items: center; gap: 9px; }
.cat .tile { width: 60px; height: 56px; border-radius: 15px; background: #f4f9ff; display: grid; place-items: center; overflow: hidden; transition: transform .15s; }
.cat .tile img { max-width: 50px; max-height: 44px; pointer-events: none; }
.cat .tile img.snack { max-width: 46px; max-height: 46px; border-radius: 6px; }
.cat b { font-size: 12.4px; font-weight: 600; opacity: .88; white-space: nowrap; }
.cat:active .tile { transform: scale(.92); }
.cat .tag { position: absolute; right: -8px; top: -7px; z-index: 1; height: 19px; padding: 0 7px 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 9.5px; font-weight: 800; display: flex; align-items: center; gap: 3px; }
.cat .tag i { font-size: 8px; color: #ffcf33; }
.sheet { position: relative; margin-top: 14px; background: var(--well); border-radius: 28px 28px 0 0; padding: 26px 0 40px; min-height: calc(100vh - 305px); }

/* 홈 구역 */
.sec { margin-top: 34px; }
.sec:first-child { margin-top: 0; }
.sec-h { display: flex; align-items: flex-end; padding: 0 20px 14px 22px; gap: 8px; }
.sec-h h2 { font-size: 19px; font-weight: 800; margin: 0; flex: 1; letter-spacing: -.03em; line-height: 1.3; }
.sec-h h2 small { display: block; font-size: 13px; font-weight: 600; color: var(--sub); letter-spacing: -.01em; margin-bottom: 2px; }
.sec-h .more { font-size: 13px; color: var(--sub); font-weight: 600; display: flex; align-items: center; gap: 3px; padding: 4px 2px; flex: none; }
.sec-h .more i { font-size: 10px; }
.hs { display: flex; gap: 10px; overflow-x: auto; padding: 0 22px 2px; scroll-snap-type: x mandatory; scroll-padding: 22px; scrollbar-width: none; }
.hs::-webkit-scrollbar { display: none; }
.hs > * { scroll-snap-align: start; flex: none; }

/* 칩 */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 22px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s, transform .15s; }
.chip.on { background: var(--ink); color: #fff; }
.chip:active { transform: scale(.95); }
.on-white .chip { background: var(--well); }
.on-white .chip.on { background: var(--ink); }

/* 사진 (없으면 회색 + 색 아이콘) */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--well); color: var(--kc, var(--sub)); flex: none; }
.ph > i { font-size: 22px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rate { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--ink); }
.rate i { color: var(--star); font-size: 11px; }
.rate em { font-style: normal; font-weight: 500; color: var(--sub); margin-left: 1px; }

/* 목록 한 줄 */
.rank { margin: 0 14px; background: #fff; border-radius: 22px; padding: 6px 0; }
.prow { display: flex; align-items: center; gap: 13px; width: 100%; padding: 10px 16px; transition: background .15s; }
.prow:active { background: var(--well2); }
.pn { width: 18px; text-align: center; font-size: 17px; font-weight: 800; flex: none; }
.pr-ph { width: 72px; height: 72px; border-radius: 14px; }
.pr-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pr-body b { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-body .meta { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; }
.pr-body .meta > span + span::before { content: '·'; margin-right: 6px; color: var(--faint); }
.pr-body .sub { font-size: 12px; color: var(--sub); }
.list .prow { padding: 12px 20px; }
.list .pr-ph { width: 92px; height: 92px; border-radius: 16px; }
.morebtn { display: flex; width: calc(100% - 28px); margin: 10px 14px 0; height: 48px; border-radius: 16px; background: #fff; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.morebtn i { font-size: 10px; }

/* 큰 사진 카드 */
.hcard { position: relative; width: 268px; height: 330px; border-radius: 24px; overflow: hidden; display: block; transition: transform .15s; }
.hcard:active { transform: scale(.97); }
.hc-ph { position: absolute; inset: 0; }
.hc-ph > i { font-size: 40px; }
.hcard::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62)); }
.hc-txt { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; color: #fff; display: grid; gap: 4px; }
.hc-cat { font-size: 12.5px; font-weight: 600; opacity: .85; }
.hc-txt b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.hc-meta { font-size: 13px; font-weight: 600; opacity: .92; display: flex; align-items: center; gap: 4px; }
.hc-meta i { color: var(--star); font-size: 11px; }
.wx { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.wx i { color: #f5a623; }

/* 세로 카드 */
.tcard { position: relative; width: 148px; height: 210px; border-radius: 18px; overflow: hidden; display: block; transition: transform .15s; }
.tcard:active { transform: scale(.96); }
.tc-ph { position: absolute; inset: 0; }
.tcard::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6)); }
.tc-txt { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; color: #fff; display: grid; gap: 2px; }
.tc-txt b { font-size: 15px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-txt span { font-size: 12px; opacity: .85; }

/* ── 공통 본문 ───────────────────────────── */
.pad { padding: 4px 20px 24px; }
.title { font-size: 24px; font-weight: 800; letter-spacing: -.035em; margin: 0; line-height: 1.3; }
.label { font-size: 14px; font-weight: 700; color: var(--ink2); margin: 26px 0 10px; display: flex; align-items: center; gap: 6px; }
.label .side { margin-left: auto; font-weight: 600; color: var(--sub); font-size: 13px; }
.h2 { font-size: 18px; font-weight: 800; letter-spacing: -.03em; margin: 30px 0 12px; display: flex; align-items: center; gap: 6px; }
.h2 .side { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--sub); }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.btn { height: 54px; width: 100%; border-radius: 16px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, filter .15s; }
.btn:active { transform: scale(.97); filter: brightness(.94); }
.btn.gray { background: var(--well); color: var(--ink); }
.btn.dark { background: var(--ink); }
.btn.sm { height: 46px; border-radius: 14px; font-size: 14.5px; }
.btn.danger { color: var(--red); }
.btn.armed { background: var(--red); color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 10px 18px calc(max(16px, var(--sab)) + 4px); background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 22%); display: flex; gap: 8px; }
.cta .btn { border-radius: 20px; height: 56px; }
.cta .btn { flex: 1; }
.cta .sq { width: 54px; flex: none; }
.field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--well); transition: background .15s; }
.field:focus-within { background: #e9e9ec; }
.field i { color: var(--sub); font-size: 15px; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; caret-color: var(--brand); }
.field input::placeholder { color: var(--faint); }
.field .clear { color: var(--faint); font-size: 17px; }
.empty { padding: 50px 20px; text-align: center; color: var(--sub); font-size: 14.5px; }
.empty i { display: block; font-size: 30px; margin: 0 auto 12px; color: var(--faint); }
.seg { display: flex; background: var(--well); border-radius: 14px; padding: 4px; gap: 2px; }
.seg button { flex: 1; height: 42px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--sub); display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.seg.modes button { flex-direction: column; gap: 3px; height: 58px; font-size: 12px; }
.seg.modes button i { font-size: 16px; }

/* 검색 결과 */
.results { margin-top: 8px; }
.result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; border-radius: 14px; }
.result:active { background: var(--well2); }
.result .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--well); display: grid; place-items: center; color: var(--ink2); flex: none; font-size: 15px; }
.result .ic.brand { background: var(--brand-soft); color: var(--brand); }
.result .ph { width: 44px; height: 44px; border-radius: 12px; }
.result .ph > i { font-size: 15px; }
.result .t { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result .s { font-size: 12.5px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--well); }
.chosen .ph, .chosen .ic { width: 52px; height: 52px; border-radius: 14px; }
.chosen .ic { background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.chosen .t { font-size: 15.5px; font-weight: 700; }
.chosen .s { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.chosen .change { font-size: 13px; font-weight: 700; color: var(--sub); padding: 8px; }

/* 날짜·시간 */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 54px; height: 66px; border-radius: 16px; background: var(--well); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.day span { font-size: 12px; color: var(--sub); font-weight: 600; }
.day b { font-size: 19px; font-weight: 800; }
.day.on { background: var(--ink); color: #fff; }
.day.on span { color: rgba(255, 255, 255, .7); }
.wheel { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; height: 200px; border-radius: 18px; background: var(--well); overflow: hidden; margin-top: 10px; }
.wheel::before { content: ''; position: absolute; left: 10px; right: 10px; top: 80px; height: 40px; border-radius: 12px; background: #fff; }
.wheel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--well), rgba(242, 242, 244, 0) 34%, rgba(242, 242, 244, 0) 66%, var(--well)); }
.col { position: relative; overflow-y: auto; scroll-snap-type: y mandatory; padding: 80px 0; scrollbar-width: none; }
.col::-webkit-scrollbar { display: none; }
.col div { height: 40px; display: grid; place-items: center; font-size: 19px; font-weight: 700; scroll-snap-align: center; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset .chip { background: var(--well); }
.chipset .chip.on { background: var(--ink); color: #fff; }

/* 목록 묶음 (설정 등) */
.lrow { display: flex; align-items: center; gap: 14px; padding: 14px 18px; width: 100%; transition: background .15s; }
.lrow:active { background: rgba(0, 0, 0, .03); }
.lrow .ic { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; font-size: 15px; color: var(--ink2); }
.lrow .t { font-size: 15.5px; font-weight: 600; }
.lrow .s { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.lrow .end { color: var(--sub); font-size: 13.5px; flex: none; }
.lrow .chev { color: var(--faint); font-size: 12px; }
.group { margin: 0 16px; border-radius: 22px; background: var(--well); overflow: hidden; }
.glabel { font-size: 13px; color: var(--sub); font-weight: 700; margin: 26px 26px 10px; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: #d9d9de; position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .25s var(--ease); }
.switch.on { background: var(--brand); }
.switch.on i { transform: translateX(20px); }

/* ── 아래 시트 ───────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; }
.modal .dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); animation: fadeIn .22s ease backwards; }
.modal .panel { position: relative; width: 100%; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + var(--sab)); animation: up .34s var(--ease) backwards; scrollbar-width: none; }
.modal .panel.tall { height: 88vh; }
.modal .grip { width: 38px; height: 5px; border-radius: 3px; background: #e2e2e6; margin: 0 auto 16px; }
.modal .ptitle { font-size: 20px; font-weight: 800; margin: 2px 0 16px; letter-spacing: -.03em; }
.modal.closing .dim { animation: fadeIn .2s ease reverse forwards; }
.modal.closing .panel { animation: up .22s ease-in reverse forwards; }
.linkbox { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; height: 54px; border-radius: 16px; background: var(--well); }
.linkbox span { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.linkbox button { height: 38px; padding: 0 14px; border-radius: 12px; background: #fff; font-weight: 700; font-size: 13.5px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + var(--sab) + 18px); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: rgba(17, 17, 17, .92); color: #fff; padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 600; max-width: calc(100% - 40px); text-align: center; transition: opacity .2s, transform .25s var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 장소 자세히 (NOL) ────────────────────── */
.gal { position: relative; height: calc(300px + var(--sat)); background: var(--well); }
.gal .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal .track::-webkit-scrollbar { display: none; }
.gal .track img, .gal .track .ph { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gal .track .ph > i { font-size: 46px; }
.gal .cnt { position: absolute; right: 14px; bottom: 30px; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; }
.pbody { position: relative; margin-top: -18px; background: #fff; border-radius: 22px 22px 0 0; padding: 24px 20px 10px; }
.pbody .kind { font-size: 13.5px; color: var(--sub); font-weight: 600; }
.pbody .title { margin-top: 4px; }
.pbody .rl { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--sub); }
.pbody .rl .rate { font-size: 15px; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 6px; padding: 14px 0; border-radius: 18px; background: var(--well2); }
.acts button { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.acts button i { font-size: 18px; color: var(--ink); }
.acts button.on i { color: var(--brand); }
.info { display: flex; gap: 12px; padding: 10px 0; font-size: 14.5px; line-height: 1.5; }
.info > i { width: 18px; text-align: center; color: var(--sub); margin-top: 3px; flex: none; }
.info b.open { color: var(--green); } .info b.closed { color: var(--red); }
.info a { color: var(--blue); }
.week { display: grid; gap: 4px; margin-top: 6px; font-size: 13.5px; color: var(--sub); }
.week div { display: flex; gap: 10px; }
.week div b { width: 18px; font-weight: 600; }
.week .today { color: var(--ink); font-weight: 700; }
.mrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14.5px; }
.mrow + .mrow { box-shadow: inset 0 1px 0 var(--well); }
.mrow .d { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.mrow b { flex: none; font-weight: 700; }
.strengths { display: flex; flex-wrap: wrap; gap: 6px; }
.strengths span { height: 30px; padding: 0 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.rev { padding: 16px 0; }
.rev + .rev { box-shadow: inset 0 1px 0 var(--well); }
.rev .top { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--sub); }
.rev .stars { color: var(--star); font-size: 11px; letter-spacing: 1px; }
.rev p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; white-space: pre-line; }
.rev .pics { display: flex; gap: 6px; margin-top: 10px; }
.rev .pics img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.blog { display: flex; gap: 12px; padding: 12px 0; width: 100%; }
.blog .ph { width: 80px; height: 80px; border-radius: 14px; }
.blog .t { font-size: 14.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog .s { font-size: 12.5px; color: var(--sub); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mapcard { position: relative; height: 180px; border-radius: 20px; overflow: hidden; background: var(--well); margin-top: 6px; }

/* ── 지도 ────────────────────────────────── */
.mapslot { position: absolute; inset: 0; }
.fullmap { position: fixed; inset: 0; }
.maplibregl-map { font-family: inherit; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-logo { display: none !important; }
.credit { position: absolute; left: 10px; bottom: 6px; z-index: 1; font-size: 9px; color: rgba(0, 0, 0, .45); pointer-events: none; }
.maptab .credit { bottom: calc(var(--tabh) + var(--sab) + 6px); }
.mapscreen .mapslot.top .credit { bottom: calc(6vh + 30px); }
.mk { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; color: #fff; font-size: 14px; background: var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .22); }
.mk.dest { background: var(--brand); width: 38px; height: 38px; border-radius: 19px; font-size: 16px; }
.mk.face { font-weight: 800; font-size: 14px; }
.mk.face.moving { transform: scale(1.12); }
.mk.stop { width: 11px; height: 11px; border-radius: 6px; background: var(--ink); box-shadow: none; }
.mk.num { width: 28px; height: 28px; font-size: 13px; font-weight: 800; background: var(--brand); }
.mk.pin { width: 32px; height: 32px; font-size: 13px; background: var(--kc, var(--ink)); transition: transform .15s; cursor: pointer; }
.mk.pin.sel { transform: scale(1.3); }
.mk-wrap { display: flex; flex-direction: column; align-items: center; }
.mk-label { margin-top: 4px; font-size: 12px; font-weight: 700; background: #fff; padding: 3px 8px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); white-space: nowrap; color: var(--ink); }
.me { width: 18px; height: 18px; border-radius: 9px; background: var(--blue); box-shadow: 0 0 0 4px #fff, 0 2px 10px rgba(0, 0, 0, .25); }
.maptab .top { position: fixed; left: 0; right: 0; top: 0; z-index: 5; padding: calc(10px + var(--sat)) 16px 0; }
.maptab .search { height: 50px; border-radius: 25px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; padding: 0 18px; color: var(--sub); font-size: 15px; width: 100%; }
.maptab .chips { padding: 12px 16px 0; margin: 0 -16px; }
.maptab .chip { box-shadow: 0 3px 12px rgba(0, 0, 0, .08); }
.redo { position: fixed; left: 50%; top: calc(124px + var(--sat)); z-index: 5; transform: translateX(-50%); height: 38px; padding: 0 16px; border-radius: 19px; background: #fff; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.redo i { color: var(--brand); }
.fab { position: fixed; right: 18px; z-index: 5; width: 46px; height: 46px; border-radius: 23px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 17px; transition: bottom .3s var(--ease); }
.peek { position: fixed; left: 14px; right: 14px; z-index: 6; bottom: calc(var(--tabh) + var(--sab) + 12px); background: #fff; border-radius: 22px; box-shadow: 0 10px 34px rgba(0, 0, 0, .14); padding: 12px; display: flex; gap: 14px; align-items: center; animation: up .3s var(--ease) backwards; }
.peek .ph { width: 76px; height: 76px; border-radius: 14px; }

/* ── 약속 ────────────────────────────────── */
.mhero { position: relative; height: calc(240px + var(--sat)); overflow: hidden; background: var(--brand); color: #fff; }
.mhero .ph { position: absolute; inset: 0; background: var(--brand); color: rgba(255, 255, 255, .5); }
.mhero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .55)); }
.mhero .txt { position: absolute; left: 20px; right: 20px; bottom: 36px; z-index: 1; }
.mhero .when { font-size: 14px; font-weight: 700; opacity: .92; }
.mhero .title { color: #fff; margin-top: 4px; font-size: 26px; }
.mhero .where { margin-top: 6px; font-size: 14px; font-weight: 600; opacity: .92; display: flex; align-items: center; gap: 6px; }
.mbody { position: relative; margin-top: -20px; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 20px 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { height: 30px; padding: 0 11px; border-radius: 10px; background: var(--well); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); }
.fact i { font-size: 12px; color: var(--sub); }
.fact.wet { background: #e8f1ff; color: #1f5fd6; }
.mycard { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: var(--ink); color: #fff; width: 100%; transition: transform .15s; }
.mycard:active { transform: scale(.98); }
.mycard .big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.mycard .s { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 3px; }
.mycard .mic { width: 46px; height: 46px; border-radius: 16px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 18px; flex: none; }
.waitcard { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 18px; background: var(--well); color: var(--ink2); font-size: 14px; font-weight: 600; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; }
.person .n { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.person .dep { text-align: right; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.person .dep small { display: block; font-size: 12px; font-weight: 600; color: var(--sub); }
.avatar { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; position: relative; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.add { background: var(--well); color: var(--ink2); }
.avatar .st { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 6px; }
.st.left { background: var(--blue); } .st.arrived { background: var(--green); }
.status { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 7px; }
.status.left { background: #e8f0ff; color: var(--blue); } .status.arrived { background: #e3f7ec; color: var(--green); }
.liveline { font-size: 12.5px; font-weight: 600; color: var(--green); margin-top: 4px; display: flex; gap: 5px; align-items: center; }
.liveline.late { color: var(--red); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.tag { height: 22px; padding: 0 7px; border-radius: 7px; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tag i { font-size: 10px; }
.cands { display: grid; gap: 8px; }
.cand { padding: 14px 16px; border-radius: 18px; background: var(--well); width: 100%; }
.cand.on { background: var(--brand-soft); }
.cand .t { font-weight: 800; }
.cand .s { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.cand .n { font-size: 13px; font-weight: 700; margin-top: 8px; }
.cand.on .n { color: var(--brand); }
.spot { position: relative; width: 150px; display: block; }
.spot .ph { width: 150px; height: 150px; border-radius: 18px; }
.spot .t { font-size: 14.5px; font-weight: 700; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot .s { font-size: 12.5px; color: var(--sub); margin-top: 2px; display: flex; gap: 5px; align-items: center; }
.vote { position: absolute; right: 8px; top: 108px; height: 32px; min-width: 32px; padding: 0 9px; border-radius: 16px; background: rgba(255, 255, 255, .95); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--ink2); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.vote.on { background: var(--brand); color: #fff; }
.latechips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.latechips .chip { background: var(--well); }
.latenow { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #fff0f0; color: var(--red); font-weight: 700; font-size: 14px; }
.latenow button { margin-left: auto; color: var(--ink2); font-size: 13px; }

/* 지도가 위에 있는 화면 (경로) */
.mapscreen .mapslot.top { position: fixed; left: 0; right: 0; top: 0; bottom: auto; height: 52vh; }
.mapscreen .over { position: relative; z-index: 1; margin-top: calc(46vh - 24px); background: #fff; border-radius: 24px 24px 0 0; min-height: 60vh; box-shadow: 0 -6px 30px rgba(0, 0, 0, .06); }
.mapscreen .over::before { content: ''; display: block; width: 38px; height: 5px; border-radius: 3px; background: #e2e2e6; margin: 9px auto 0; }
.depart { padding: 18px 20px 4px; }
.clock { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.clock small { font-size: 18px; font-weight: 700; color: var(--sub); letter-spacing: 0; }
.rel { font-size: 16px; font-weight: 700; margin-top: 10px; color: var(--ink2); }
.rel.soon { color: var(--brand); } .rel.late { color: var(--red); }
.opts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px -20px 0; padding: 0 20px; }
.opts::-webkit-scrollbar { display: none; }
.opt { flex: none; min-width: 120px; padding: 12px 14px; border-radius: 16px; background: var(--well); }
.opt.on { background: var(--ink); color: #fff; }
.opt b { font-size: 17px; font-weight: 800; }
.opt .via { font-size: 12px; color: var(--sub); }
.timeline { margin-top: 22px; }
.leg { display: grid; grid-template-columns: 46px 30px 1fr; gap: 0 10px; }
.leg .tm { font-size: 13px; font-weight: 700; padding-top: 5px; text-align: right; color: var(--ink2); }
.leg .rail { position: relative; display: flex; justify-content: center; }
.leg .rail::before { content: ''; position: absolute; top: 28px; bottom: -4px; width: 5px; border-radius: 3px; background: var(--c, #c7c7cc); }
.leg.walk .rail::before { background: repeating-linear-gradient(180deg, #c7c7cc 0 5px, transparent 5px 10px); width: 4px; }
.leg.end .rail::before { display: none; }
.leg .dotc { width: 28px; height: 28px; border-radius: 14px; background: var(--c, #8e8e93); color: #fff; display: grid; place-items: center; font-size: 12px; position: relative; z-index: 1; }
.leg.walk .dotc { background: var(--well); color: var(--ink2); }
.leg.end .dotc { background: var(--brand); }
.leg .body { padding: 4px 0 22px; min-width: 0; }
.leg .t { font-weight: 700; font-size: 15px; }
.leg .s { font-size: 12.5px; color: var(--sub); margin-top: 3px; line-height: 1.5; }
.stops-toggle { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink2); display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 10px; border-radius: 10px; background: var(--well); }
.stops { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink2); line-height: 1.9; }
.stops.turns { list-style: none; padding: 0; }
.stops.turns li { display: flex; justify-content: space-between; gap: 10px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--well); margin-top: 8px; font-size: 13px; }
.note i { margin-top: 2px; color: var(--sub); }
.note b { display: block; font-size: 14px; }
.note span { color: var(--sub); }
.note.warn { background: #fff4e0; } .note.bad { background: #ffe9e9; }
.setting { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--well); margin-top: 8px; }
.setting i { color: var(--sub); }
.setting b { font-size: 14.5px; }

/* 길 안내 */
.navcard { position: fixed; left: 14px; right: 14px; bottom: calc(max(14px, var(--sab)) + 4px); z-index: 6; background: #fff; border-radius: 26px; box-shadow: 0 10px 34px rgba(0, 0, 0, .16); padding: 16px; }
.progress { height: 5px; border-radius: 3px; background: var(--well); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .4s var(--ease); }
.eta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.nav-now { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.nav-now .dotc { width: 48px; height: 48px; border-radius: 16px; background: var(--c, var(--ink)); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.nav-now .t { font-size: 19px; font-weight: 800; }
.nav-now .s { font-size: 13.5px; color: var(--sub); margin-top: 3px; }
.nav-next { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--well); font-size: 13px; font-weight: 600; color: var(--ink2); display: flex; gap: 8px; align-items: center; }
.stepper { display: grid; grid-template-columns: 54px 1fr 70px; gap: 8px; margin-top: 12px; }

/* ── 여행 ────────────────────────────────── */
.stop-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--well); }
.stop-card + .stop-card { margin-top: 8px; }
.stop-card .phw { position: relative; flex: none; }
.stop-card .ph { width: 56px; height: 56px; border-radius: 14px; }
.stop-card .no { position: absolute; left: -4px; top: -4px; width: 22px; height: 22px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; z-index: 1; }
.stop-card .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-card .s { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.stop-card .ib { width: 34px; height: 34px; font-size: 13px; color: var(--sub); }
.addstop { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 18px; background: var(--well); color: var(--ink2); font-weight: 700; width: 100%; margin-top: 8px; }
.itin .stop { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; }
.itin .tm { font-size: 13px; font-weight: 800; text-align: right; padding-top: 6px; }
.itin .tm small { display: block; font-weight: 600; color: var(--sub); }
.itin .card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--well); width: 100%; }
.itin .card .ph { width: 64px; height: 64px; border-radius: 14px; }
.itin .card .t { font-size: 15.5px; font-weight: 800; }
.itin .card .s { font-size: 12.5px; color: var(--sub); margin-top: 3px; }
.itin .move { margin: 8px 0 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); padding: 0 6px; width: 100%; }
.itin .move .m { width: 26px; height: 26px; border-radius: 9px; background: var(--well); display: grid; place-items: center; color: var(--ink2); font-size: 12px; flex: none; }
.itin .move b { color: var(--ink); }
.itin .move.err { color: var(--red); }

/* ── 마이·일정 ───────────────────────────── */
.profile { display: flex; align-items: center; gap: 16px; padding: calc(28px + var(--sat)) 22px 6px; }
.profile .avatar { width: 62px; height: 62px; border-radius: 31px; font-size: 24px; background: none; color: var(--ink); }
.profile .avatar.none { display: none; }
.profile .nm { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.gbtn { height: 54px; width: 100%; border-radius: 16px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15.5px; font-weight: 700; color: #1f1f1f; }
.gbtn svg { width: 20px; height: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 16px 0; border-radius: 22px; background: var(--well); padding: 16px 0; }
.stats div { text-align: center; }
.stats b { display: block; font-size: 20px; font-weight: 800; }
.stats span { font-size: 12.5px; color: var(--sub); font-weight: 600; }
.tabhead { padding: calc(16px + var(--sat)) 16px 4px 22px; display: flex; align-items: center; }
.tabhead h1 { font-size: 26px; font-weight: 800; margin: 0; flex: 1; letter-spacing: -.035em; }
.dchip { height: 22px; padding: 0 8px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; flex: none; }
.dchip.today { background: var(--brand); color: #fff; }
.plan { display: flex; gap: 14px; align-items: center; padding: 12px 20px; width: 100%; }
.plan:active { background: var(--well2); }
.plan .ph { width: 64px; height: 64px; border-radius: 16px; }
.plan .ph.icon { background: var(--brand-soft); color: var(--brand); }
.plan .t { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan .s { font-size: 13px; color: var(--sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan.old { opacity: .5; }
.event-hero { position: relative; height: calc(260px + var(--sat)); background: linear-gradient(180deg, rgba(255, 0, 0, .5), rgba(255, 0, 204, 0)); padding: calc(84px + var(--sat)) 24px 0; overflow: hidden; }
.event-hero .t1 { font-size: 17px; font-weight: 800; }
.event-hero .t2 { font-size: 27px; font-weight: 900; margin-top: 2px; }
.event-hero img { position: absolute; }
.bar.float h1 { opacity: 0; transition: opacity .2s; }
.bar.float { transition: background .2s, box-shadow .2s; }
.bar.float.solid { background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); pointer-events: auto; }
.bar.float.solid h1 { opacity: 1; }
.bar.float.solid .ib { box-shadow: none; background: none; }

/* 이미지 불러오는 동안 반짝임 */
@keyframes shim { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.ph.has:not(.ok)::after, .shim:not(.ok) {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 70%) var(--well);
  background-size: 220% 100%; animation: shim 1.3s ease-in-out infinite;
}
.ph.has img { opacity: 0; transition: opacity .3s; }
.ph.has.ok img { opacity: 1; }
.shim:not(.ok) { position: relative; }
img.shim { background: linear-gradient(100deg, var(--well) 30%, #fafafa 50%, var(--well) 70%); background-size: 220% 100%; animation: shim 1.3s ease-in-out infinite; }
img.shim.ok { animation: none; background: none; }
.sk { height: 14px; border-radius: 7px; margin-top: 10px; background: linear-gradient(100deg, var(--well) 30%, #fafafa 50%, var(--well) 70%); background-size: 220% 100%; animation: shim 1.3s ease-in-out infinite; }
.sk.big { height: 28px; margin-top: 12px; }
.sk.block { height: 74px; border-radius: 18px; margin: 22px 0 16px; }
.gal .track > .ph.has { width: 100%; height: 100%; }
.plan .more { width: 34px; height: 34px; font-size: 15px; color: var(--faint); margin-right: -10px; }

/* ── AI 플래너 채팅 ─────────────────────── */
.chatscreen { padding-bottom: calc(84px + var(--sab)); background: #fff; }
.chat { padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 82%; padding: 12px 15px; border-radius: 20px; font-size: 15px; line-height: 1.55; white-space: pre-line; user-select: text; -webkit-user-select: text; }
.bub.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.bub.ai { align-self: flex-start; background: var(--well); border-bottom-left-radius: 6px; }
.bub.typing { padding: 8px; background: none; }
.ai-hello { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 10px 18px; }
.ai-hello b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.ai-hello span { color: var(--sub); font-size: 14px; }
.ai-badge { width: 64px; height: 64px; border-radius: 22px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.starters .chip { background: var(--well); height: auto; min-height: 38px; padding: 8px 14px; white-space: normal; }
.plancard { align-self: stretch; border-radius: 24px; background: var(--well2); padding: 14px; display: grid; gap: 6px; }
.pc-h { display: flex; flex-direction: column; gap: 2px; padding: 2px 4px 6px; }
.pc-h b { font-size: 17px; font-weight: 800; }
.pc-h span { font-size: 13px; color: var(--sub); }
.pc-s { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: #fff; }
.pc-s .ph { width: 56px; height: 56px; border-radius: 12px; }
.pc-n { width: 22px; height: 22px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.pc-l { font-size: 12px; font-weight: 700; color: var(--brand); }
.pc-s .t { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-s .s { font-size: 12.5px; color: var(--sub); display: flex; gap: 6px; }
.plancard .btn { margin-top: 6px; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; gap: 8px; align-items: center; padding: 10px 16px calc(max(14px, var(--sab)) + 2px); background: #fff; }
.composer .field { height: 50px; border-radius: 25px; }
.send { width: 50px; height: 50px; border-radius: 25px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 17px; flex: none; }
.send:active { transform: scale(.92); }
.loader.xs { width: 30px; height: 30px; border-radius: 10px; }
.loader.xs svg { width: 20px; }
.result .ic .loader.xs, .fab .loader.xs { margin: 0; }

/* 이벤트 */
.evstep { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--well); margin-top: 8px; }
.evstep b { display: block; font-size: 15.5px; }
.evstep span { font-size: 12.5px; color: var(--sub); }
.evn { width: 30px; height: 30px; border-radius: 15px; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.evstep.done .evn { background: var(--brand); color: #fff; }
.evi { color: var(--faint); font-size: 18px; }
.evtrip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--well); margin-top: 8px; }
.evtrip b { display: block; font-size: 15px; }
.evtrip span { font-size: 12.5px; color: var(--sub); }
.evbar { height: 6px; border-radius: 3px; background: #fff; margin-top: 8px; overflow: hidden; }
.evbar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.evres { font-size: 13px; font-weight: 800; color: var(--sub); }
.evres.win { color: var(--brand); }
.wheelbox { position: relative; width: 260px; height: 260px; margin: 6px auto 0; }
.wheel2 { width: 100%; height: 100%; display: block; }
.pointer { position: absolute; left: 50%; top: -6px; z-index: 1; transform: translateX(-50%); width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 22px solid var(--ink); }
.spinres { text-align: center; min-height: 52px; margin-top: 14px; display: grid; gap: 4px; }
.spinres b { font-size: 20px; font-weight: 800; }
.spinres b.win { color: var(--brand); }
.spinres span { font-size: 13.5px; color: var(--sub); }
.ckbtn { flex: none; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.ckd { flex: none; font-size: 12.5px; font-weight: 800; color: var(--green); display: flex; gap: 4px; align-items: center; padding-right: 6px; }

/* 로그인 */
#gate { position: fixed; inset: 0; z-index: 90; background: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadeIn .3s ease backwards; }
#gate .g-logo svg { width: 150px; fill: #fff; }
#gate .g-btm { position: absolute; left: 22px; right: 22px; bottom: calc(max(28px, var(--sab)) + 10px); }
#gate .gbtn { height: 58px; border-radius: 20px; box-shadow: none; }

/* ── 넓은 화면: 언제나 폰 비율 기둥, 왼쪽 빈 곳엔 로고 ── */
#side { display: none; }
@media (min-width: 500px) {
  html, body { background: #f2f2f4; }
  #stack { left: 50%; right: auto; width: 430px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 50px rgba(0, 0, 0, .06); }
  #tabbar { left: 50%; right: auto; width: 430px; transform: translateX(-50%); }
  #intro, #gate { left: 50%; right: auto; width: 430px; transform: translateX(-50%); }
  .modal { justify-content: center; }
  .modal .panel { max-width: 430px; }
  #toast { max-width: 380px; }
}
@media (min-width: 820px) {
  #side { display: grid; place-items: center; position: fixed; left: 0; top: 0; bottom: 0; width: calc(50vw - 215px); }
  #side svg { width: min(180px, 50%); fill: var(--brand); }
}
@media (min-width: 500px) {
  #intro, #gate { left: 50%; right: auto; width: 430px; transform: translateX(-50%); }
}
#gate .g-legal { margin: 14px 0 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .85); }
#gate .g-legal a { color: #fff; font-weight: 700; }

/* 홈: 내 약속 */
.mymeet { width: 300px; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 22px; background: #fff; transition: transform .15s; }
.mymeet.solo { width: calc(100vw - 44px); max-width: 386px; }
.mymeet:active { transform: scale(.98); }
.mm-ph { position: relative; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; font-size: 22px; }
.mm-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.mm-ph img.ok { opacity: 1; }
.mm-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.mm-top { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--sub); font-weight: 600; }
.mm-body b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-s { font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-dep { font-size: 13px; font-weight: 800; color: var(--brand); }
.mm-dep.gray { color: var(--ink2); font-weight: 600; }

/* 캘린더 */
.cal { margin: 8px 16px 0; padding: 6px 10px 12px; border-radius: 24px; background: var(--well); }
.cal-h { display: flex; align-items: center; gap: 2px; padding: 2px 2px 6px; }
.cal-h b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; padding: 0 4px; }
.cal-h .ib { width: 36px; height: 36px; font-size: 14px; }
.cal-h .chip { height: 30px; padding: 0 12px; font-size: 12.5px; }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-w span { font-size: 12px; font-weight: 700; color: var(--sub); padding: 4px 0 6px; }
.cal-w .sun, .cd.sun b { color: var(--brand); }
.cd { height: 46px; display: grid; justify-items: center; align-content: start; gap: 3px; padding-top: 4px; }
.cd b { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; font-size: 14.5px; font-weight: 600; transition: background .15s; }
.cd.today b { color: var(--brand); font-weight: 900; }
.cd.sel b { background: var(--ink); color: #fff; }
.cd.sel.today b { background: var(--brand); }
.dots { display: flex; gap: 3px; height: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: var(--brand); }
.dots i.trip { background: var(--ink); }
.dayempty { display: flex; align-items: center; justify-content: space-between; margin: 0 20px; padding: 14px 16px; border-radius: 18px; background: var(--well2); color: var(--sub); font-size: 14px; }
.dayempty .chip { background: #fff; }
#mySec:not([hidden]) + #sheet { margin-top: 32px; }
.hubs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--well); transition: transform .15s; }
.hub:active { transform: scale(.97); }
.hub i { color: var(--brand); font-size: 14px; }
.hub b { font-size: 14.5px; font-weight: 700; flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub span { font-size: 12px; color: var(--sub); flex: none; }
.mm-body b { font-size: 17px; }
.mm-dep { font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.mm-left { font-size: 13px; font-weight: 600; color: var(--sub); }
.mm-ph { width: 76px; height: 76px; }
.plan .ph.icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.plan .ph.icon img.ok { opacity: 1; }
.linkbtn { font-size: 13px; font-weight: 700; color: var(--brand); padding: 4px 0; }
.spot.picked .ph { box-shadow: none; }
.spot.picked .t { color: var(--brand); }
