*{box-sizing:border-box}
body{margin:0;background:#111;color:#fff;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;-webkit-text-size-adjust:100%}
button,input,select{font:inherit}
button{cursor:pointer}
#app{max-width:520px;margin:0 auto;min-height:100vh;padding-bottom:110px}
.loading{padding:60px 20px;text-align:center;color:#b8b2a8}
.top{position:sticky;top:0;z-index:20;background:#000;height:60px;display:flex;align-items:center;justify-content:center}
.top h1{margin:0;font-family:"Noto Serif TC","Songti TC",serif;font-size:26px;font-weight:900;letter-spacing:4px}
.lang{position:absolute;left:10px;height:36px;border-radius:18px;border:1px solid #55504a;background:#1e1e1e;color:#fff;font-size:13px;font-weight:700;padding:0 10px}
.capsule{position:absolute;right:10px;height:44px;border-radius:22px;border:2px solid #fff;background:#c73b32;color:#fff;font-size:13px;font-weight:700;padding:0 12px;display:flex;align-items:center;gap:6px}
.capsule b{font-size:16px}
.mode{height:42px;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:900}
.mode.table{background:#2f62c8}.mode.takeout{background:#d9822b;color:#1e1205}
.status{min-height:38px;padding:6px 12px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px;font-weight:700}
.status.open{background:#17301c;color:#a9e0b2}.status.shut{background:#3a1512;color:#ffc9c2}
.dot{width:10px;height:10px;border-radius:5px;background:currentColor}
.notice{padding:10px 14px;font-size:13px;color:#e8e3da;border-bottom:1px solid #2b2b2b}
.card{background:#efede8;color:#1e1a17;border-radius:16px;padding:14px 12px;margin:12px}
.card h2{margin:0 0 4px;text-align:center;font-size:16px;font-weight:900}
.card .sub{text-align:center;font-size:13px;color:#45413b;margin-bottom:8px}
.card .hint{text-align:center;font-size:14px;font-weight:700;color:#9a4a00;margin-bottom:8px}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.cal .wk{text-align:center;font-size:12px;color:#5f5a53}
.day{height:44px;border:none;border-radius:8px;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;font-weight:700;line-height:1.15}
.day small{font-size:9px;font-weight:700}
.day.open{background:#3f7d4b;color:#fff}.day.special{background:#e08a3c;color:#2a1806}.day.closed{background:#e3e0da;color:#5f5a53}
.day.past{opacity:.45}.day.today{outline:3px solid #c73b32;outline-offset:-3px}.day.sel{background:#1e1a17;color:#fff}
.legend{display:flex;justify-content:center;gap:14px;font-size:12px;color:#45413b;margin-top:8px}
.legend i{display:inline-block;width:10px;height:10px;border-radius:5px;margin-right:4px}
.slots{border-top:1px solid #d5d1c9;margin-top:10px;padding-top:10px}
.slots h3{margin:0 0 8px;font-size:15px}
.slotgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.slot{height:46px;border-radius:10px;border:1.5px solid #b9b3a8;background:#fff;color:#1e1a17;font-size:15px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.slot.sel{background:#c73b32;border-color:#c73b32;color:#fff}.slot.full{background:#e3e0da;border-color:#e3e0da;color:#5f5a53}
.slot small{font-size:10px}
.picked{margin-top:8px;text-align:center;font-size:14px;font-weight:700;color:#2e6b3a}
.chips{position:sticky;top:60px;z-index:15;background:#111;display:flex;gap:8px;padding:10px 12px;overflow-x:auto;border-bottom:1px solid #2b2b2b;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:9px 14px;border-radius:20px;font-size:15px;font-weight:700;background:#111;color:#fff;border:1.5px solid #55504a}
.chip.on{background:#c73b32;border-color:#c73b32}
.sec{padding:0 12px}
.sec h2{margin:0;padding:18px 2px 8px;font-size:21px;font-weight:900;scroll-margin-top:120px}
.sec h2 small{font-size:13px;font-weight:700;color:#b8b2a8;margin-left:8px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:8px}
.pcard{background:#fff;color:#1e1a17;border:none;border-radius:14px;overflow:hidden;padding:0;text-align:left;display:flex;flex-direction:column}
.pcard .pic{position:relative;height:128px;background:#3a2f28}
.pcard img{width:100%;height:100%;object-fit:cover;display:block}
.plus{position:absolute;right:8px;bottom:8px;width:44px;height:44px;border-radius:22px;border:2px solid #fff;background:#c73b32;color:#fff;font-size:26px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1}
.pcard .txt{padding:8px 10px 10px;display:flex;flex-direction:column;gap:2px}
.pname{font-size:16px;font-weight:700}.price{font-size:16px;font-weight:900;color:#b32a20}
.price s{font-size:12px;font-weight:500;color:#77726b;margin-right:4px}
.tag{font-size:11px;font-weight:700;color:#7a2e00;background:#ffd9b8;border-radius:8px;padding:1px 6px;margin-left:4px;vertical-align:middle}
.prow{width:100%;display:flex;align-items:center;gap:12px;padding:6px 6px 6px 14px;min-height:56px;background:#fff;color:#1e1a17;border:none;border-radius:14px;margin-bottom:8px;text-align:left}
.prow .pname{flex:1}.prow .plus{position:static;border:none}
.sold{display:flex;align-items:center;gap:8px;padding:6px 12px;min-height:34px;background:#1e1e1e;border-radius:10px;margin-bottom:8px;font-size:14px;color:#b8b2a8}
.sold span{flex:1}.sold em{font-style:normal;font-size:12px;font-weight:700;border:1px solid #6e6a63;border-radius:10px;padding:2px 8px}
.bar{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:10px 12px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px;max-width:520px;margin:0 auto}
.warn{background:#ffe9e5;border:1.5px solid #c2321c;border-radius:14px;padding:8px 12px;font-size:14px;font-weight:700;color:#8e1f0e}
.cartbtn{height:56px;border-radius:28px;border:none;background:#c73b32;color:#fff;padding:0 20px;display:flex;align-items:center;gap:10px;box-shadow:0 6px 18px rgba(0,0,0,.5);font-size:17px;font-weight:700}
.cartbtn .n{width:28px;height:28px;border-radius:14px;background:#fff;color:#b32a20;font-size:15px;font-weight:900;display:flex;align-items:center;justify-content:center}
.cartbtn .t{flex:1;text-align:left}.cartbtn b{font-size:18px}
.scrim{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center}
.sheet{width:100%;max-width:520px;max-height:90vh;background:#fff;color:#1e1a17;border-radius:22px 22px 0 0;display:flex;flex-direction:column}
.sheet .body{overflow-y:auto;padding:16px 20px 8px}
.sheet h2{margin:0;font-size:22px;font-weight:900}
.gname{display:flex;align-items:center;gap:8px;padding-top:14px;font-size:14px;color:#5f5a53}
.must{font-size:11px;font-weight:700;color:#fff;background:#c73b32;border-radius:6px;padding:1px 6px}
.opt{display:flex;align-items:center;gap:12px;min-height:46px;border-bottom:1px solid #ece8e1;font-size:16px}
.opt input{width:22px;height:22px;accent-color:#c73b32}
.opt span{flex:1}.opt em{font-style:normal;font-size:14px;font-weight:700;color:#b32a20}
.opt.out{color:#8a857d}.opt.out em{color:#8a857d}
.sheet select{width:100%;height:48px;border-radius:12px;border:1.5px solid #b9b3a8;padding:0 10px;font-size:16px;background:#fff;color:#1e1a17;margin-top:6px}
.foot{padding:10px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #ece8e1;display:flex;align-items:center;gap:12px}
.step{display:flex;align-items:center;gap:10px}.step b{font-size:18px;min-width:20px;text-align:center}
.round{width:44px;height:44px;border-radius:22px;border:1.5px solid #b9b3a8;background:#fff;color:#1e1a17;font-size:22px}
.round:disabled{background:#f1eee8;color:#8a857d;border-color:#d5d1c9}
.go{flex:1;height:52px;border-radius:26px;border:none;background:#c73b32;color:#fff;font-size:17px;font-weight:900}
.go:disabled{background:#b9b3a8;color:#2a2622}
.page{background:#111;min-height:100vh}
.phead{height:56px;background:#fff;color:#1e1a17;display:flex;align-items:center;gap:8px;padding:0 8px}
.phead h1{margin:0;font-size:20px;font-weight:900}
.back{width:44px;height:44px;border:none;background:none;font-size:24px;color:#1e1a17}
.citem{background:#fff;color:#1e1a17;border-radius:14px;padding:12px 14px;margin:10px 12px;display:flex;flex-direction:column;gap:6px}
.citem.bad{border:2px solid #c2321c}
.citem .row{display:flex;gap:8px;align-items:center}.citem .row .pname{flex:1;font-size:17px;font-weight:900}
.citem .det{font-size:13px;color:#5f5a53}
.citem .rm{margin-left:auto;height:44px;padding:0 10px;border:none;background:none;font-size:14px;color:#5f5a53;text-decoration:underline}
.pick{background:#fbebd3;color:#7a3e00;padding:10px 16px;font-size:15px;font-weight:700;display:flex;gap:8px}
.pick button{border:none;background:none;color:#7a3e00;text-decoration:underline;font-size:14px}
.pay{background:#fff;color:#1e1a17;padding:14px 16px 24px;display:flex;flex-direction:column;gap:10px}
.sum{display:flex;font-size:15px}.sum span{flex:1;color:#45413b}.sum.total{font-size:22px;font-weight:900}.sum.total b{color:#b32a20}
.pay label.f{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#45413b}
.pay input[type=text],.pay input[type=tel]{height:48px;border-radius:12px;border:1.5px solid #b9b3a8;padding:0 14px;font-size:16px;color:#1e1a17;background:#fff}
.pay .chk{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}.pay .chk input{width:22px;height:22px}
.methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.method{height:60px;border-radius:12px;border:1.5px solid #b9b3a8;background:#fff;color:#1e1a17;font-size:16px;font-weight:900}
.method.on{border:2px solid #c73b32;background:#fdedea;color:#8e1f0e}
/* 付款方式按鈕：大字一行、說明小字另一行 */
.method{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.15;padding:0 6px}
.method small{display:block;font-size:13px;font-weight:700;opacity:.85}
/* LINE Pay：用 LINE 的綠色，一眼認得出來 */
.method.lp{border-color:#06c755;background:#effbf3;color:#04793a}.method.lp.on{border:2px solid #06c755;background:#06c755;color:#fff}
.pay .go.lpgo:not(:disabled){background:#06c755}.method:disabled{color:#8a857d;background:#f1eee8}
.err{color:#8e1f0e;font-size:14px;font-weight:700}
.st{padding:24px 20px 0;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.st .lbl{font-size:14px;color:#b8b2a8}.st .code{font-family:"Noto Serif TC",serif;font-size:72px;font-weight:900;line-height:1}
.st .stage{font-size:22px;font-weight:900;color:#ffd9b8}.st .stage.ready{color:#8ff0a4}
.st .info{font-size:14px;color:#e8e3da}.st .pre{font-size:15px;font-weight:700;background:#1e1e1e;border-radius:12px;padding:6px 14px;margin-top:4px}
.steps{display:flex;justify-content:center;padding:20px 16px 8px}
.stp{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#b8b2a8}
.stp i{width:36px;height:36px;border-radius:18px;background:#2b2b2b;font-style:normal;font-size:16px;font-weight:900;display:flex;align-items:center;justify-content:center}
.stp.done{color:#fff}.stp.done i{background:#3f7d4b}.stp.now{color:#fff}.stp.now i{background:#c73b32}
.ln{width:36px;height:3px;margin-top:17px;background:#2b2b2b}.ln.on{background:#3f7d4b}
.box{margin:8px 16px;background:#1e1e1e;border-radius:14px;padding:6px 14px 12px}
.osi{display:flex;gap:8px;padding:8px 0;border-bottom:1px solid #2b2b2b;font-size:15px}
.osi div{flex:1}.osi small{display:block;font-size:12px;color:#b8b2a8}.osi b{width:56px;text-align:right}
.box .tot{display:flex;padding-top:10px;font-size:17px;font-weight:900}.box .tot span{flex:1}
.say{margin:12px 16px 0;text-align:center;font-size:13px;color:#b8b2a8;line-height:1.6}
.sorry{margin:8px 16px;background:#3a2a12;color:#ffd9a0;border-radius:12px;padding:8px 12px;text-align:center;font-size:14px;font-weight:700}
.ghost{display:flex;align-items:center;justify-content:center;height:52px;margin:20px 16px;border-radius:26px;border:1.5px solid #55504a;background:none;color:#fff;font-size:16px;font-weight:700;width:calc(100% - 32px)}
.pay .go{flex:none;width:100%}
.slotgrid{max-height:232px;overflow-y:auto}
.top .logo{height:52px;display:block}
.sec h2.allout{color:#8a857d;display:flex;align-items:center;gap:10px}
.sec h2.allout em{font-style:normal;font-size:13px;font-weight:700;color:#b8b2a8;border:1px solid #6e6a63;border-radius:10px;padding:2px 10px}
.lang{left:8px;display:flex;height:34px;padding:0;overflow:hidden}
.lang button{border:none;background:none;color:#b8b2a8;font-size:13px;font-weight:700;width:32px;height:100%;padding:0}
.lang button.on{background:#c73b32;color:#fff}
.timesel{width:100%;height:50px;border-radius:12px;border:1.5px solid #b9b3a8;background:#fff;color:#1e1a17;font-size:17px;font-weight:700;padding:0 12px}
.card .hours{text-align:center;font-size:14px;color:#2a2622;margin-bottom:2px}
.card .hours:last-of-type{margin-bottom:8px}
.card .hours b{font-weight:900}
.sheet input.note{width:100%;height:48px;border-radius:12px;border:1.5px solid #b9b3a8;padding:0 14px;font-size:16px;color:#1e1a17;background:#fff;margin:6px 0 10px}
.pdesc{display:block;font-size:12px;font-weight:500;color:#6b655d;line-height:1.35;margin-top:2px}
.prow .pname{padding:6px 0}
.sdesc{margin:6px 0 0;font-size:14px;color:#5f5a53}

.payact{margin:12px 16px 0;display:flex;flex-direction:column;gap:10px}.payact .go{flex:none;width:100%;background:#06c755}.payact .ghost{margin:0;width:100%}.payact p{margin:0;font-size:13px;color:#b9b3a8;text-align:center;line-height:1.5}
.citem .rm.ed{color:#8e1f0e;font-weight:800}.citem .rm.ed+.rm{margin-left:0}
.foot-info{margin:28px 16px 0;padding:18px 0 8px;border-top:1px solid #33302c;text-align:center;color:#a8a299;font-size:12px;line-height:1.7}.foot-info b{display:block;font-size:14px;color:#e8e3da;margin-bottom:2px}.foot-info p{margin:0}.foot-info a{color:#a8a299}.foot-info .lnk{background:none;border:none;color:#a8a299;font-size:12px;text-decoration:underline;padding:6px 8px}.foot-info .pv{font-size:11px;margin-top:2px}

/* 存到手機桌面後用「全螢幕 app」模式打開時，畫面會延伸到時間、電量那一排底下。
   這裡把最上面的標題列往下讓出那一段（一般瀏覽器裡這個值是 0，不受影響）。 */
:root{--sat:env(safe-area-inset-top,0px)}
.top{height:calc(60px + var(--sat));padding-top:var(--sat);box-sizing:border-box}
.chips{top:calc(60px + var(--sat))}
.sec h2{scroll-margin-top:calc(120px + var(--sat))}
.phead{height:calc(56px + var(--sat));padding-top:var(--sat);box-sizing:border-box}
.sheet{max-height:min(90vh,calc(100vh - var(--sat) - 24px))}

/* 品項卡片上的「＋」：小一點；十字改用畫的（圓頭、一定在正中間），不靠字型 */
.plus{width:34px;height:34px;border-radius:17px;font-size:0;right:8px;bottom:8px;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.plus::before,.plus::after{content:"";position:absolute;left:50%;top:50%;background:#fff;border-radius:2px;transform:translate(-50%,-50%)}
.plus::before{width:14px;height:3.5px}
.plus::after{width:3.5px;height:14px}
.prow .plus{position:relative;right:auto;bottom:auto;flex:none;box-shadow:none}
.wait{margin:10px 16px 0;background:#1f2b22;color:#bfe6c8;border-radius:12px;padding:10px 12px;text-align:center;font-size:16px;font-weight:800}

/* 品項視窗底部：提醒可以升級套餐（套餐選項在下面，沒往下滑也看得到） */
.uphint{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:11px 16px;border:0;border-top:1px solid #f3d9a8;background:#fff4dc;color:#8a4b00;font-size:15px;font-weight:800;font-family:inherit;width:100%;cursor:pointer}.uphint i{font-style:normal;font-weight:900}
.uphint i{font-size:20px;line-height:1;margin-left:-2px}
.shine{position:relative;display:inline-block;padding:2px 10px;border-radius:999px;background:#b8451f;color:#fff;font-weight:900;overflow:hidden}
.shine::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.5) 50%,transparent 65%);transform:translateX(-120%);animation:shine 3s ease-in-out infinite}
@keyframes shine{0%,55%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
@media (prefers-reduced-motion:reduce){.shine::after{animation:none}}
.pmods{margin:4px 0 8px 6px;padding:0 0 2px 12px;border-left:3px solid #f3d9a8}.pmods .gname{padding-top:8px}
