:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0879bf; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
.screen[hidden], [hidden] { display: none !important; }
.home-screen { min-height: 100dvh; display: grid; place-items: center; background: #0879bf; }
.cover { position: relative; width: min(100vw, 520px, calc(100dvh * 1080 / 2340)); aspect-ratio: 1080 / 2340; }
.cover img { display: block; width: 100%; height: 100%; }
.cover-enter { position: absolute; left: 19.7%; top: 40.6%; width: 63.7%; height: 7.8%; border-radius: 999px; }
.cover-enter:focus-visible, .cover-enter:hover { outline: 3px solid #fff; outline-offset: 3px; }
.map-screen { position: fixed; inset: 0; overflow: hidden; background: #97dafa; }
.map-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; background: linear-gradient(#0876bd, #0b83cb); color: white; box-shadow: 0 3px 12px #14527c33; }
.map-heading { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.2; }
.map-heading strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-heading span { margin-top: 3px; font-size: 11px; opacity: .9; }
.icon-link, .icon-button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid #ffffff66; border-radius: 12px; background: #ffffff1c; color: white; text-decoration: none; font-size: 23px; }
.map-viewport { position: absolute; inset: calc(60px + env(safe-area-inset-top)) 0 0; overflow: hidden; touch-action: none; cursor: grab; }
.map-viewport.dragging { cursor: grabbing; }
.map-stage { position: absolute; top: 0; left: 0; width: 4000px; height: 3558px; transform-origin: 0 0; will-change: transform; }
.map-stage.focus-travel { transition: transform .62s cubic-bezier(.2, .75, .15, 1); }
.map-art { display: block; width: 4000px; height: 3558px; user-select: none; -webkit-user-drag: none; }
.hotspots { position: absolute; inset: 0; }
.hotspot { position: absolute; display: block; border-radius: 80px; background: transparent; text-decoration: none; }
.hotspot::after { content: ""; position: absolute; inset: 8%; border: 7px solid transparent; border-radius: 70px; transition: border-color .15s, background .15s; }
.hotspot:hover::after, .hotspot:focus-visible::after { border-color: #fff200; background: #fff20022; }
.hotspot.label-hit.visited::after { border-color: #ffca29; background: #fff0a333; }
.hotspot.label-hit.spotlit::after { border-color: #fff200; background: #fff20066; }
.hotspot.visited::before { content: "✓"; position: absolute; z-index: 2; top: -8px; right: 4px; display: grid; place-items: center; width: 65px; height: 65px; border: 5px solid white; border-radius: 50%; background: #13b883; color: white; font-size: 35px; font-weight: 800; box-shadow: 0 4px 10px #0004; }
.spotlight-ring { position: absolute; z-index: 2; width: 420px; height: 420px; border: 14px solid #ffdc29; border-radius: 50%; background: #ffeb3b17; box-shadow: 0 0 0 22px #fff14166, 0 0 55px 22px #ffd21c; pointer-events: none; animation: spotlight-pulse 1.35s ease-out 3; }
@keyframes spotlight-pulse { 0% { box-shadow: 0 0 0 0 #fff14199, 0 0 20px 8px #ffd21c; } 65% { box-shadow: 0 0 0 45px #fff14100, 0 0 75px 28px #ffd21c88; } 100% { box-shadow: 0 0 0 22px #fff14166, 0 0 55px 22px #ffd21c; } }
.map-tools { position: absolute; z-index: 5; right: 14px; bottom: calc(65px + env(safe-area-inset-bottom)); display: grid; gap: 5px; padding: 5px; border-radius: 16px; background: #fff; box-shadow: 0 6px 25px #004d8370; }
.map-tools button { display: grid; place-items: center; min-width: 40px; height: 40px; border: 0; border-radius: 10px; background: #e8f5ff; color: #086bb5; font-size: 23px; font-weight: 700; }
.map-tools button:last-child { font-size: 13px; }
.map-tools button:hover { background: #c7e7ff; }
.map-tip { position: absolute; z-index: 4; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 20px); transform: translateX(-50%); margin: 0; padding: 8px 13px; border-radius: 30px; background: #075b93e8; color: white; font-size: 12px; text-align: center; box-shadow: 0 3px 12px #00375a50; pointer-events: none; }
.map-screen.has-spotlight .map-tip { display: none; }
.spotlight-card { position: absolute; z-index: 8; left: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 9px; width: min(350px, calc(100vw - 104px)); min-height: 76px; padding: 10px; border: 2px solid #ffe465; border-radius: 16px; background: #075b9af2; color: white; box-shadow: 0 8px 28px #00365a77; backdrop-filter: blur(8px); }
.spotlight-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #ffd434; color: #754900; font-size: 23px; font-weight: 900; }
.spotlight-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.3; }
.spotlight-copy small { color: #ffdf65; font-size: 10px; font-weight: 750; }
.spotlight-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-copy span { font-size: 10px; opacity: .8; }
.spotlight-card a { flex: none; padding: 7px 8px; border-radius: 8px; background: #ffdc39; color: #664100; font-size: 11px; font-weight: 800; text-decoration: none; }
.spotlight-card button { position: absolute; top: -13px; right: -11px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid white; border-radius: 50%; background: #075b9a; color: white; font-size: 17px; line-height: 1; }
.places-panel { position: fixed; z-index: 30; top: calc(60px + env(safe-area-inset-top)); right: 0; bottom: 0; width: min(360px, 88vw); overflow: auto; padding-bottom: env(safe-area-inset-bottom); background: #f5fbff; box-shadow: -8px 0 30px #003b5e70; }
body.in-detail .places-panel { top: calc(48px + env(safe-area-inset-top)); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; color: #075889; }
.panel-head strong { font-size: 16px; }
.panel-head button { border: 0; background: none; color: #075889; font-size: 28px; line-height: 1; }
.extra-head { margin-top: 12px; border-top: 1px solid #d2e9f8; }
.places-list { display: grid; gap: 5px; padding: 0 10px; }
.place-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 10px; background: white; color: #163f5b; text-decoration: none; box-shadow: 0 1px 5px #00548415; }
.place-row:hover, .place-row:focus-visible { background: #dff3ff; }
.place-row .number { color: #0879bf; font-size: 12px; font-weight: 800; }
.place-row .name { flex: 1; font-size: 14px; font-weight: 650; }
.place-row .status { color: #127dab; font-size: 11px; white-space: nowrap; }
.place-row.pending .status { color: #b86b0f; }
.detail-screen { min-height: 100dvh; padding-top: calc(48px + env(safe-area-inset-top)); background: #0d8fe4; }
.detail-nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; height: calc(48px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; background: #0876bded; color: white; backdrop-filter: blur(10px); }
.detail-nav a, .detail-nav button { flex: none; border: 0; background: transparent; color: white; text-decoration: none; font-size: 14px; font-weight: 700; }
.detail-nav span { flex: 1; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.detail-nav .detail-step { display: grid; place-items: center; width: 30px; height: 32px; border: 1px solid #ffffff55; border-radius: 9px; font-size: 26px; line-height: 1; }
.detail-nav button { font-size: 21px; }
.detail-content { width: min(100%, 560px); margin: 0 auto; }
.detail-art { position: relative; }
.detail-art img { display: block; width: 100%; height: auto; }
.light-button { position: absolute; left: 18.1%; top: var(--button-top); width: 63.8%; height: var(--button-height); border: 0; border-radius: 999px; background: transparent; }
.light-button:hover, .light-button:focus-visible { outline: 3px solid white; outline-offset: -2px; }
.journey-nav { padding: 17px 15px calc(24px + env(safe-area-inset-bottom)); background: #086fbd; color: white; }
.journey-count { margin: 0 0 10px; font-size: 12px; text-align: center; opacity: .88; }
.journey-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.journey-links a { display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 9px 12px; border: 1px solid #ffffff6b; border-radius: 12px; background: #ffffff1b; color: white; text-decoration: none; }
.journey-links a:last-child { text-align: right; }
.journey-links small { font-size: 11px; opacity: .8; }
.journey-links strong { margin-top: 3px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.journey-map { display: block; margin-top: 10px; padding: 10px; border-radius: 12px; background: #ffdc3e; color: #704900; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.journey-links a:hover, .journey-links a:focus-visible { background: #ffffff39; }
.pending-page { display: grid; justify-items: center; gap: 14px; min-height: calc(100dvh - 48px); padding: 42px 22px; background: linear-gradient(160deg, #1398e8, #0659af); color: white; text-align: center; }
.pending-page .emoji { font-size: 54px; }
.pending-page h1 { margin: 0; font-size: 27px; }
.pending-page p { max-width: 26em; margin: 0; line-height: 1.7; }
.pending-page a { align-self: start; padding: 11px 24px; border-radius: 30px; background: #ffda36; color: #543700; font-weight: 800; text-decoration: none; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 30px; background: #053e6de8; color: white; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 800px) { .map-header { padding-left: 24px; padding-right: 24px; } .map-heading strong { font-size: 18px; } .detail-screen { background: #0869ac; } .detail-content { box-shadow: 0 0 35px #003f6f99; } }
@media (prefers-reduced-motion: reduce) { .map-stage.focus-travel { transition: none; } .spotlight-ring { animation: none; } }
