
:root{--sea:#091e2a;--panel:#12313d;--line:#365460;--ink:#edf4ee;--muted:#abc4c4;--lime:#c9eb86;--cyan:#95dadd;--cream:#f4efe4;--paperink:#213634;--shop:#f6c779;--fire:#d8b9ff;--r-sm:6px;--r-md:10px;--r-lg:16px}
*{box-sizing:border-box}
html,body{margin:0;background:var(--sea);color:var(--ink);font-family:system-ui,-apple-system,"PingFang SC","Microsoft Yahei",sans-serif}
button,a,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}a{color:inherit}
[hidden]{display:none!important}
button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
button:active:not(:disabled):not(:focus-visible):not(.map-marker){transform:scale(.96)}
.skip-link{position:fixed;left:16px;top:-80px;z-index:50;padding:12px;background:var(--cream);color:var(--paperink)}.skip-link:focus{top:12px}
.wrap{max-width:1560px;padding:24px 28px 28px;margin:auto}
.eyebrow{font-size:10px;letter-spacing:.16em;color:var(--lime);font-weight:750}
.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 2px 22px}
.hero h1{font-family:Georgia,"Songti SC","Noto Serif SC",serif;font-size:34px;font-weight:600;line-height:1.3;margin:7px 0}
.hero p{color:var(--muted);font-size:12px;line-height:1.7;margin:0}
.hotel-chip{flex:none;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md);text-decoration:none;font-size:11px;color:#cbe3df}
.hotel-chip b{display:grid;place-items:center;width:28px;height:28px;border-radius:var(--r-sm);color:var(--sea);background:var(--cyan)}.hotel-chip small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.map-panel{position:relative;isolation:isolate;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel)}
.workspace-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;padding:0 20px;background:#183541;border-radius:var(--r-lg) var(--r-lg) 0 0;border-bottom:1px solid var(--line);z-index:5}
.view-tabs{display:flex;align-self:stretch;gap:26px;min-width:0}
.view-tabs button{position:relative;background:none;border:0;padding:16px 0;font-size:14px;color:var(--muted);white-space:nowrap}
.view-tabs button small{font-size:10px;margin-left:5px;font-variant-numeric:tabular-nums;font-weight:500}
.view-tabs button[aria-selected=true]{color:var(--cream);font-weight:700}
.view-tabs button[aria-selected=true]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--lime)}
.view-tabs [data-view=shops][aria-selected=true]:after{background:var(--shop)}.view-tabs [data-view=fireworks][aria-selected=true]:after{background:var(--fire)}
.workspace-hint{font-size:11px;color:var(--muted)}
.route-layout{display:grid;grid-template-columns:minmax(0,1fr) 365px;height:clamp(600px,calc(100dvh - 200px),780px)}
.map-surface{position:relative;isolation:isolate;min-width:0;min-height:0;overflow:hidden;background:#102c38;border-radius:0 0 0 var(--r-lg)}
canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}canvas:focus-visible{outline-offset:-3px}
.map-top{position:absolute;z-index:2;top:18px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;pointer-events:none}
.map-context{min-width:0}.map-caption{display:block;color:var(--cream);font-size:13px;line-height:1.6;font-weight:600;text-shadow:0 1px 4px var(--sea);margin:0 0 9px}
.stage-tabs{display:flex;flex-wrap:wrap;gap:2px;background:#12313d;padding:3px;border-radius:var(--r-md);pointer-events:auto;max-width:100%;border:1px solid var(--line)}
.stage-tabs button{border:0;background:none;color:#c1d3ce;padding:8px;font-size:11px;min-height:40px;border-radius:var(--r-sm)}.stage-tabs button.active{background:var(--cream);color:var(--paperink);font-weight:700}
.map-tools{display:grid;gap:7px;pointer-events:auto;flex:none;width:137px}
.map-tools button,.place-picker select{background:#12313d;color:var(--ink);border:1px solid #66818a;border-radius:var(--r-sm);min-height:40px;padding:8px;font-size:11px;width:100%}
.place-picker{font-size:0}
.map-bottom{position:absolute;z-index:2;bottom:18px;left:18px;max-width:290px;font-size:10px;line-height:1.7;color:#b7cdcb;pointer-events:none}
.map-legend{display:flex;flex-wrap:wrap;gap:5px 12px;padding:6px 9px;background:#12313d;border-radius:var(--r-sm)}
.map-legend b{color:var(--lime);margin-right:2px}.map-bottom small{display:block;font-size:10px;background:#102c38cc;margin-top:5px;padding:3px 6px}
.shop-key,.map-legend .shop-key{color:var(--shop)}.hotel-key,.map-legend .hotel-key{color:var(--cyan)}.firework-key,.map-legend .firework-key{color:var(--fire)}
.controls{position:absolute;right:18px;bottom:18px;z-index:2;display:flex;gap:1px;background:#12313d;border:1px solid #55717b;border-radius:var(--r-md);padding:3px}
.controls button{width:40px;height:40px;color:var(--ink);border:0;background:none;border-radius:var(--r-sm);font-size:17px}.controls [data-control=tilt]{font-size:11px;font-weight:700}
.map-markers{position:absolute;inset:0;pointer-events:none}
.map-marker{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:grid;place-items:center;width:40px;height:40px;padding:0;border:4px solid #16343c;border-radius:50%;background:var(--lime);color:#18383b;font-size:11px;font-weight:800;box-shadow:0 2px 4px #071a26aa;font-variant-numeric:tabular-nums}

.map-marker:active:not(:focus-visible){transform:translate(-50%,-50%) scale(.96)}
.map-marker.shop{border-radius:var(--r-sm);background:var(--shop)}.map-marker.hotel{border-radius:var(--r-sm);background:var(--cyan)}.map-marker.firework{border-radius:var(--r-sm);background:var(--fire);border:4px double #352c46}
.map-marker.selected{outline:2px solid var(--cream);outline-offset:3px;z-index:1}.map-marker:focus-visible{outline:3px solid var(--cream);outline-offset:3px;z-index:2}
.map-detail{position:absolute;z-index:3;bottom:85px;right:18px;width:min(285px,calc(100% - 36px));max-height:calc(100% - 200px);overflow:auto;border:1px solid #698591;border-radius:var(--r-md);background:#183b49;padding:18px 40px 18px 18px;box-shadow:0 8px 24px #061b2877}
.map-detail>button{position:absolute;right:0;top:0;width:40px;height:40px;border:0;border-radius:var(--r-sm);background:none;color:var(--ink);font-size:22px}
.detail .mini{font-size:10px;color:var(--lime);letter-spacing:.08em}.detail h4{font-size:16px;margin:5px 0}.detail p{font-size:12px;line-height:1.7;color:#bed2d0;margin:9px 0}.detail a{font-size:12px;text-decoration:underline;text-underline-offset:3px;color:#d3e4d6;display:inline-flex;align-items:center;min-height:40px}.detail-links{display:flex;gap:12px;flex-wrap:wrap}
.route-panel{min-width:0;min-height:0;border-left:1px solid var(--line);background:#163541;border-radius:0 0 var(--r-lg) 0;overflow:hidden}
.content-panel{height:100%;display:flex;flex-direction:column;min-height:0}
.route-panel-head{flex:none;padding:22px 22px 18px;border-bottom:1px solid var(--line)}
.route-panel-head h2{font-family:Georgia,"Songti SC","Noto Serif SC",serif;font-size:25px;font-weight:600;margin:7px 0}.route-panel-head p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}
.route-list,.panel-scroll{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-color:#587782 transparent;padding:8px 14px 16px}
.route-row{display:grid;grid-template-columns:32px 1fr;gap:12px;align-items:center;width:100%;min-height:57px;padding:9px 8px;border:0;border-bottom:1px solid #2d4b57;background:none;text-align:left;color:var(--ink);font-size:13px;border-radius:var(--r-sm)}
.route-row.selected{background:#284b55}.route-no{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--lime);color:var(--sea);font-weight:750;font-size:11px}.section-label{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.route-panel .detail{flex:none;padding:14px 22px;border-top:1px solid var(--line);background:#1f404d}
.store-group{padding-top:12px}.store-group h3,.list-heading{font-size:12px;color:var(--muted);margin:0;padding:8px 7px 12px;font-weight:600}.list-heading{display:flex;justify-content:space-between}.list-heading span{font-weight:400;font-variant-numeric:tabular-nums}
.store-grid{display:block}.store{display:flex;align-items:flex-start;gap:12px;padding:14px 7px;border-bottom:1px solid #2d4b57}.store>div{min-width:0}.store-number{flex:none;display:grid;place-items:center;min-width:30px;height:28px;border-radius:var(--r-sm);background:var(--shop);color:var(--sea);font-size:11px;font-weight:800}
.store strong{display:block;font-size:13px;font-weight:650;line-height:1.6}.store small{display:block;color:var(--muted);font-size:11px;margin-top:4px;line-height:1.7}.store-flag{font-style:normal;color:#dfc297;font-size:10px;font-weight:400;margin-left:5px;white-space:nowrap}
.store-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:5px}.store-actions button,.text-button{border:0;border-radius:var(--r-sm);padding:6px 0;background:none;color:var(--shop);font-size:11px;min-height:40px}.store-actions a{font-size:11px;color:#c3d5d0;display:inline-flex;align-items:center;min-height:40px}.store-actions button[aria-pressed=true]{color:var(--cream);font-weight:800;text-decoration:underline;text-underline-offset:4px}.text-button{color:var(--fire)}
.fireworks-schedule{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}.fireworks-schedule article{padding:12px 0 0;border-top:1px solid #637083}.fireworks-schedule span{font-size:11px;color:#d6d8df;display:block}.fireworks-schedule strong{display:block;font-size:18px;font-weight:650;white-space:nowrap;color:#eee4fa;font-variant-numeric:tabular-nums;margin:7px 0}.fireworks-schedule i{font-style:normal;font-size:12px;color:#a69ab7}.fireworks-schedule small{display:block;color:var(--muted);font-size:10px;line-height:1.7}
.firework-views{display:block}.firework-views button{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;padding:13px 7px;background:none;border:0;border-bottom:1px solid #2d4b57;border-radius:var(--r-sm);color:var(--ink);font-size:13px;line-height:1.6}.firework-views b{flex:none;background:var(--fire);border-radius:var(--r-sm);width:30px;height:28px;display:grid;place-items:center;font-size:11px;color:#352c46}.firework-views small{display:block;color:var(--muted);font-size:11px;margin-top:4px;line-height:1.7}.firework-views em{font-style:normal;margin-left:auto;color:var(--fire)}.firework-views button[aria-pressed=true]{background:#294653}
.fireworks-source{font-size:10px;line-height:1.8;color:var(--muted);margin:18px 7px 0}.fireworks-source a{color:#ddc8f3;display:inline-flex;align-items:center;min-height:40px}
.notes{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:18px 2px 0}.notes p{margin:0;font-size:10px;line-height:1.8;color:#9eb6b6}.notes a{color:#bfd6ce}
body.map-fullscreen{overflow:hidden}.map-panel:fullscreen,.map-panel.map-expanded{width:100%;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column}.map-panel.map-expanded:not(:fullscreen){position:fixed;inset:0;z-index:25}.map-expanded .workspace-nav{border-radius:0;padding-top:env(safe-area-inset-top)}.map-expanded .route-layout{flex:1;min-height:0;height:auto}.map-expanded .map-surface,.map-expanded .route-panel{border-radius:0}
@media(hover:hover){.view-tabs button:hover{color:var(--cream)}.controls button:hover,.map-tools button:hover,.route-row:hover,.firework-views button:hover{background:#2b4b56}.store-actions button:hover,.text-button:hover{color:var(--cream)}}
@media(max-width:1000px){.wrap{padding:18px}.route-layout{grid-template-columns:minmax(0,1fr) 330px}.workspace-hint{display:none}.map-top{left:12px;right:12px;top:12px}.map-tools{width:110px}.stage-tabs button{padding:7px 6px;font-size:10px}.map-caption{font-size:12px}.map-bottom{bottom:68px;left:12px}.controls{right:12px;bottom:12px}.route-panel-head{padding:18px}.route-panel .detail{padding:14px 18px}}
@media(max-width:760px){.wrap{padding:14px 12px 24px}.hero{gap:12px;padding-bottom:16px}.hero h1{font-size:28px}.hero p{font-size:11px}.hotel-chip{display:none}.workspace-nav{position:sticky;top:0;min-height:58px;padding:0 14px}.view-tabs{justify-content:space-between;width:100%;gap:10px}.view-tabs button{font-size:13px;padding:17px 0}.view-tabs button small{font-size:9px;margin-left:3px}.route-layout{grid-template-columns:1fr;height:auto}.map-surface{height:400px;border-radius:0}.route-panel{height:440px;border-left:0;border-top:1px solid var(--line);border-radius:0 0 var(--r-lg) var(--r-lg)}.route-panel-head{padding:17px 18px 14px}.route-panel-head h2{font-size:23px}.map-top{top:12px;left:12px;right:12px}.map-tools{width:100px}.map-context{max-width:calc(100% - 110px)}.stage-tabs{gap:0}.stage-tabs button{font-size:10px;padding:6px 5px;min-height:40px}.map-caption{font-size:11px;min-height:18px;margin-bottom:6px}.map-bottom{left:12px;bottom:62px;max-width:250px}.map-bottom small{display:none}.controls{bottom:10px;left:12px;right:auto}.map-legend{gap:3px 10px;padding:5px 7px}.map-detail{bottom:63px;right:12px;max-height:calc(100% - 150px)}.notes{grid-template-columns:1fr;gap:10px}.fireworks-schedule strong{font-size:20px}.map-expanded .route-layout{display:grid;grid-template-rows:minmax(360px,43%) minmax(300px,1fr);overflow:auto}.map-expanded .map-surface,.map-expanded .route-panel{height:100%;min-height:0}.map-expanded .workspace-nav{flex:none}.map-expanded .route-panel-head{padding:10px 18px}.map-expanded .route-panel-head h2{font-size:20px;margin:4px 0}.map-expanded .route-panel-head .eyebrow{display:none}}
@media(max-width:360px){.view-tabs button small{display:none}.map-tools{width:85px}.map-context{max-width:calc(100% - 95px)}.stage-tabs{max-width:164px}.stage-tabs button{padding:4px 6px}.map-caption{font-size:10px}.fireworks-schedule strong{font-size:18px}}

/* Route history opens as a focused reading surface over the map. */
.detail .history-open{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border:0;border-radius:9px;background:var(--lime);color:#1d3937;font-size:12px;font-weight:750;letter-spacing:.02em;transition:transform .12s ease,background-color .12s ease}
.detail .history-open:hover{background:#d9f3a5}.detail .history-open:active{transform:scale(.97)}.detail .history-open:focus-visible{outline:2px solid var(--cream);outline-offset:3px}.detail .action-line{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:11px}.detail .action-line a{min-height:42px;display:inline-flex;align-items:center}
body.history-active{overflow:hidden}.history-overlay[hidden]{display:none}.history-overlay{position:fixed;inset:0;z-index:30;display:flex;justify-content:flex-end;background:rgba(4,18,25,.76)}.history-sheet{width:min(585px,100%);height:100dvh;background:#f5f0e5;color:#223834;display:flex;flex-direction:column;box-shadow:-18px 0 55px rgba(0,0,0,.23);animation:none}@keyframes sheet-in{from{transform:translateX(24px);opacity:.7}to{transform:translateX(0);opacity:1}}
.history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:23px 30px 19px;border-bottom:1px solid #c9d4c9}.history-kicker{color:#547262;font-size:11px;font-weight:800;letter-spacing:.15em}.history-head h2{font-family:Georgia,"Songti SC","Noto Serif SC",serif;font-size:clamp(27px,2.8vw,38px);font-weight:600;line-height:1.2;margin:8px 0 0}.history-close{flex:none;width:42px;height:42px;background:#e4e9de;border:0;border-radius:10px;color:#29443e;font-size:22px;line-height:1;transition:transform .12s ease,background-color .12s ease}.history-close:hover{background:#d6e0d3}.history-close:active,.history-nav button:active{transform:scale(.96)}
.history-scroll{padding:26px 30px 38px;overflow-y:auto;overscroll-behavior:contain;flex:1}.history-era{display:inline-flex;padding:6px 9px;background:#dde8d5;border-radius:6px;color:#385845;font-size:11px;font-weight:700;letter-spacing:.04em}.history-dek{font-family:Georgia,"Songti SC","Noto Serif SC",serif;font-size:20px;line-height:1.5;margin:20px 0 24px;color:#203b36}.history-prose{border-top:1px solid #c9d4c9;padding-top:10px}.history-prose p{font-size:15px;line-height:1.85;letter-spacing:.01em;margin:17px 0;color:#314841;text-wrap:pretty}.history-source{border-top:1px solid #c9d4c9;margin-top:34px;padding-top:18px;color:#61786d;font-size:12px;line-height:1.65}.history-source a{color:#245949;text-decoration:underline;text-underline-offset:3px}
.history-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 30px max(16px,env(safe-area-inset-bottom));border-top:1px solid #c9d4c9;background:#eee9dd}.history-nav button{min-height:42px;border:1px solid #aebfae;background:transparent;color:#29483b;border-radius:9px;padding:8px 13px;font-size:12px;font-weight:700;transition:transform .12s ease,background-color .12s ease}.history-nav button:hover:not(:disabled){background:#e0e8d9}.history-nav button:disabled{opacity:.38;cursor:default}.history-nav span{color:#5f786a;font-size:11px;font-variant-numeric:tabular-nums}.history-sheet button:focus-visible,.history-sheet a:focus-visible{outline:2px solid #245e4a;outline-offset:3px}
@media(max-width:600px){.history-head{padding:17px 20px 16px}.history-scroll{padding:20px 20px 32px}.history-prose p{font-size:15px;line-height:1.78}.history-nav{padding:13px 20px max(13px,env(safe-area-inset-bottom))}.history-dek{font-size:19px}}
@media(prefers-reduced-motion:reduce){.history-sheet{animation:none}.detail .history-open,.history-close,.history-nav button{transition:none}}

.map-marker.cluster{border-radius:50%;border:3px solid #9e713c;box-shadow:0 0 0 3px #16343c,0 2px 4px #071a26aa}.map-compass{position:absolute;right:23px;bottom:83px;z-index:2;display:grid;justify-items:center;gap:2px;color:#c8d7cf;pointer-events:none;font-size:10px;text-shadow:0 1px 4px #091e2a}.map-compass b{display:block;font-size:27px;line-height:32px;font-weight:400}
