/* 揪好吃 PWA 優先安裝教學 v2.4.5 — responsive, large touch targets */
[hidden]{display:none!important}
.pwa-gate{min-height:100svh;background:#f3f7fd;color:#142c4d;font-family:system-ui,-apple-system,"Noto Sans TC","Microsoft JhengHei",sans-serif;padding:0 0 calc(24px + env(safe-area-inset-bottom));}
.pwa-gate *{box-sizing:border-box}
.pwa-gate button{font-family:inherit;cursor:pointer;touch-action:manipulation}
.pwa-gate-inner{width:min(100%,630px);margin:auto;padding:0 16px}
.gate-hero{margin:0 -16px 18px;background:linear-gradient(150deg,#3d73b1,#30588e);padding:20px 16px 24px;color:white;text-align:center;border-radius:0 0 30px 30px}
.gate-logo{width:min(245px,65vw);max-height:175px;object-fit:contain;display:block;margin:0 auto 10px;border-radius:13px;box-shadow:0 8px 20px #173e744f}
.gate-kicker{display:inline-flex;background:#ffffff30;padding:6px 14px;border-radius:99px;font-size:14px;letter-spacing:.3px;font-weight:800}
.gate-hero h1{font-size:clamp(23px,6vw,32px);line-height:1.35;margin:12px 0 8px;letter-spacing:.1px}
.gate-hero p{font-size:clamp(16px,4vw,19px);line-height:1.55;margin:0}
.gate-alert{margin-bottom:16px;background:#fffbea;border:2px solid #ead28c;border-radius:18px;padding:14px 16px;color:#6a470d;display:flex;align-items:flex-start;gap:10px;line-height:1.6;font-size:clamp(16px,4.25vw,19px);font-weight:760}
.gate-alert svg{flex:0 0 26px;margin-top:3px}
.gate-device-title{font-size:16px;font-weight:750;text-align:center;margin:6px 0 10px;color:#36506c}
.gate-devices{display:flex;gap:8px;margin-bottom:16px}
.gate-device{flex:1;border:2px solid #c7d6e9;background:#fff;border-radius:14px;padding:13px 7px;min-height:56px;color:#31567f;font-size:clamp(15px,3.8vw,18px);font-weight:800}
.gate-device[aria-pressed="true"]{color:#fff;background:#386fab;border-color:#386fab;box-shadow:0 5px 12px #0e4b8829}
.gate-card{background:white;border:1px solid #d9e5f3;border-radius:22px;padding:clamp(17px,4.5vw,26px);box-shadow:0 12px 30px #1c52821a}
.gate-progress-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
.gate-progress-row b{font-size:16px;color:#335a84}
.gate-progress{display:flex;gap:6px;align-items:center}
.gate-dot{height:8px;width:18px;border-radius:20px;background:#d4e0ee;transition:background .18s}
.gate-dot.current{background:#3673b4;width:28px}
.gate-step-title{font-size:clamp(23px,6vw,30px);line-height:1.42;color:#142e50;margin:6px 0 10px;font-weight:900}
.gate-step-detail{font-size:clamp(17px,4.6vw,21px);line-height:1.75;color:#34516e;margin:4px 0 18px}
.gate-art{background:linear-gradient(#f1f7ff,#e9f3ff);border-radius:19px;min-height:176px;display:grid;place-items:center;padding:20px 10px;margin:18px 0 22px;overflow:hidden}
.gate-art svg{width:68px;height:68px;stroke:#3d75b4;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.gate-art-content{max-width:360px;width:100%;display:grid;justify-items:center;gap:14px}
.gate-art-label{font-size:16px;line-height:1.45;font-weight:800;color:#214d7b;text-align:center}
.gate-mock-browser{width:min(100%,335px);border:2px solid #cedeee;border-radius:14px;background:#fff;box-shadow:0 4px 14px #174b7821;padding:10px;display:flex;align-items:center;gap:8px}
.gate-mock-browser .address{background:#edf3f9;border-radius:10px;padding:12px;flex:1;min-width:0;text-align:center;font-weight:760;font-size:16px;color:#325b88}
.gate-mock-browser .menu-icon{font-size:37px;line-height:1;color:#24588f;font-weight:bold}
.gate-mock-list{width:min(100%,315px);background:white;border-radius:15px;box-shadow:0 5px 18px #1b477b24;padding:10px;font-size:18px;font-weight:800;color:#315b86}
.gate-mock-list .list-row{display:flex;align-items:center;gap:12px;padding:14px 12px;justify-content:flex-start}
.gate-mock-list .list-row.emphasized{background:#e2f0ff;border:3px solid #3978bb;border-radius:11px}
.gate-mock-dialog{width:min(100%,320px);background:#fff;border:2px solid #cddff0;border-radius:19px;padding:16px;box-shadow:0 8px 18px #1b477b2b;text-align:center;color:#2a4b6d;font-weight:800}
.gate-dialog-actions{display:flex;gap:8px;margin-top:16px;justify-content:flex-end;align-items:center;font-size:17px}
.gate-dialog-actions span{padding:12px 15px;border-radius:9px}
.gate-dialog-actions .picked{background:#306db0;color:#fff}
.gate-home-icon{width:105px;height:105px;border-radius:25px;box-shadow:0 6px 14px #104d812b;display:block;object-fit:cover}
.gate-mock-allow{border-radius:18px;border:2px solid #bad2eb;padding:17px;background:#fff;width:min(100%,335px);text-align:center;color:#284f79;font-weight:800;font-size:18px;line-height:1.5}
.gate-mock-allow .picked{background:#3975b6;color:#fff;border-radius:9px;padding:10px 24px;margin-top:12px;display:inline-block}
.gate-actions{display:flex;gap:10px;margin-top:10px}
.gate-btn{border:0;border-radius:14px;min-height:59px;padding:12px 15px;font-size:clamp(18px,4.8vw,21px);font-weight:850;line-height:1.3}
.gate-btn.primary{background:#2e70b3;color:white;flex:1}
.gate-btn.back{background:#e7eef7;color:#284c73;min-width:30%}
.gate-btn.full{width:100%;margin-top:12px}
.gate-btn:disabled{opacity:.5;cursor:not-allowed}
.gate-btn.outline{background:white;color:#2c659d;border:2px solid #88add3}
.gate-support{background:#edf5fe;color:#1c4c80;border-left:5px solid #3c79b8;padding:13px 16px;margin-top:15px;font-size:16px;line-height:1.65;border-radius:10px}
.gate-support strong{font-weight:850}
.gate-bottom{font-size:15px;line-height:1.75;margin:16px 4px 0;text-align:center;color:#5b6f85}
.gate-link{display:inline-block;font-size:15px;color:#285d99;font-weight:800;text-decoration:underline;text-underline-offset:4px}
.gate-btn:focus-visible,.gate-device:focus-visible,.gate-link:focus-visible{outline:4px solid #d6852d;outline-offset:2px}
@media(min-width:660px){.gate-hero{border-radius:0 0 33px 33px}.pwa-gate-inner{padding:0 22px}.gate-card{padding:27px}.gate-art{min-height:207px}}
@media(max-width:365px){.pwa-gate-inner{padding:0 11px}.gate-hero{margin:0 -11px 14px;padding:16px 11px 21px}.gate-devices{gap:5px}.gate-device{padding:10px 3px;font-size:14px}.gate-card{padding:14px}.gate-dot{width:12px}.gate-dot.current{width:20px}}
@media(prefers-reduced-motion:reduce){.gate-dot{transition:none}}

#gateFeedback:empty{display:none}

.gate-webview-tip{font-size:17px;line-height:1.65;background:#fff4df;border:2px solid #efc77e;border-radius:14px;padding:15px;margin-top:16px;color:#754c18}
.gate-webview-tip strong{display:block;font-size:19px;margin-bottom:6px}
.gate-external-url{display:block;width:100%;padding:12px;margin-top:10px;border:2px solid #7daed8;border-radius:10px;font-size:17px;color:#234d78;background:#fff}

.gate-external-wrap{background:#fff;border:2px solid #deba7f;border-radius:18px;padding:14px;margin-bottom:16px;box-shadow:0 6px 16px #273d6010}
.gate-manual-link{width:100%;font-size:15px;font-weight:700;color:#295e93;border:1px dashed #afc7db;border-radius:9px;padding:10px;background:#ffffffb8;text-align:center;margin:0 0 14px;text-decoration:underline;text-underline-offset:3px}

/* v2.4.5: direct external-browser hand-off card, optimized for seniors */
.gate-external-heading{font-size:clamp(20px,5.3vw,24px);line-height:1.4;margin:0 0 9px;color:#163b64;font-weight:900}
.gate-external-instruction{font-size:clamp(16px,4.2vw,19px);line-height:1.75;margin:0 0 12px;color:#365574}
.gate-external-link{display:flex!important;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.gate-external-link:focus-visible{outline:4px solid #d6852d;outline-offset:2px}
.gate-external-caution{font-size:14px;line-height:1.6;color:#6a5949;margin:10px 1px 0}
.gate-external-manual{margin-top:14px;font-size:16px;border-top:1px solid #e3e9f0;padding:12px 2px 4px}
.gate-external-manual summary{cursor:pointer;font-weight:800;color:#235b96;padding:8px 0}
.gate-external-manual p{white-space:pre-line;line-height:1.8;margin:8px 0}
@media(max-width:365px){.gate-external-wrap{padding:12px}.gate-external-link{font-size:18px}}

/* v2.4.5: Android/desktop one-tap install, separate iPhone / iPad visuals */
.gate-devices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.gate-device{min-width:0;padding:10px 2px;font-size:clamp(13px,3.1vw,17px)}
.gate-main-install{background:#f3f9ff;border:2px solid #b3d3f4;border-radius:18px;padding:15px;margin:12px 0 16px}
.gate-main-install .gate-btn{min-height:70px;font-size:clamp(20px,5vw,25px)}
.gate-installed-card{background:#fff;border:2px solid #c7dbf0;border-radius:17px;padding:15px 16px;margin:16px 0}
.gate-installed-heading{font-size:19px;font-weight:850;color:#225a90;line-height:1.4}
.gate-installed-card .gate-btn{background:#f0f7fe}
.gate-installed-card[hidden],.gate-main-install[hidden],#gateManualSteps[hidden],#gateLaunchFeedback[hidden]{display:none!important}
.gate-guide-photo{display:block;width:100%;height:auto;max-width:560px;border-radius:13px;box-shadow:0 4px 15px #174b7817;border:2px solid #d7e8f9}
.gate-open-guide{font-weight:750;font-size:16px;color:#3d658e;line-height:1.6;margin:12px 2px}
@media(max-width:390px){.gate-device{font-size:13px;padding:10px 0}.gate-devices{gap:4px}.gate-installed-heading{font-size:17px}}

.gate-open-installed-link{display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center}
