/* Swiss type hierarchy, route transfer, and alert states. */
.hero-bottom{display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:end;gap:30px;padding:32px clamp(20px,3vw,48px) 36px}
.hero-title-block{min-width:0}.hero-bottom h1{font-size:clamp(60px,7.5vw,124px);font-weight:900;letter-spacing:-.09em;line-height:.98;margin:16px 0 12px}.hero-bottom .mono{color:#087b85;font-size:12px}.hero-bottom p{font-size:16px;font-weight:600}.hero-action{display:grid;gap:18px;align-content:end}.hero-action>span{font:700 12px/1.8 Consolas,'Microsoft YaHei',monospace;letter-spacing:.12em;border-top:1px solid #667f7d;padding-top:12px}.hero-action .start-button{min-width:0;width:100%}
.route-poster{position:relative;overflow:hidden}.route-poster img{transition:filter .4s,transform .5s}.route-poster.is-switching img{animation:poster-arrive .7s ease-out}.route-flow-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0}.route-flow-svg path{fill:#b7ffff8a;filter:drop-shadow(0 0 24px #61ffff);transform:translateX(-450px)}.route-flow-svg path:nth-child(2){fill:#ffffffa3}.route-flow-svg path:nth-child(3){fill:#6ce9ee87}.route-flow-svg .flow-ray{fill:none;stroke:#f5ffff;stroke-width:13;filter:drop-shadow(0 0 18px #7bffff)}.route-poster.is-switching .route-flow-svg{opacity:1;animation:flow-fade .85s ease-out forwards}.route-poster.is-switching .route-flow-svg path{animation:poster-sweep .85s cubic-bezier(.16,.7,.28,1) both}.route-poster.is-switching .route-flow-svg path:nth-child(2){animation-delay:.07s}.route-poster.is-switching .route-flow-svg path:nth-child(3){animation-delay:.13s}.route-poster.is-switching .route-flow-svg .flow-ray{animation-delay:.1s}
.route-poster-feedback{position:absolute;z-index:3;inset:0;display:grid;place-items:center;padding:24px;text-align:center;background:#081011c9;color:#e9ffff;font-size:clamp(16px,2vw,28px);font-weight:900;letter-spacing:.08em;opacity:0;pointer-events:none;transition:opacity .15s}.route-poster-feedback:after{content:"";position:absolute;left:12%;right:12%;bottom:16%;height:3px;background:linear-gradient(90deg,transparent,#7df4ed,transparent);animation:poster-loading 1.6s ease-in-out infinite}.route-poster[data-poster-state="loading"] .route-poster-feedback,.route-poster[data-poster-state="error"] .route-poster-feedback{opacity:1}.route-poster[data-poster-state="error"] .route-poster-feedback:after{animation:none;background:#ff6c60}
button{position:relative;isolation:isolate;overflow:hidden;transition:transform .2s,box-shadow .2s,filter .2s,background .2s}button:after{content:"";position:absolute;z-index:-1;inset:-30% auto -30% -55%;width:35%;transform:skewX(-28deg);background:linear-gradient(90deg,transparent,#fff8,transparent);opacity:0;pointer-events:none}button:hover:after{opacity:1;animation:button-scan .6s ease-out forwards}button:hover{filter:brightness(1.13);box-shadow:0 0 0 1px #89faff77,0 0 18px #55e7ef44}button:active{transform:scale(.965)}button.is-clicked{animation:button-click .32s ease-out}.masthead a{transition:color .2s,text-shadow .2s}.masthead a:hover{text-shadow:0 0 15px #55e7efa0}
.journey-map-shell{position:relative}.journey-transfer{fill:none;stroke:#bde4dc6c;stroke-width:1.5;stroke-dasharray:8 11;opacity:.6;animation:transfer-dash 8s linear infinite}.journey-traversed{fill:none;stroke:#e8fffd;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 13px #7af7f4);pointer-events:none}.journey-traversed.is-danger{stroke:#ff4a45;filter:drop-shadow(0 0 20px #ff302d)}.journey-track.is-danger{stroke:#ff4d46;stroke-width:9;filter:drop-shadow(0 0 20px #ff3030);animation:danger-track 1.2s ease-in-out infinite}.journey-node.is-current .node-core{stroke:#f9ffff;stroke-width:6;filter:drop-shadow(0 0 18px #f6ffff)}.journey-map-shell.is-warning:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 5px #ff2929,inset 0 0 45px 15px #ff292963;animation:warning-edge 1s ease-in-out infinite}.journey-warning-overlay{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-7deg);width:min(65%,540px);display:flex;flex-direction:column;align-items:center;text-align:center;color:#fff;pointer-events:none;filter:drop-shadow(0 0 25px #ff302c);animation:warning-mark .8s ease-in-out infinite}.journey-warning-overlay svg{width:clamp(130px,20vw,260px);stroke:#ff382f;stroke-width:10;fill:#250807e8}.journey-warning-overlay strong{font-size:clamp(52px,8vw,110px);font-weight:900;line-height:1;white-space:nowrap;text-shadow:5px 5px 0 #620d0d}.journey-warning-overlay span{font:700 13px Consolas,'Microsoft YaHei',monospace;letter-spacing:.1em;background:#a50e0e;padding:7px 12px}
.journey-help{font-size:13px;font-weight:700}.journey-calc{padding:24px}.calc-route{margin:16px 0 10px}.calc-route strong{font-size:clamp(34px,3vw,48px)}.calc-route>span{font-size:14px}.calc-risk{display:flex;align-items:center;gap:12px;background:#d6e5db;padding:11px 14px;margin-bottom:10px}.calc-risk>span{font-size:14px;font-weight:800}.calc-risk strong{font:900 48px/1 Arial,sans-serif;margin-left:auto}.calc-risk small{font-size:12px;font-weight:800}.calc-risk.is-danger{background:#ff4c40;color:#fff;animation:risk-flash 1.4s ease-in-out infinite}.calc-warning{display:flex;align-items:center;gap:11px;padding:11px;background:#a8151a;color:#fff;font-size:14px;font-weight:900;animation:risk-flash 1s ease-in-out infinite}.calc-warning[hidden]{display:none}.calc-warning svg{width:28px;height:28px;flex:none;stroke:#fff;stroke-width:3;fill:#a8151a}.calc-metrics small{font-size:13px;font-weight:700}.calc-metrics strong{font-size:clamp(37px,3vw,50px);line-height:1.1}.calc-log>span,.calc-latest>span{font-size:12px}.calc-log li{font-size:13px;line-height:1.5;padding:11px}.calc-latest strong{font-size:30px}.calc-latest p{font-size:14px}
@keyframes poster-arrive{from{filter:brightness(1.7) saturate(.1);transform:scale(1.035)}to{filter:none;transform:scale(1)}}@keyframes poster-sweep{from{transform:translateX(-480px)}to{transform:translateX(1500px)}}@keyframes flow-fade{0%,72%{opacity:1}100%{opacity:0}}@keyframes button-scan{to{left:135%}}@keyframes button-click{50%{box-shadow:0 0 0 5px #e3ffffdd,0 0 35px #7af8ff;filter:brightness(1.4)}}@keyframes transfer-dash{to{stroke-dashoffset:-220}}@keyframes danger-track{50%{opacity:.55;stroke-width:12}}@keyframes warning-edge{50%{box-shadow:inset 0 0 0 8px #ff6565,inset 0 0 85px 38px #ff2929ab}}@keyframes warning-mark{50%{opacity:.72;transform:translate(-50%,-50%) rotate(-7deg) scale(1.04)}}@keyframes risk-flash{50%{filter:brightness(1.35)}}
@keyframes poster-loading{50%{opacity:.35;transform:scaleX(.3)}}
@media(max-width:750px){.hero-bottom{grid-template-columns:1fr}.hero-bottom h1{font-size:clamp(46px,11vw,78px)}.hero-action{grid-template-columns:1fr}.route-flow-svg{display:none}.journey-warning-overlay strong{font-size:55px}}
@media(max-width:500px){.hero-bottom h1{font-size:clamp(43px,11vw,56px)}.hero-bottom p{font-size:13px}.calc-metrics strong{font-size:42px}.journey-warning-overlay{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%) rotate(-7deg);width:calc(100% - 18px)}.journey-warning-overlay svg{width:115px;height:105px}.journey-warning-overlay strong{font-size:46px}.journey-warning-overlay span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.journey-transfer,.journey-track.is-danger,.journey-map-shell.is-warning:after,.journey-warning-overlay,.calc-risk.is-danger,.calc-warning{animation:none}}
.journey-foot-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.journey-foot button:disabled{opacity:.45;cursor:not-allowed}.journey-foot button:disabled:hover{filter:none;box-shadow:none;background:none;color:#e3f9ed}.journey-foot button:disabled:hover:after{animation:none;opacity:0}
.journey-history{margin-top:22px;border:1px solid #7d938b;background:#e7eae2}.journey-history summary{display:grid;grid-template-columns:1fr auto 18px;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:14px;background:#172123;color:#eaf8ed;font-size:17px;font-weight:900;transition:background .2s}.journey-history summary::-webkit-details-marker{display:none}.journey-history summary:hover{background:#247980}.journey-history summary b{font:700 12px Consolas,monospace;color:#80e7e9}.journey-history summary svg{width:18px;height:18px;stroke:#b9ffff;stroke-width:2;transition:transform .2s}.journey-history:not([open]) summary svg{transform:rotate(-90deg)}.journey-history-list{display:grid;gap:9px;padding:10px}.journey-history-list>p{margin:0;padding:12px;font-size:13px;color:#5c7069}.history-entry{border-left:5px solid var(--history-color);background:#f5f5ed;padding:12px;box-shadow:0 1px 0 #c0cdc4}.history-heading{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:5px 9px}.history-heading span{font:900 17px Consolas,monospace;color:#1b777b}.history-heading strong{font-size:17px;line-height:1.25}.history-heading small{grid-column:2;font-size:11px;color:#677971}.history-values{display:flex;flex-wrap:wrap;gap:5px;margin:11px 0}.history-values span{padding:5px 7px;background:#d8e6dd;font-size:11px;font-weight:800}.history-detail{margin:0;font-size:12px;line-height:1.65;color:#48564e}.history-cumulative{border-top:1px solid #b8c9bd;margin:10px 0 0;padding-top:8px;font-size:11px;line-height:1.6;color:#283b36}.history-cumulative b{display:block;color:#137982}
.journey-layout{align-items:start;background:none;border:0}.journey-map-shell,.journey-calc{border:1px solid #849992}.journey-map-shell{align-self:start;position:sticky;top:18px}
@media(max-width:1100px){.journey-map-shell{position:relative;top:auto}}
