:root{
  --brand:#FE2C55; --ink:#161823; --sub:#8A8B91; --name:#5C5C66; --line:#E3E3E4; --fill2:#F1F1F2; --teal:#2E8B8B; --teal2:#377F8F;
  --ease:cubic-bezier(.2,.8,.2,1);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}
html,body{height:100%;background:#0d0d10;overflow:hidden}
body{font-family:"TikTok Sans",-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
img{display:block}
#stage{position:fixed;inset:0;display:flex;align-items:center;justify-content:center}
#phone{position:relative;width:390px;height:844px;overflow:hidden;background:#000;transform-origin:center center;flex:none}
@media (min-width:600px){#phone{border-radius:48px;box-shadow:0 0 0 11px #1d1d20,0 0 0 12px #333,0 40px 90px rgba(0,0,0,.6)}}
.screen{position:absolute;inset:0;visibility:hidden}
.screen.on{visibility:visible}
.ic{display:inline-flex;flex:none;line-height:0}
.ic svg{display:block}
.ic.sm svg{width:14px;height:14px}
.ic.xs svg{width:12px;height:12px}
.ic.s16 svg{width:16px;height:16px}
.ic.dark{color:var(--ink)}
.spacer{display:block;width:32px;height:32px;flex:none}

/* status bar + home indicator */
.statusbar{position:absolute;top:0;left:0;width:390px;height:47px;z-index:80;color:#fff;pointer-events:none;transition:color .2s}
.statusbar .time{position:absolute;left:24px;top:14px;width:94px;height:22px;line-height:22px;text-align:center;font-family:-apple-system,'SF Pro Text',system-ui,sans-serif;font-size:17px;font-weight:600;letter-spacing:0}
.statusbar .sb-levels{position:absolute;left:272px;top:14px;display:block}
.home-ind{position:absolute;left:128px;bottom:8px;width:134px;height:5px;border-radius:3px;background:#fff;z-index:80;pointer-events:none;transition:background .2s}
.home-ind.dark{background:#000}

/* ---------- 01 feed ---------- */
.cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.feed-top{position:absolute;top:0;left:0;width:390px;height:93px}
.feed-top>.ic:first-child{position:absolute;left:14px;top:53px}
.feed-top>.ic:last-child{position:absolute;right:14px;top:52px}
.feed-tabs{position:absolute;left:79px;top:50px;display:flex;gap:18px;font-size:17px;line-height:22px;font-weight:600;color:rgba(255,255,255,.72);text-shadow:0 1px 2px rgba(0,0,0,.25)}
.feed-tabs .active{color:#fff;font-weight:700;position:relative}
.feed-tabs .active:after{content:"";position:absolute;left:50%;margin-left:-14px;top:26px;width:28px;height:3px;border-radius:2px;background:#fff}
.feed-bottom{position:absolute;left:0;top:295px;width:390px;height:468px;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.6) 100%)}
.info{position:absolute;left:14px;bottom:12px;width:301px;color:#fff;display:flex;flex-direction:column;align-items:flex-start}
.anchor{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 6px;border-radius:4px;background:rgba(0,0,0,.35);color:#fff;margin-bottom:8px}
.anchor b{font-size:14.5px;font-weight:600}
.anchor span:last-child{font-size:13px;color:rgba(255,255,255,.85)}
.user{font-size:16px;line-height:21px;font-weight:600;margin-bottom:8px}
.user .when{font-weight:400;color:rgba(255,255,255,.75)}
.caption{font-size:14px;line-height:18px}
.paid{display:inline-block;margin-top:8px;padding:2px 6px;border-radius:4px;background:rgba(255,255,255,.2);font-size:12px;font-weight:500}
.sound{display:flex;align-items:center;gap:6px;font-size:13px;line-height:17px;margin-top:10px}
.rail{position:absolute;right:14px;top:80px;width:48px;display:flex;flex-direction:column;align-items:center;gap:14px;color:#fff}
.rail .creator{position:relative;width:48px;height:58px}
.rail .creator img{width:46px;height:46px;border-radius:50%;border:1.5px solid #fff;object-fit:cover;margin-left:1px}
.rail .creator .follow{position:absolute;left:14px;top:36px;width:20px;height:20px;border-radius:50%;background:var(--brand);display:flex;align-items:center;justify-content:center}
.rail .act{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;line-height:16px;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.3)}
.rail .disc{width:40px;height:40px;border-radius:50%;background:radial-gradient(circle,#2b2b2b 0 30%,#111 31% 100%);border:7px solid rgba(255,255,255,.18)}
.tabbar{position:absolute;left:0;bottom:0;width:390px;height:81px;background:#000;display:flex;justify-content:space-between;padding:7px 14px 0}
.tab{width:56px;height:40px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;line-height:13px;font-weight:500;color:rgba(255,255,255,.7)}
.tab.on{color:#fff;font-weight:600}
.tab.create{justify-content:flex-start}

/* ---------- place (02/04/5) ---------- */
#place{background:#000}
.mini-video{position:absolute;left:0;top:0;width:390px;height:228px;opacity:calc(1 - var(--p,0));transform:scale(calc(1 - var(--p,0) * .06));transform-origin:50% 0;transition:opacity var(--pt,0ms),transform var(--pt,0ms)}
.mini-video img{position:absolute;left:122px;top:0;width:147px;height:228px;object-fit:cover}
.mini-video .credit{position:absolute;left:18px;top:198px;font-size:13.5px;color:rgba(255,255,255,.85);text-shadow:0 1px 2px rgba(0,0,0,.5)}
.mini-hit{position:absolute;left:0;top:0;width:390px;height:220px;z-index:2}
.sticky-header{position:absolute;left:0;top:0;width:390px;height:116px;background:linear-gradient(180deg,#1C1714 0%,#40332B 100%);opacity:var(--p,0);pointer-events:none;transition:opacity var(--pt,0ms);z-index:3}
.navrow{position:absolute;left:12px;right:12px;top:56px;display:flex;justify-content:space-between}
.navright{display:flex;gap:8px}
.circ{width:32px;height:32px;border-radius:16px;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;color:#fff}
.circ .ic svg{width:22px;height:22px}
.sheet{position:absolute;left:0;right:0;top:100px;bottom:0;background:#fff;border-radius:13px 13px 0 0;z-index:4;overflow:hidden;touch-action:none;will-change:transform;box-shadow:0 -6px 24px rgba(0,0,0,.12)}
.sheet.dragging{transition:none}
.tabs{position:absolute;left:0;top:0;width:390px;height:50px;display:flex;gap:22px;padding:12px 0 6px 16px;border-bottom:1px solid #F1F1F2;background:#fff;opacity:var(--p,0);pointer-events:none;transition:opacity var(--pt,0ms);z-index:2}
.tabs button{position:relative;font-size:17px;line-height:22px;color:#999}
.tabs button.on{color:var(--ink);font-weight:700}
#tabInk{position:absolute;left:0;top:40px;width:26px;height:3px;border-radius:2px;background:#FE2B54}
.tabs button{transition:color .2s}
.sheet-scroll{position:absolute;left:0;right:0;top:0;bottom:110px;overflow:hidden;padding:8px 16px 0}
.grabber{display:flex;justify-content:center;height:4px;margin-bottom:20px;flex:none}
.grabber i{width:32px;height:4px;border-radius:2px;background:#D6D6D8}
.sec+.sec{margin-top:20px}
.place-head{display:flex;align-items:center;gap:9px;height:38px}
.avatar28{width:28px;height:28px;border-radius:50%;object-fit:cover}
.name{flex:1;display:flex;flex-direction:column}
.name b{font-size:17px;line-height:21px;font-weight:600}
.name span{font-size:13.5px;line-height:17px;font-weight:600;color:var(--sub)}
.head-actions{display:flex;gap:20px}
.rating{display:flex;align-items:center;gap:3px;font-size:16px;line-height:21px;margin-top:12px}
.rating b{font-weight:600}
.rating .ic svg{width:18px;height:18px}
.status{display:flex;align-items:center;font-size:13.5px;line-height:18px;margin-top:12px;white-space:nowrap}
.status .open{color:var(--teal2);font-weight:500}
.status .rest{overflow:hidden;text-overflow:ellipsis;flex:1}
.getting{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:15.5px;line-height:20px;font-weight:500;color:var(--teal);white-space:nowrap}
.getting .pin{margin-right:-2px}
.getting .pin svg{width:16px;height:16px}
.getting i{display:block;flex:none;width:1px;height:14px;background:#D6D6D8}
.pills{display:flex;gap:9px;margin:14px -16px 0 0;overflow-x:auto;scrollbar-width:none;padding-right:16px}
.pills::-webkit-scrollbar,.dish-row::-webkit-scrollbar{display:none}
.pills button{flex:none;display:flex;align-items:center;gap:4px;height:32px;padding:0 12px;border:1px solid var(--line);border-radius:200px;font-size:13px;font-weight:600}
.pills .ic svg{width:16px;height:16px}
.sec-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.sec-head h3{font-size:16px;line-height:21px;font-weight:600}
.sec-head em{font-style:normal}
.all{display:flex;align-items:center;gap:2px;font-size:13px;line-height:18px;color:var(--sub);cursor:pointer}
.dish-row{display:flex;gap:8px;margin-right:-16px;padding-right:16px;overflow-x:auto;scrollbar-width:none}
.dish{flex:none;width:104px;display:flex;flex-direction:column;gap:4px;cursor:pointer}
.dish .ph{width:104px;height:104px;border-radius:10px;background-size:cover;background-position:center;position:relative}
.dish b{font-size:13px;line-height:17px;font-weight:600}
.dish em{font-style:normal;font-size:13px;line-height:17px;font-weight:600}
.dish span{font-size:11.5px;line-height:15px;color:var(--sub)}
.dish{gap:4px}
.vgrid{display:grid;grid-template-columns:repeat(3,116px);gap:5px}
.vtile{position:relative;width:116px;height:160px;border-radius:6px;background-size:cover;background-position:center;overflow:hidden}
.vtile:after{content:"";position:absolute;left:0;right:0;bottom:0;height:56px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.55))}
.vtile .meta{position:absolute;left:6px;bottom:6px;display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:#fff;z-index:1}
.vtile .chip{position:absolute;left:6px;top:6px;padding:2px 5px;border-radius:3px;background:rgba(0,0,0,.55);font-size:10px;font-weight:600;color:#fff}
.reviews{display:flex;flex-direction:column;gap:18px}
.review{display:flex;flex-direction:column;gap:7px}
.rv-head{display:flex;align-items:center;gap:9px}
.rv-head img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.rv-name{display:flex;align-items:center;gap:6px;font-size:14px;line-height:19px;font-weight:500;color:var(--name)}
.lv{padding:1px 4px;border-radius:3px;font-size:10px;line-height:14px;font-weight:600}
.rv-date{font-size:12px;line-height:16px;color:var(--sub)}
.rv-text{font-size:13px;line-height:20px;display:flex;gap:4px}
.rv-text svg{flex:none;margin-top:3px}
.rv-media{display:flex;gap:6px}
.rv-media .v{position:relative;width:110px;height:148px;border-radius:8px;background-size:cover;background-position:center}
.rv-media .v .ic{position:absolute;right:6px;top:6px}
.rv-media .p{width:110px;height:110px;border-radius:8px;background-size:cover;background-position:center}
.stars{display:flex;gap:2px}
.view-all-bottom{display:flex;justify-content:center;align-items:center;gap:2px;font-size:13px;font-weight:500;margin:18px 0 0}
.full-only{display:none}
.action-bar{position:absolute;left:0;bottom:0;width:390px;height:110px;display:flex;gap:8px;padding:15px 16px 46px;background:#fff;border-top:1px solid var(--line);z-index:6}
.btn1,.btn2{flex:1;height:48px;border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.btn1 b,.btn2 b{font-size:17px;line-height:21px;font-weight:600}
.btn1 span,.btn2 span{font-size:12.5px;line-height:16px}
.btn1{background:var(--brand);color:#fff}
.btn2{background:var(--fill2);color:var(--ink)}
.btn2 span{color:var(--sub)}
.btn2.dark{background:#303030;color:#fff}
.btn2.dark span{color:rgba(255,255,255,.6)}
.btn1:active,.btn2:active{filter:brightness(.92)}

/* full mode */
#place.full .mini-hit{display:none}
#place.full .sheet-scroll{top:50px;overflow-y:auto;padding:0 16px 28px;touch-action:pan-y;scrollbar-width:none}
#place.full .sheet-scroll::-webkit-scrollbar{display:none}
#place.full .grabber{display:none}
#place.full .head-actions{display:none}
#place.full .half-only{display:none}
#place.full .full-only{display:revert}
#place.full .sec{margin-top:0;padding-top:36px}
#place.full #sec-overview{padding-top:16px}
#place.full .sec-head h3 em{font-weight:600}
#place.full .all{font-size:15px}
#place.full .dish.current .ph{box-shadow:inset 0 0 0 2.5px var(--brand)}
#place.full .vtile{cursor:pointer}

/* ---------- 03 dish feed ---------- */
#dishfeed{background:#000}
.df-scroll{position:absolute;left:0;top:0;width:390px;height:696px;overflow-y:scroll;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain}
.df-scroll::-webkit-scrollbar{display:none}
.df-item{position:relative;width:390px;height:696px;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.df-item>img{position:absolute;left:0;top:0;width:390px;height:772px;object-fit:cover}
.df-item .grad{position:absolute;left:0;top:221px;width:390px;height:475px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.6))}
.df-item .info{bottom:15px}
.df-item .rail{top:305px}
.df-item .track{position:absolute;left:13px;bottom:1px;width:364px;height:2px;background:rgba(255,255,255,.3)}
.df-item .track i{display:block;height:2px;background:#fff}
.df-top{position:absolute;left:0;top:0;width:390px;height:102px;padding:50px 14px 0;display:flex;justify-content:space-between;align-items:flex-start;background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,0));pointer-events:none;z-index:5}
.df-top .circ{pointer-events:auto;margin-top:3px}
.df-title{display:flex;flex-direction:column;align-items:center;gap:1px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.25)}
.df-title b{font-size:16px;font-weight:600;line-height:21px}
.df-title span{font-size:12px;line-height:16px;color:rgba(255,255,255,.85)}
.place-bar{position:absolute;left:0;bottom:0;width:390px;height:148px;background:#000;padding:14px 13px 34px;display:flex;flex-direction:column;gap:12px;z-index:5}
.pb-place{display:flex;align-items:center;gap:10px;color:#fff}
.pb-place img{width:32px;height:32px;border-radius:6px;object-fit:cover}
.pb-place b{font-size:16px;line-height:21px;font-weight:600}
.pb-meta{display:flex;align-items:center;gap:3px;font-size:14px;line-height:18px}
.pb-meta strong{font-weight:600}
.pb-meta span:last-child{color:rgba(255,255,255,.6)}
.pb-buttons{display:flex;gap:12px}
@keyframes peek{0%{transform:translateY(0)}35%{transform:translateY(-56px)}70%,100%{transform:translateY(0)}}

/* ---------- hand-off sheets ---------- */
#dim{position:absolute;inset:0;background:rgba(0,0,0,.5);z-index:40;opacity:0;pointer-events:none;transition:opacity .25s}
#dim.on{opacity:1;pointer-events:auto}
.psheet{position:absolute;left:0;bottom:0;width:390px;background:#fff;border-radius:12px 12px 0 0;padding:8px 16px 34px;display:flex;flex-direction:column;gap:16px;z-index:41;transform:translateY(105%);transition:transform .32s var(--ease)}
.psheet.on{transform:translateY(0)}
.psheet .grabber{margin-bottom:0}
.ps-head{display:flex;align-items:center;height:36px}
.ps-head .spacer{width:24px;height:24px}
.ps-head h4{flex:1;text-align:center;font-size:17px;font-weight:600}
.ps-sub{text-align:center;font-size:13px;color:var(--sub);margin-top:-4px}
.app-list{display:flex;flex-direction:column;gap:29px}
.app-row{display:flex;align-items:center;gap:12px;height:44px;width:100%}
.app-row img{width:44px;height:44px;border-radius:11px;object-fit:cover}
.app-row div{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.app-row b{font-size:16px;line-height:21px;font-weight:600;display:flex;align-items:center;gap:6px}
.app-row div>span{font-size:13px;line-height:17px;color:var(--sub)}
.app-row strong{font-size:17px;font-weight:600}
.app-row:active{opacity:.6}
.tag{font-style:normal;font-size:11px;font-weight:600;color:#008C6B;background:#E3F8F0;padding:2px 6px;border-radius:4px;line-height:14px}
.route{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:999px;background:var(--fill2);font-size:15px}
.route .dot{width:8px;height:8px;border-radius:50%;background:#20D5EC}
.route span:nth-child(2){color:var(--sub)}
.route b{flex:1;text-align:center;font-weight:600}
.ps-note{font-size:12px;color:var(--sub);margin-top:-4px}
.remember{display:flex;align-items:center;gap:10px;font-size:15px;padding-top:4px}
.box{width:20px;height:20px;border-radius:5px;background:var(--brand);display:flex;align-items:center;justify-content:center}
.box svg{width:16px;height:16px}
.psheet.unchecked .box{background:#fff;box-shadow:inset 0 0 0 1.5px #C6C6CA}
.psheet.unchecked .box .ic{display:none}

/* ---------- toast / hint / overlays ---------- */
#toast{position:absolute;left:50%;top:420px;transform:translateX(-50%);z-index:70;display:none;align-items:center;gap:10px;background:rgba(22,24,35,.9);color:#fff;padding:12px 20px;border-radius:8px;font-size:15px;font-weight:500;white-space:nowrap}
#toast.on{display:flex;animation:fade .2s ease both}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
@keyframes fade{from{opacity:0}to{opacity:1}}
#hint{position:absolute;left:50%;transform:translateX(-50%);top:440px;z-index:70;display:none;background:rgba(22,24,35,.9);color:#fff;font-size:13px;padding:8px 14px;border-radius:8px;white-space:nowrap}
#hint.on{display:block;animation:fade .2s ease both}
.overlay{position:absolute;inset:0;z-index:90;display:none;flex-direction:column;justify-content:center;padding:32px;color:#fff;background:rgba(10,10,14,.95)}
.overlay.on{display:flex;animation:fade .3s ease both}
.overlay h2{font-size:24px;line-height:30px;margin-bottom:12px}
.overlay p{font-size:15px;line-height:22px;color:rgba(255,255,255,.8);margin-bottom:12px}
.obtn{margin-top:12px;height:48px;border-radius:8px;font-size:16px;font-weight:600;text-align:center}
.obtn.primary{background:var(--brand);color:#fff}
.obtn.ghost{background:rgba(255,255,255,.12);color:#fff}
.fine{position:absolute;left:32px;right:32px;bottom:28px;font-size:12px;line-height:17px;color:rgba(255,255,255,.45)}
.sheet-scroll{touch-action:none}
#place.full .sheet-scroll{touch-action:pan-y}
.pills,.dish-row{touch-action:pan-x}

.sec-head h3 em{display:none}
#place.full .sec-head h3 em{display:inline}

/* ===== motion layer ===== */
#place{background:transparent}
#place:before{content:"";position:absolute;inset:0;background:#000;transition:opacity .3s}
#place.entering:before{opacity:0}
#place.entering .mini-video{visibility:hidden}
#place.full .sticky-header,#place.full .tabs{pointer-events:auto}
#place.full .sheet-scroll{animation:fade .28s ease both}
#dishfeed.entering{background:transparent}
#dishfeed.entering .df-scroll,#dishfeed.leaving .df-scroll{visibility:hidden}
#dishfeed .df-top,#dishfeed .place-bar,#dishfeed .df-item .info,#dishfeed .df-item .rail,#dishfeed .df-item .grad{transition:opacity .28s ease .05s}
#dishfeed.entering .df-top,#dishfeed.entering .df-item .info,#dishfeed.entering .df-item .rail,#dishfeed.leaving .df-top{opacity:0}
#dishfeed.entering .place-bar{transform:translateY(20px);opacity:0}
#dishfeed .place-bar{transition:transform .4s cubic-bezier(.32,.72,0,1),opacity .3s}
#dishfeed.peek .df-scroll{animation:peek 1.1s cubic-bezier(.32,.72,0,1) .35s 1}
.df-item>img{transform-origin:50% 40%}
.cover{transform-origin:50% 45%}
#morph{position:absolute;z-index:30;display:none;overflow:hidden;pointer-events:none;will-change:left,top,width,height}
#morph img{width:100%;height:100%;object-fit:cover}
.feed-ui{position:absolute;inset:0;pointer-events:none}
.feed-ui .anchor,.feed-ui .rail,.feed-ui .feed-top>*{pointer-events:auto}

/* press feedback */
.btn1,.btn2,.pills button,.dish,.circ,.anchor,.obtn,.vtile,.rv-media>div{transition:transform .14s ease,filter .14s ease}
.btn1:active,.btn2:active,.obtn:active{transform:scale(.97)}
.pills button:active,.anchor:active{transform:scale(.95)}
.dish:active .ph,.vtile:active{transform:scale(.96)}
.dish .ph{transition:transform .14s ease}
.circ:active{transform:scale(.9)}
.app-row{position:relative;border-radius:12px;transition:background .15s}
.app-row:active{opacity:1;background:#F5F5F6}
.app-row:active:before{content:"";position:absolute;inset:-8px -12px;border-radius:14px;background:#F3F3F5;z-index:-1}
.act{cursor:pointer}
.act svg{transition:filter .2s}
.act.like.liked svg path{fill:#FE2C55}
.burst{position:absolute;z-index:60;pointer-events:none;filter:drop-shadow(0 4px 10px rgba(254,44,85,.35))}

/* hand-off sheets */
.psheet{transition:transform .46s cubic-bezier(.32,.72,0,1);box-shadow:0 -8px 30px rgba(0,0,0,.18)}
#dim{transition:opacity .3s ease;backdrop-filter:blur(0px)}
.box{transition:background .2s,box-shadow .2s}
.box svg path{stroke-dasharray:22;stroke-dashoffset:0;transition:stroke-dashoffset .28s ease .05s}
.psheet.unchecked .box .ic{display:inline-flex}
.psheet.unchecked .box svg path{stroke-dashoffset:22}

/* app launch */
#launch{position:absolute;z-index:75;display:none;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.35)}
#launch img{width:96px;height:96px;border-radius:22px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.launch-status{position:absolute;bottom:140px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:10px;font-size:15px;font-weight:500;color:#5C5C66}
#launch.dark .launch-status{color:rgba(255,255,255,.85)}
#launch:not(.dark) .spin{border-color:rgba(0,0,0,.12);border-top-color:#5C5C66}

/* overlays → bottom cards */
.overlay{background:transparent;padding:0;justify-content:flex-end}
.overlay .card{margin:0 12px 34px;padding:22px 20px 18px;border-radius:24px;background:rgba(255,255,255,.96);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.35);display:flex;flex-direction:column}
.overlay .card h2{font-size:22px;line-height:28px;margin:10px 0 8px}
.overlay .card p{color:#5C5C66;font-size:15px;line-height:21px;margin-bottom:8px}
.overlay .card .note{color:var(--sub);font-size:13px;line-height:18px}
.overlay .card .note:empty{display:none}
.pill{align-self:flex-start;font-size:11px;font-weight:600;letter-spacing:.3px;text-transform:uppercase;color:var(--brand);background:#FFE9EE;padding:4px 8px;border-radius:999px}
.overlay .obtn{margin-top:10px}
.overlay .obtn.ghost{background:#F1F1F2;color:var(--ink)}
#intro{background:rgba(0,0,0,.25);backdrop-filter:blur(14px) saturate(1.1);-webkit-backdrop-filter:blur(14px) saturate(1.1);justify-content:center}
#intro .card{margin:0 20px}
#intro .fine{color:rgba(255,255,255,.7)}
#end.on .card,#intro.on .card{animation:cardUp .5s cubic-bezier(.32,.72,0,1) both}
@keyframes cardUp{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
#hint{background:rgba(22,24,35,.88);backdrop-filter:blur(8px);border-radius:999px;padding:9px 16px;font-weight:500}
#hint.on{animation:hintIn .32s cubic-bezier(.32,.72,0,1) both}
@keyframes hintIn{from{opacity:0;transform:translate(-50%,8px) scale(.96)}to{opacity:1;transform:translate(-50%,0)}}

/* desktop touch cursor */
body.mouse #phone,body.mouse #phone *{cursor:none!important}
#touchDot{position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.28);border:1.5px solid rgba(255,255,255,.85);box-shadow:0 0 0 1px rgba(0,0,0,.18),0 2px 8px rgba(0,0,0,.25);z-index:200;pointer-events:none;opacity:0;transition:opacity .15s,width .12s,height .12s,margin .12s}
#touchDot.on{opacity:1}
#touchDot.down{width:28px;height:28px;margin:4px 0 0 4px;background:rgba(255,255,255,.45)}

@media (prefers-reduced-motion:reduce){*{animation-duration:1ms!important;transition-duration:1ms!important}}
#dishfeed.leaving{background:transparent}
#dishfeed.leaving .place-bar,#dishfeed.leaving .df-top{opacity:0;transition:opacity .18s ease}

.wait{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:13.5px;line-height:18px}
.wait .ic svg{width:16px;height:16px}
.wait b{font-weight:500;color:var(--teal)}
.wait span:last-child{color:var(--sub)}
.combo-row{display:flex;gap:10px;margin-right:-16px;padding-right:16px;overflow-x:auto;scrollbar-width:none}
.combo-row::-webkit-scrollbar{display:none}
.combo{flex:none;width:232px;background:#F8F8F8;border-radius:12px;padding:10px 10px 12px;display:flex;flex-direction:column;gap:8px}
.combo .pics{display:flex;gap:4px}
.combo .pics div{width:104px;height:72px;border-radius:8px;background-size:cover;background-position:center}
.combo .top{display:flex;justify-content:space-between;font-size:15px;line-height:19px;font-weight:600}
.combo p{font-size:12.5px;line-height:17px;color:#5C5C66;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.combo span{font-size:11.5px;color:var(--sub)}
.combo-row,.pills,.dish-row{touch-action:pan-x}

/* Final POI v2 — shared cards and page navigation */
[hidden]{display:none!important}
#place .sheet{background:#F1F1F2;border-radius:16px 16px 0 0}
#place .sheet-scroll{padding:8px 16px 24px;bottom:110px}
#place.full .sheet-scroll{padding:12px 16px 24px}
#place .sec,#place.full .sec{background:#fff;border-radius:16px;padding:16px;margin:0 0 12px}
#place .sec-head{margin-bottom:16px;gap:8px}
#place .sec-head h3{font-size:16px;font-weight:700}
#place .all{font-size:13px;white-space:nowrap}
#place .name{min-width:0}
#place .name span{font-size:13.5px;font-weight:400;white-space:nowrap}
#place .head-actions{gap:10px}
#place .head-actions svg{width:20px;height:20px}
#place.full .head-actions{display:none}
.stats-capsule{display:flex;justify-content:center;align-items:center;gap:21px;margin-top:18px;padding:14px 12px;border-radius:18px;background:#fff}
.stats-capsule button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex:none;white-space:nowrap}
.stats-capsule i{display:block;width:1px;height:30px;background:#E6E6E8;flex:none}
.stats-capsule small{font-size:11px;line-height:17px;font-weight:600;color:var(--sub)}
.stats-capsule b{font-size:15px;line-height:23px;font-weight:600}.stats-capsule b.reg{font-weight:400}
.heart{color:var(--brand)}
#place .dish-row{margin:0;padding:0;gap:8px;overflow-x:auto}
#place .dish{width:74px;gap:5px}
#place .dish .ph{width:74px;height:74px;border-radius:10px}
#place .dish .ph span{position:absolute;left:0;top:0;background:#0009;border-radius:6px;color:#fff;font-size:12px;font-weight:600;padding:3px 5px}
#place .dish .dish-name{font-size:13px;font-weight:600;line-height:17px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px}
#place .dish>span{color:#FE6A2C;font-size:11px;font-weight:500}
#place .rv-text{font-size:14px;line-height:20px}
#place.full .overview-details{display:block}
.rating-line,.rating-line>span{display:flex;align-items:center;gap:3px}
.rating-line{justify-content:space-between;margin:10px 0 12px;padding-bottom:12px;border-bottom:1px solid #E3E3E4;font-size:16px;line-height:21px;white-space:nowrap}.rating-line .rt{gap:4px}.rating-line .rt b{font-weight:600}.rating-line svg{width:18px;height:18px}
.rating-line button{font-size:13.5px;line-height:18px}.rating-line em{font-weight:500}.rating-line em{font-style:normal;color:#0BB07B}
.address-actions{display:flex;gap:10px}.address-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px}
.drive-wait{display:flex;align-items:center;gap:8px;width:100%;color:#2E8B8B;font-size:15px;line-height:20px;font-weight:500;white-space:nowrap}.drive-wait .vd{display:block;width:1px;height:14px;background:#D6D6D8;flex:none}.drive-wait .ic.sm{margin-left:auto}.drive-wait .pin{margin-right:-4px}.drive-wait .pin svg{width:16px;height:16px}.drive-wait .vd{margin-left:-4px}.drive-wait .ic svg path{stroke:#2E8B8B}
.address-copy>p{font-size:13.5px;line-height:18px;color:var(--sub)}
.street{display:flex;align-items:flex-start;gap:6px;font-size:13.5px;line-height:18px;width:100%;color:var(--sub);text-align:left}.street .txt{flex:1;min-width:0}.street .ic.sm{height:18px;align-items:center}
.street svg{width:16px;height:16px}.find-it{display:flex;gap:6px;align-items:center;font-size:13px;line-height:18px;margin:0;color:#161823}.find-it .ic svg{width:16px;height:16px}
.address-shortcuts{display:flex;gap:14px;align-items:flex-start;align-self:flex-start;padding-top:2px}
.address-shortcuts button{display:flex;align-items:center;flex-direction:column;gap:4px;font-size:12px}
.address-shortcuts .ic{width:40px;height:40px;background:#F1F1F2;border-radius:50%;align-items:center;justify-content:center}
.address-shortcuts svg{width:20px;height:20px}
#place .pills{gap:6px;margin:14px 0 0;padding:0;overflow:visible}
#place .pills{justify-content:space-between;gap:8px}#place .pills button{padding:0 10px;flex:none;font-size:13px}
#place .combo-row{margin-right:0;padding:0}.combo{min-height:170px;border-radius:10px;gap:5px}
#place:not(.full) #sec-combos,#place:not(.full) #sec-nearby{display:none}
#place .tabs{gap:0;padding:12px 16px 6px;justify-content:space-between}
#place .tabs button{font-size:17px}
#place.dishes-mode .sheet-scroll{padding:0;background:white}
#place.dishes-mode .sheet-scroll>.sec,#place.dishes-mode .grabber{display:none!important}
#place.dishes-mode .sticky-header{background:white}
.owner-label{font-size:13px;color:var(--sub);padding:10px 16px}
.owner-combo{display:block;position:relative;width:358px;height:200px;margin:0 16px 8px;border-radius:16px;overflow:hidden;color:white}
.owner-combo>img{width:100%;height:100%;object-fit:cover}
.owner-combo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#000b,transparent)}
.owner-combo>div{position:absolute;z-index:1;left:16px;bottom:16px;right:16px}
.owner-combo span{font-size:11px;background:var(--brand);border-radius:6px;padding:3px 8px}
.owner-combo h2{font-size:22px;line-height:29px;margin-top:8px}.owner-combo p{font-size:14px;margin:6px 0}.owner-combo b{font-size:13px;font-weight:500}
.menu-dish{display:flex;align-items:center;gap:18px;padding:16px;min-height:128px;border-bottom:1px solid #F0F0F2;background:#fff}
.menu-photo{width:96px;height:96px;flex:none;border-radius:50%;overflow:hidden}
.menu-photo img{width:96px;height:96px;object-fit:contain}
.menu-dish-info{flex:1;min-width:0}.dish-title{display:flex;align-items:flex-start;gap:8px}.dish-title b{font-size:18px;line-height:26px;flex:1;min-width:0;font-weight:700}.dish-title strong{font-size:17px;line-height:26px;white-space:nowrap;font-weight:600}
.dish-tags{display:flex;gap:6px;margin:8px 0;flex-wrap:wrap}.dish-tags span{font-size:12px;line-height:16px;padding:2px 6px;border-radius:4px;white-space:nowrap}.dish-tag{color:#fff;background:#161823}.dish-tag.spicy{background:#FE2C55}.recommend{color:#5E5F66;background:#F2F2F4}.recommend.popular{color:#FE6A2C;background:#FFF1E8}
.menu-dish-info>p{font-size:14px;line-height:18px;color:#5E5F66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#menu,#guide,#dish{background:white;z-index:10}
.menu-header{height:100px;padding:47px 16px 0;display:flex;align-items:center;justify-content:center;background:white;position:relative}
.menu-header>button{position:absolute;left:16px;top:58px;color:#161823}.menu-header>b{font-size:17px;font-weight:600}
.menu-scroll{position:absolute;top:100px;bottom:110px;width:390px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
.menu-sticky{position:sticky;top:0;z-index:2;background:white}.menu-sticky.scrolled{box-shadow:0 2px 6px #0000000f}
.menu-tabs{display:flex;justify-content:space-between;padding:12px 16px 6px;border-bottom:1px solid #F1F1F2;height:50px}.menu-tabs button{font-size:17px;color:#999;position:relative}.menu-tabs .on{font-weight:700;color:#161823}.menu-tabs .on:after{content:'';position:absolute;width:26px;height:3px;bottom:0;background:#FE2C55;left:50%;transform:translateX(-50%);border-radius:2px}
.category-chips{display:flex;gap:8px;overflow-x:auto;padding:10px 16px;scrollbar-width:none}.category-chips button{padding:8px 15px;border-radius:24px;background:#F1F1F2;font-size:14px;white-space:nowrap;transition:background .18s,color .18s}.category-chips .on{background:#161823;color:white;font-weight:600}
.guide-scroll{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}.guide-hero{width:390px;height:300px;object-fit:cover}.guide-nav{position:absolute;top:0;left:0;right:0;height:110px;padding:56px 12px 0;display:flex;justify-content:space-between;background:linear-gradient(#0007,transparent)}
.guide-content{position:relative;margin-top:-16px;background:white;border-radius:20px 20px 0 0;padding:20px 16px 44px}.guide-content h1{font-size:24px;line-height:29px}.guide-address{display:flex;gap:12px;font-size:13.5px;color:var(--sub);margin-top:14px;line-height:18px}.guide-address svg{width:16px;height:16px}
.guide-tabs{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #E6E6E8;margin-top:14px;padding-bottom:12px}.guide-tabs .src{font-size:13px;color:var(--sub)}.guide-tabs button{font-size:13px;color:var(--sub)}
.guide-steps{list-style:none;margin-top:20px}.guide-steps li{position:relative;padding-left:32px;margin-bottom:16px}.guide-steps li>span{position:absolute;left:0;top:0;background:#FE2C55;color:white;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700}.guide-steps li:not(:last-child):before{content:'';position:absolute;left:10px;top:28px;bottom:-10px;width:2px;background:#E6E6E8}.guide-steps p{font-size:16px;line-height:20px;min-height:40px;margin-bottom:10px}.guide-steps img{width:326px;height:214px;object-fit:cover;border-radius:12px}
.nearby-row{display:flex;align-items:center;gap:12px;padding:14px 0;width:100%;border-bottom:1px solid #F1F1F2}.nearby-row>img{width:72px;height:72px;border-radius:10px;object-fit:cover}.nearby-row>div{flex:1;min-width:0}.nearby-row b{font-size:16px;font-weight:600}.nearby-row p{font-size:12px;color:#8A8B91;line-height:18px}.nearby-row small{display:inline-block;background:#F1F1F2;border-radius:4px;padding:2px 5px;font-size:11px;color:#5E5F66}.nearby-row>span{color:#8A8B91}.red-star{color:#FE2C55}
#nearbyLoading{font-size:12px;color:#8A8B91;display:flex;justify-content:center;align-items:center;gap:8px;padding:20px 0}#nearbyLoading .spin{border-color:#E6E6E8;border-top-color:#8A8B91}
.statusbar.dark-text{color:#000}
.screen:not(.on){pointer-events:none}.screen.on{pointer-events:auto}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.category-chips button{transition:none}}
.stats-capsule b{display:flex;align-items:center;gap:3px}.stats-capsule .heart svg{width:18px;height:18px}.nearby-row p svg{width:12px;height:12px;display:inline;vertical-align:-2px}

/* half sheet: header sits on the grey sheet, capsule is its own card (Figma B 140:4787) */
#place:not(.full) #sec-overview{background:transparent;padding:0;margin-bottom:20px;border-radius:0}
#place:not(.full) .stats-capsule{margin-top:20px}
#place:not(.full) #sec-dishes{margin-bottom:20px}
#place:not(.full) .sheet-scroll{padding-top:8px}
#place:not(.full) .grabber{margin-bottom:20px}
.name span .full-only{display:none}#place.full .name span .half-only{display:none}#place.full .name span .full-only{display:inline}

/* Dishes tab (6a): category sub-nav sticks right under the main tabs */
.chip-bar{display:flex;gap:8px;overflow-x:auto;padding:10px 16px;scrollbar-width:none}.chip-bar::-webkit-scrollbar{display:none}
.chip-bar button{flex:none;padding:8px 15px;border-radius:24px;background:#F1F1F2;font-size:14px;white-space:nowrap;transition:background .18s,color .18s}
.chip-bar .on{background:#161823;color:#fff;font-weight:600}
.tab-chips{position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid #F0F0F2;touch-action:pan-x}
.tab-chips.scrolled{box-shadow:0 2px 6px #0000000f}
#place .dish .ph{margin-bottom:4px}

/* ---------- 07 · dish detail ---------- */
#dish{background:#F1F1F2}
.dish-scroll{position:absolute;inset:0 0 110px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}.dish-scroll::-webkit-scrollbar{display:none}
.dish-hero{width:390px;height:390px;object-fit:cover;display:block}
.dish-body{padding:12px 16px 24px;display:flex;flex-direction:column;gap:12px}
.dcard{background:#fff;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.d-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.d-title h1{font-size:22px;line-height:28px;font-weight:700}
.dish-tag{font-size:12px;line-height:16px;font-weight:500;color:#fff;background:#161823;border-radius:4px;padding:2px 6px}.dish-tag.spicy{background:#FE2C55}.dish-tag:empty{display:none}
.d-price{display:flex;align-items:center;gap:8px}.d-price b{font-size:20px;line-height:26px;font-weight:700}.d-price span{font-size:13px;color:var(--sub)}
.d-like{margin-left:auto;display:flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:1px solid var(--line);border-radius:18px;font-size:13px;font-weight:500;transition:background .15s,border-color .15s}
.d-like .ic svg{width:20px;height:20px}.d-like em{font-style:normal}.d-like.on{background:#FFE9EE;border-color:#FFE9EE;color:#FE2C55}.d-like.on svg path{stroke:#FE2C55;fill:#FE2C55}
.d-chips{display:flex;flex-wrap:wrap;gap:8px}.d-chips span{font-size:12px;line-height:16px;color:#5E5F66;background:#F1F1F2;border-radius:6px;padding:5px 10px}
.d-head{display:flex;align-items:center;justify-content:space-between}.d-head h3{font-size:16px;line-height:21px;font-weight:700}.d-head span{font-size:13px;color:var(--sub)}
.d-review{display:flex;flex-direction:column;gap:8px}.d-review .rv-head{justify-content:space-between}.d-review .rv-head>div{flex:1;display:flex;flex-direction:column;gap:3px}.d-review .rv-date{font-size:12px;color:var(--sub);white-space:nowrap;align-self:flex-start}
.d-review .rv-text{font-size:14px;line-height:20px;display:block}.d-review .rv-text mark{background:none;color:#FE2C55;font-weight:500}
.d-photos{display:flex;gap:6px}.d-photos div{position:relative;width:104px;height:104px;border-radius:8px;background-size:cover;background-position:center;overflow:hidden}
.d-photos .more{position:absolute;right:6px;bottom:6px;display:flex;align-items:center;gap:2px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;font-weight:500;border-radius:6px;padding:4px 8px}.d-photos .more svg{width:12px;height:12px}.d-photos .more svg path{stroke:#fff}
#dish .view-all-bottom{margin-top:2px;font-size:13px;font-weight:500}

.menu-sec-title{font-size:18px;line-height:24px;font-weight:700;padding:20px 16px 8px}
#menuList .menu-sec:first-child .menu-sec-title{padding-top:12px}

/* recommend check-in sheet */
.ci-scrim{position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:40;opacity:0;transition:opacity .2s}
.ci-scrim.on{opacity:1}
.ci-sheet{position:absolute;left:0;right:0;bottom:0;z-index:41;background:#fff;border-radius:24px 24px 0 0;padding:24px 24px 44px;transform:translateY(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.ci-sheet.on{transform:none}
.ci-x{position:absolute;right:20px;top:20px;width:28px;height:28px;display:grid;place-items:center}
.ci-state{display:none;flex-direction:column;align-items:center;text-align:center;gap:14px;padding-top:24px}
.ci-sheet[data-s="checking"] .ci-state[data-s="checking"],.ci-sheet[data-s="far"] .ci-state[data-s="far"],.ci-sheet[data-s="ok"] .ci-state[data-s="ok"],.ci-sheet[data-s="max"] .ci-state[data-s="max"]{display:flex}
.ci-row{display:flex;align-items:center;gap:10px}
.ci-state h2{font-size:24px;font-weight:700;color:#161823;margin:0}
.ci-state[data-s="checking"] h2{font-weight:600}
.ci-state p{font-size:15px;line-height:21px;color:#5C5C66;margin:0;max-width:330px}
.ci-badge{width:56px;height:56px;border-radius:28px;display:grid;place-items:center}
.ci-badge.tint{background:#FFE9EE}.ci-badge.red{background:#FE2C55}
.ci-badge .ic svg{width:28px;height:28px}
.ci-badge.tint .ic svg path{stroke:#FE2C55}
.ci-btn{width:100%;height:50px;border-radius:25px;font-size:16px;font-weight:600}
.ci-btn.red{background:#FE2C55;color:#fff;margin-top:8px}.ci-btn.grey{background:#F1F1F2;color:#161823}
.ci-sim{font-size:12px;color:#8A8B91;text-decoration:underline;padding:4px}
.ci-dots{display:flex;gap:8px}.ci-dots i{width:32px;height:6px;border-radius:3px;background:#E3E3E4}.ci-dots i.on{background:#FE2C55}
.ci-state small{font-size:13px;font-weight:500;color:#8A8B91}
.ci-pin svg{animation:ciBob 1s ease-in-out infinite}
@keyframes ciBob{50%{transform:translateY(-3px)}}

.rec,.recommend{display:inline-flex;align-items:center;gap:3px}.rthumb{flex:none}

button,a{-webkit-tap-highlight-color:transparent}button:focus,a:focus{outline:none}button:focus-visible{outline:2px solid #FE2C55;outline-offset:2px}
.stats-capsule b.big{font-size:18px;line-height:23px;font-weight:700}.name .open{font-style:normal;color:#0BB07B;font-weight:500}

#demoPanel{position:fixed;left:24px;bottom:24px;width:220px;padding:16px;border-radius:16px;background:#1d1d20;color:#fff;font-size:13px;z-index:200;display:none}
#demoPanel p{font-weight:600;margin-bottom:10px}#demoPanel small{display:block;margin-top:10px;color:rgba(255,255,255,.55);line-height:17px}
#demoPanel .seg{display:flex;background:#2c2c31;border-radius:10px;padding:3px}#demoPanel .seg button{flex:1;padding:8px 6px;border-radius:8px;font-size:12px;font-weight:600;color:rgba(255,255,255,.7);text-align:center}
#demoPanel .seg button.on{background:#FE2C55;color:#fff}
@media (min-width:900px){#demoPanel{display:block}}
