@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap');
:root{--red:#f43d32;--navy:#102638;--muted:#71818b;--line:#e5ebee}*{box-sizing:border-box}body{margin:0;color:var(--navy);font-family:'Noto Sans TC',sans-serif;background:radial-gradient(ellipse at 10% 15%,#ffe5df,transparent 50%),#f4f7f6}button,a,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #347fad;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}.layout{max-width:1220px;margin:auto;padding:35px 40px;display:grid;grid-template-columns:1fr 430px;gap:80px;align-items:center;min-height:100vh}.brand{display:flex;align-items:center;gap:16px;font-weight:800}.brand img{width:108px}.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--red);font-weight:800;margin-top:52px}h1{font-size:49px;line-height:1.45;letter-spacing:-.06em;margin:20px 0}h1 span{color:var(--red)}.lead{font-size:16px;color:#617480;line-height:1.95;max-width:475px}.story-steps{margin-top:30px}.story-steps p{display:flex;gap:24px;align-items:start;margin:22px 0}.story-steps b{font-size:14px;color:var(--red)}.story-steps span{font-weight:700;font-size:15px}.story-steps small{display:block;color:var(--muted);font-weight:400;font-size:12px;margin-top:5px}.concept-note{font-size:10px;color:var(--muted);line-height:1.8;margin-top:30px}.phone{height:min(850px,calc(100vh - 60px));min-height:640px;border:8px solid #22313c;border-radius:42px;box-shadow:0 25px 80px #16314220;overflow:hidden;background:white}.app{position:relative;height:100%;overflow:hidden;background:#edf1ee}#map{position:absolute;inset:0}.map-message{position:absolute;top:117px;left:28px;right:28px;text-align:center;color:#64777e;font-size:12px;line-height:1.7;padding:14px;border-radius:18px;background:#ffffffdf}.map-header{position:absolute;z-index:2;top:20px;left:16px;right:16px;display:flex;gap:9px;align-items:center}.icon-button{width:44px;height:48px;flex:none;border:0;border-radius:15px;background:#fffffff0;font-size:24px;box-shadow:0 4px 18px #18334b0a;color:var(--navy)}.location{min-width:0;flex:1;background:#fffffff2;border-radius:15px;padding:9px 12px}.location small{display:block;font-size:9px;color:var(--muted)}.location strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.map-badge{position:absolute;z-index:1;top:80px;left:50%;transform:translateX(-50%);background:#fffef5ee;border-radius:30px;padding:5px 12px;font-size:9px;color:#5c707a;white-space:nowrap;box-shadow:0 3px 15px #142c3710}.sheet{position:absolute;z-index:3;bottom:0;left:0;right:0;height:calc(100% - 165px);background:#fff;border-radius:30px 30px 0 0;box-shadow:0 -10px 35px #1f3a4910;transition:transform .35s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column}.app.collapsed .sheet{transform:translateY(calc(100% - 58px))}.sheet-handle{border:0;background:transparent;width:100%;flex:none;height:36px;display:flex;align-items:center;justify-content:center;gap:9px;color:#8b989f;touch-action:none}.sheet-handle span{width:34px;height:4px;border-radius:5px;background:#d6dfe1}.sheet-handle small{font-size:9px}.sheet-content{padding:2px 24px 28px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0;outline:none}h2{font-size:25px;letter-spacing:-.04em;line-height:1.4;margin:9px 0}h3{font-size:18px;letter-spacing:-.03em;margin:12px 0}.kicker{color:var(--red);font-size:10px;font-weight:800;letter-spacing:.14em;margin:0}.sub{color:var(--muted);font-size:12px;line-height:1.75;margin:8px 0 16px}.fine{font-size:10px;color:var(--muted);line-height:1.7}.heading{display:flex;justify-content:space-between;align-items:center}.heading img{width:43px;height:43px;border-radius:14px}.primary,.secondary,.text-button{border:0;border-radius:15px;padding:14px 16px;font-size:13px;font-weight:700}.primary{background:var(--red);color:white;width:100%;display:block;text-align:center;text-decoration:none;box-shadow:0 8px 20px #f43d3225}.primary:hover{background:#de2e25}.secondary{background:#f3f6f7;color:var(--navy);width:100%;border:1px solid var(--line);text-align:center;text-decoration:none;display:block}.text-button{background:transparent;color:var(--muted);font-size:11px;width:100%;padding:10px}.row{display:flex;gap:8px;margin:10px 0}.row>*{flex:1}.segmented{display:flex;background:#f1f5f6;padding:4px;border-radius:14px;margin-bottom:18px}.segmented button{flex:1;background:none;border:0;border-radius:11px;color:#7a8a92;font-size:11px;padding:10px 3px}.segmented button.selected{background:#fff;box-shadow:0 3px 9px #152f3910;color:var(--navy);font-weight:700}.progress{display:flex;gap:5px;margin:19px 0 12px}.progress i{height:3px;flex:1;background:#e7ecee;border-radius:4px}.progress i.active{background:var(--red)}.step-label{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.wheel{width:280px;height:280px;position:relative;margin:5px auto 10px;border-radius:50%;background:conic-gradient(#fff3ee,#f0f7f6,#f4f3fb,#fff3ee);border:10px solid #fafcfc}.wheel:before{content:'';position:absolute;inset:7px;border:1px dashed #dbe3e5;border-radius:50%}.wheel-option{position:absolute;width:77px;height:44px;border:1px solid #e6ebed;border-radius:20px;background:white;color:#536873;font-size:11px;font-weight:600;top:50%;left:50%;transform:translate(-50%,-50%) rotate(calc(var(--i)*60deg)) translateY(-107px) rotate(calc(var(--i)*-60deg));box-shadow:0 3px 12px #22384508;transition:background .2s,box-shadow .2s}.wheel-option.selected{color:white;background:var(--red);border-color:var(--red);box-shadow:0 5px 15px #f43d3228}.wheel-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:113px;height:113px;border-radius:50%;border:7px solid #dfe7e9;background:var(--navy);color:#fff;display:grid;align-content:center;text-align:center;gap:4px;box-shadow:0 7px 17px #15334418}.wheel-center small{font-size:9px;color:#9fb2bd}.wheel-center strong{font-size:17px}.wheel-center span{font-size:9px;color:#ff9c94}.chips{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.chip{font-size:10px;background:#fff1ee;color:#aa574d;border-radius:20px;padding:5px 9px;border:0}.time-hero{text-align:center;padding:10px 0}.time-number{font-size:66px;letter-spacing:-.08em;color:var(--red);font-weight:800;line-height:1.15}.time-number small{font-size:15px;letter-spacing:0;color:var(--navy);margin-left:6px}input[type=range]{width:100%;accent-color:var(--red);height:26px;margin:15px 0 0}.range-labels{display:flex;justify-content:space-between;color:#8e9ba3;font-size:9px}.presets{display:flex;gap:7px;margin:17px 0}.presets button{flex:1;padding:10px 0;border:1px solid var(--line);border-radius:12px;background:white;font-size:11px;color:#5e717a}.presets .selected{background:#fff1ee;border-color:#ffb9b3;color:var(--red)}.return-choice{display:flex;align-items:center;gap:9px;font-size:12px;padding:13px 0;margin-bottom:10px}.return-choice input{accent-color:var(--red);width:18px;height:18px}.memory{background:#f3f8f5;padding:14px;border-radius:17px;margin:12px 0 18px}.memory strong{font-size:12px}.memory p{font-size:11px;color:#677a71;margin:7px 0 10px}.memory button{font-size:11px;padding:9px}.fade-in{animation:appear .3s ease}.thinking{text-align:center;padding:36px 0}.orb{height:150px;width:150px;margin:0 auto 26px;position:relative;display:grid;place-items:center}.orb img{width:54px;border-radius:18px;box-shadow:0 8px 30px #f43d3230;animation:breathe 2s ease-in-out infinite}.orb:before,.orb:after{content:'';position:absolute;inset:5px;border-radius:50%;border:1px solid #f5d5d1;border-top:3px solid var(--red);animation:spin 2s linear infinite}.orb:after{inset:23px;border-color:#dbe7e8;border-bottom:3px solid #83a3a1;animation-direction:reverse;animation-duration:3s}.thinking .sub{max-width:270px;margin:12px auto 25px}.error-box{background:#fff2ef;border:1px solid #ffd3cd;border-radius:14px;padding:12px;margin:10px 0;color:#9e453d;font-size:12px;line-height:1.6}.budget{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#f7f9f9;padding:14px 7px;border-radius:17px;margin:15px 0 10px;text-align:center}.budget b{display:block;font-size:17px}.budget small{font-size:9px;color:var(--muted)}.budget b em{font-size:9px;font-style:normal;margin-left:2px}.stop{border:1px solid var(--line);border-radius:17px;padding:14px;margin:10px 0}.stop-header{display:flex;align-items:start;gap:10px}.stop-number{background:#fff0ed;color:var(--red);font-size:11px;font-weight:800;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:none}.stop h3{font-size:14px;margin:1px 0 4px}.stop p{font-size:10px;color:var(--muted);margin:4px 0;line-height:1.6}.stop-meta{display:flex;gap:12px;margin-top:10px;font-size:10px;color:#526b72}.stop a{color:#557d8c;font-size:10px}.trust{font-size:11px;line-height:1.8;color:#667e87;border-top:1px solid var(--line);padding:13px 0;margin:12px 0}.trust summary{cursor:pointer;font-weight:600;color:#47616c}.trust ul{padding-left:17px}.journey-mark{width:48px;height:48px;border-radius:50%;background:#eef6f1;color:#3e8763;display:grid;place-items:center;font-size:24px;margin:18px 0}.journey-time{font-size:35px;font-weight:800;color:var(--red);margin:18px 0}.status-line{font-size:11px;color:#5a8474;background:#eff7f2;padding:9px 12px;border-radius:10px}.toast{position:absolute;z-index:8;left:20px;right:20px;bottom:20px;background:#163143;color:#fff;border-radius:17px;padding:13px 16px;font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}.toast.visible{opacity:1;transform:none}dialog{width:min(360px,calc(100vw - 32px));border:0;border-radius:24px;padding:24px;color:var(--navy);box-shadow:0 25px 100px #0003}dialog::backdrop{background:#10263866;backdrop-filter:blur(4px)}dialog p{font-size:12px;line-height:1.8;color:var(--muted)}dialog button{margin-top:10px}.gm-style a img{max-width:none}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{50%{transform:scale(1.06)}}@media(max-width:1000px){.layout{gap:35px;padding:24px;grid-template-columns:1fr 400px}h1{font-size:39px}.lead{font-size:14px}}@media(max-width:740px){html,body{height:100%;overflow:hidden}.layout{display:block;padding:0;height:100%}.story{display:none}.phone{border:0;border-radius:0;width:100%;height:100dvh;min-height:0;box-shadow:none}.map-header{top:max(15px,env(safe-area-inset-top))}.sheet{height:calc(100% - 145px)}.sheet-content{padding-bottom:max(25px,env(safe-area-inset-bottom))}.map-badge{top:77px}}@media(max-height:700px){.sheet{height:calc(100% - 110px)}.map-badge{display:none}.wheel{width:260px;height:260px}.wheel-option{transform:translate(-50%,-50%) rotate(calc(var(--i)*60deg)) translateY(-98px) rotate(calc(var(--i)*-60deg))}.sheet-content{padding-left:20px;padding-right:20px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* 本地遊戲化:街區圖鑑常駐入口與清單樣式 */
.atlas-fab{position:absolute;z-index:4;top:132px;right:16px;width:52px;height:52px;border-radius:50%;border:0;background:#fff;box-shadow:0 8px 22px #18334b22;display:grid;place-items:center;padding:0}
.atlas-ball{width:34px;height:34px;border-radius:50%;background:linear-gradient(var(--red) 0 50%,#fff 50% 100%);border:3px solid var(--navy);position:relative;box-sizing:border-box;display:block}
.atlas-ball:after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:10px;height:10px;border-radius:50%;background:#fff;border:3px solid var(--navy);box-sizing:border-box}
.atlas-list,.collectible-list{display:grid;gap:8px;margin-top:6px}
.zone-card{display:flex;align-items:center;gap:8px;justify-content:space-between;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:white;text-align:left;font-size:12px;color:var(--navy);width:100%}
.zone-card.complete{background:#fff8ee;border-color:#ffdca8}
.zone-name{font-weight:700;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zone-progress{font-size:11px;color:var(--muted);flex:none}
.zone-distance{font-size:10px;color:#8b9aa1;flex:none}
.collectible-card{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px 14px;width:100%;background:white;text-align:left}
.collectible-card.locked{opacity:.75}
.collectible-card h3{font-size:13px;margin:0;color:var(--navy)}
.tier-badge{font-size:10px;font-weight:700;padding:5px 9px;border-radius:20px;flex:none;white-space:nowrap}
.tier-badge.tier-bronze{background:#f6e2d0;color:#9a5b23}
.tier-badge.tier-silver{background:#e7ebef;color:#5a6875}
.tier-badge.tier-gold{background:#fdecb0;color:#96751a}
.tier-badge.tier-locked{background:#f1f3f4;color:#9aa5ab}
.tier-badge.tier-cooldown{background:#eef2fb;color:#4a5d99}
.bottle-textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px;font:inherit;resize:vertical;color:var(--navy);background:white}
.coin{width:68px;height:68px;border-radius:50%;background:linear-gradient(135deg,#ffe08a,#f4b400);margin:18px auto;display:grid;place-items:center;font-weight:800;color:#7a5b00;font-size:14px;animation:coinflip .9s cubic-bezier(.3,.6,.3,1)}
.coin.lose{background:#eef1f2;color:#8a97a0}
@keyframes coinflip{0%{transform:rotateY(0) scale(1)}50%{transform:rotateY(540deg) scale(1.2)}100%{transform:rotateY(1080deg) scale(1)}}
.achievement-card{background:linear-gradient(160deg,var(--navy),#1d3a52);color:white;border-radius:22px;padding:28px 22px;text-align:center;margin:14px 0;box-shadow:0 14px 40px #10263840}
.achievement-card img{width:44px;height:44px;border-radius:14px;margin-bottom:10px}
.achievement-card h2{color:white;font-size:34px;margin:4px 0}
.achievement-card h2 small{font-size:14px;color:#a9c0cf;font-weight:400}
.achievement-tiers{display:flex;gap:8px;justify-content:center;margin:14px 0 10px}
.achievement-card .fine{color:#c3d2da}
/* The map viewport stops above the sheet so provider attribution stays visible. */
#map{bottom:calc(100% - 165px)}.app.collapsed #map{bottom:58px}
@media(max-width:740px){#map{bottom:calc(100% - 145px)}}
@media(max-height:700px){#map{bottom:calc(100% - 110px)}}
