/* Full-day story: retain the existing candy palette and the card-rack entry. */
#detail-view .day-heading{margin-bottom:3px;min-height:122px}#detail-view .detail-girls{height:160px;top:-26px}.flow-intro{font-size:17px;line-height:1.8;font-weight:700;margin:5px 0 10px;max-width:780px}.flow-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px;font-size:12px;color:#705563}.flow-meta button{border:1.5px solid var(--ink);background:#fff;border-radius:20px;padding:3px 12px;font-size:12px;font-weight:700;color:var(--ink)}.route-overview{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:68px;padding:12px 16px;background:#fff;border:3px solid var(--ink);border-radius:24px;box-shadow:4px 4px 0 var(--ink);margin:0 0 28px;overflow-x:auto;scrollbar-width:thin}.route-stop{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;white-space:nowrap;font-size:16px;font-weight:900;border:2px solid var(--ink);border-radius:20px;padding:4px 12px;transition:transform .2s,box-shadow .2s}.route-stop>span{font:italic 900 12px/1 Arial,sans-serif;opacity:.65}.route-stop[aria-current]{box-shadow:2px 3px 0 var(--ink);transform:translateY(-3px)}.route-arrow svg{width:20px;height:20px;stroke-width:2.7;display:block}.flow-layout{display:grid;grid-template-columns:minmax(230px,.32fr) minmax(0,.68fr);gap:27px;align-items:start}.flow-sidebar{min-width:0;align-self:stretch}.guide-sticky{position:sticky;top:14px;display:flex;flex-direction:column;gap:13px}.guide-postcard .window-bar{font-size:18px;min-height:37px;padding:4px 9px}.guide-postcard .window-glyphs i{width:17px;height:18px;font-size:15px}.guide-postcard .scene-art{aspect-ratio:1.55;position:relative;background:none;overflow:hidden}.guide-postcard .scene-art:before{content:'';position:absolute;top:50%;left:0;width:100%;aspect-ratio:1;transform:translateY(-50%);background-image:url('/assets/tokyo-candy/scenes.png');background-size:400% 200%;background-position:var(--scene-x) var(--scene-y)}.guide-sprite{display:block;width:78px;aspect-ratio:1;background-image:url('/assets/tokyo-candy/guides.png');background-repeat:no-repeat;background-size:300% 100%;background-position:var(--girl-x,0%) 50%;flex:none;animation:guide-bob 3.6s ease-in-out infinite}.guide-bubble{display:flex;gap:3px;align-items:center;min-height:82px}.guide-bubble .guide-sprite{width:83px;margin-left:-8px}.guide-bubble p{position:relative;background:#fff;border:2px solid var(--ink);border-radius:18px 18px 18px 4px;padding:9px 12px;margin:0;box-shadow:3px 3px 0 var(--pink);font-size:12px;line-height:1.65;flex:1}.guide-bubble b{display:block;font-size:14px;color:#a83263;margin-bottom:2px}.guide-bubble p>span{display:block}.play-day{display:flex;align-items:center;justify-content:center;gap:12px;border:3px solid var(--ink);border-radius:24px;background:var(--yellow);box-shadow:3px 4px 0 var(--ink);min-height:49px;font-size:22px;font-weight:900;transition:transform .2s}.play-day:hover{transform:translateY(-2px)}.play-day[aria-pressed=true]{background:var(--pink)}.play-day svg{width:25px;height:25px;fill:#fff}.mini-route{border-radius:13px;box-shadow:3px 3px 0 var(--ink)}.mini-route h2{font-size:15px;font-weight:900;background:var(--lilac);margin:0;padding:6px 11px;border-bottom:2px solid var(--ink);display:flex;justify-content:space-between;align-items:center}.mini-route h2 small{font-size:11px}.mini-route>div{padding:6px 10px}.mini-route button{display:flex;align-items:center;gap:10px;width:100%;border:0;border-bottom:1px solid #d8cbd2;background:#fff;padding:6px 3px;font-size:13px;font-weight:800;text-align:left;border-radius:0}.mini-route button:last-child{border:0}.mini-route button[aria-current]{background:#ffe2ef;border-radius:7px}.mini-number{display:grid;place-items:center;width:35px;height:22px;border:1.8px solid var(--ink);border-radius:11px;font:italic 900 13px/1 Arial,sans-serif;flex:none}.mini-route svg{margin-left:auto;width:17px;height:17px}.guide-sticky .trip-info{transform:none;padding:11px 13px 15px;border-radius:12px;box-shadow:3px 3px 0 var(--ink)}.guide-sticky .trip-info h2{font-size:15px;margin:0 0 6px}.guide-sticky .trip-info dt{font-size:12px}.guide-sticky .trip-info dl>div{margin-top:4px}.guide-sticky .trip-info dd{height:20px}.flow-main{min-width:0}.journey-line{position:relative;isolation:isolate;padding-top:2px}.journey-line:before{content:'';position:absolute;left:31px;top:30px;bottom:60px;width:0;border-left:5px dotted #e2679f;z-index:-1}.line-progress{position:absolute;left:31px;top:30px;width:5px;height:35px;background:#f58abd;z-index:-1;transition:height .65s cubic-bezier(.2,.7,.2,1);border-radius:8px}.route-flyer{position:absolute;top:-24px;left:-6px;width:84px;z-index:4;animation:guide-bob 3.6s ease-in-out infinite;transition:transform .65s cubic-bezier(.2,.7,.2,1),background-position .2s;pointer-events:none;filter:drop-shadow(1px 2px 0 #fff)}.route-flyer:after{content:'✦';position:absolute;bottom:4px;left:13px;color:#f6bd16;font-size:18px;-webkit-text-stroke:1px var(--ink);animation:trail-sparkle 1.8s ease-in-out infinite}.flow-list{padding:0;margin:0;list-style:none}.flow-step{position:relative;display:grid;grid-template-columns:78px minmax(0,1fr);gap:7px;margin-bottom:28px;scroll-margin-top:35px}.stop-rail{display:flex;flex-direction:column;align-items:center;padding-top:28px;gap:11px}.stop-number{display:grid;place-items:center;width:48px;height:43px;border:3px solid var(--ink);border-radius:50%;font:italic 900 23px/1 'Arial Black',Arial,sans-serif;box-shadow:2px 2px 0 var(--ink)}.stop-time{font-size:12px;font-weight:900;line-height:1.5;text-align:center;background:var(--blush);padding:5px 1px;max-width:74px}.step-paper{position:relative;border:3px solid var(--ink);border-radius:17px;background:#fff;box-shadow:4px 5px 0 var(--ink);overflow:hidden;transition:box-shadow .3s;transform-origin:50% 0}.step-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:2px solid var(--ink);padding:10px 13px;min-height:57px}.step-heading h2{font-size:21px;line-height:1.4;letter-spacing:-.5px;margin:0;font-weight:900;outline:none}.step-heading a{display:flex;align-items:center;gap:3px;background:#fff;border:1.8px solid var(--ink);border-radius:18px;padding:3px 7px;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap;flex:none}.step-heading a svg{width:15px;height:15px;stroke-width:2}.step-content{padding:17px 16px 15px}.step-content.has-media{display:grid;grid-template-columns:minmax(115px,.35fr) minmax(0,.65fr);gap:15px;align-items:start}.flow-image{position:relative;aspect-ratio:1;overflow:hidden;border:2px solid var(--ink);border-radius:10px;background:#fff;align-self:start}.flow-image:before{content:'';position:absolute;width:100%;aspect-ratio:1;top:50%;left:0;transform:translateY(-50%);background-position:var(--art-x) var(--art-y);background-repeat:no-repeat}.location-art:before{background-image:url('/assets/tokyo-candy/scenes.png');background-size:400% 200%}.routine-art:before{background-image:url('/assets/tokyo-candy/routine-scenes.png');background-size:300% 200%}.step-copy p{font-size:14px;line-height:1.9;margin:0 0 11px}.step-copy ul{margin:0 0 11px;padding:0;list-style:none}.step-copy li{position:relative;padding-left:12px;font-size:12px;line-height:1.8;color:#624d5b;margin-top:3px}.step-copy li:before{content:'';position:absolute;top:.7em;left:0;width:5px;height:5px;border:1px solid var(--ink);background:var(--pink);border-radius:50%}.stop-duration{display:block;font-size:11px;color:#735b68;font-weight:700;margin-top:10px}.step-transfer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1.5px solid var(--ink);background:#fff8ce;padding:10px 13px;font-size:11px;line-height:1.7;font-weight:700}.step-transfer>span:first-child{flex:1}.step-transfer button{display:flex;align-items:center;gap:5px;flex:none;font-size:11px;font-weight:900;border:0;background:transparent;padding:4px 0;text-decoration:underline;text-underline-offset:3px}.step-transfer svg{width:17px;height:17px}.finish-star{font-size:26px;color:#b48100;line-height:1}.is-current .step-paper{box-shadow:5px 6px 0 #da699c}.is-current .stop-number{outline:3px solid #fff;outline-offset:-6px}.has-entered .step-paper{animation:stage-enter .45s cubic-bezier(.2,.7,.2,1) both}.day-finish{position:relative;display:flex;gap:10px;align-items:center;border:3px solid var(--ink);border-radius:18px;box-shadow:4px 5px 0 var(--ink);background:#ffe0ef;margin:10px 0 24px;padding:17px 18px 20px;overflow:hidden}.day-finish>img{width:31%;height:150px;object-fit:contain;flex:none;animation:guide-bob 4s ease-in-out infinite}.day-finish h2{font-size:23px;line-height:1.5;font-weight:900;margin:0 0 7px;letter-spacing:-.6px}.day-finish p{font-size:12px;line-height:1.8;margin:0 0 13px}.day-finish button{display:inline-flex;align-items:center;gap:13px;background:var(--yellow);border:2px solid var(--ink);border-radius:24px;box-shadow:3px 3px 0 var(--ink);padding:7px 15px;font-weight:900;font-size:15px}.day-finish button svg{width:19px;height:19px}.flow-practical{display:flex;flex-direction:column;gap:14px}.flow-practical details{border:2.5px solid var(--ink);border-radius:13px;box-shadow:3px 3px 0 var(--ink);background:#fff;overflow:hidden}.flow-practical summary{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--blue);padding:12px 16px;font-size:16px;font-weight:900;cursor:pointer;list-style:none}.flow-practical details:nth-child(2) summary{background:var(--yellow)}.flow-practical summary::-webkit-details-marker{display:none}.flow-practical summary svg{width:21px;height:21px;transition:transform .2s}.flow-practical details[open] summary{border-bottom:2px solid var(--ink)}.flow-practical details[open] svg{transform:rotate(180deg)}.flow-practical p{font-size:14px;line-height:1.9;padding:14px 17px;margin:0}.flow-practical p+p{padding-top:0}.schedule-note{font-size:11px;line-height:1.8;color:#705563;margin:22px 0 8px}.mobile-guide{display:none}.motion-paused *, .motion-paused *:before,.motion-paused *:after{animation:none!important;transition:none!important}
@keyframes guide-bob{0%,100%{background-position-y:50%}50%{background-position-y:40%}}@keyframes stage-enter{from{opacity:.35;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes trail-sparkle{0%,100%{opacity:.35;scale:.7}50%{opacity:1;scale:1}}
@media(min-width:1350px){body:has(#detail-view:not([hidden])) .comic-shell{max-width:1410px;padding:20px 31px}.flow-layout{grid-template-columns:minmax(280px,.28fr) minmax(0,.72fr);gap:30px}.step-content.has-media{grid-template-columns:210px minmax(0,1fr)}.step-heading h2{font-size:23px}.step-copy p{font-size:15px}.step-copy li{font-size:13px}.guide-postcard .scene-art{aspect-ratio:1.65}.guide-sticky{gap:12px}.stop-time{font-size:13px}}
@media(max-width:1000px) and (min-width:701px){.flow-layout{grid-template-columns:230px minmax(0,1fr);gap:17px}.flow-step{grid-template-columns:58px minmax(0,1fr);gap:3px}.journey-line:before,.line-progress{left:24px}.route-flyer{left:-10px;width:75px}.stop-number{width:41px;height:38px;font-size:20px}.stop-time{font-size:10px;max-width:55px}.step-heading{gap:5px;padding:8px 10px}.step-heading h2{font-size:18px}.step-content{padding:13px 12px}.step-content.has-media{grid-template-columns:1fr;gap:12px}.flow-image{aspect-ratio:1.9}.step-copy p{font-size:14px}.step-copy li{font-size:12px}.step-transfer{align-items:flex-start;gap:8px;flex-direction:column}.route-stop{font-size:13px;padding:4px 8px;gap:4px}.route-stop>span{font-size:10px}.route-overview{gap:4px;padding:11px 10px}.route-arrow svg{width:15px}.day-finish{padding:16px 12px}.day-finish h2{font-size:20px}.day-finish>img{height:120px;width:26%}.guide-bubble .guide-sprite{width:70px}.guide-bubble p{font-size:11px;padding:8px 9px}.mini-route button{font-size:12px}}
@media(max-width:700px){#detail-view .day-heading{min-height:127px;margin-bottom:10px}#detail-view .detail-girls{height:118px;top:-21px}.flow-intro{font-size:15px;line-height:1.8;margin:0 0 10px}.flow-meta{font-size:10px;align-items:center;gap:7px;margin-bottom:15px}.flow-meta button{font-size:10px;padding:3px 9px;white-space:nowrap}.route-overview{justify-content:flex-start;padding:11px 10px;border-width:2.5px;border-radius:17px;gap:5px;margin-bottom:18px;min-height:59px}.route-stop{font-size:13px;flex:none;padding:5px 10px;gap:5px;border-width:1.8px}.route-stop>span{font-size:10px}.route-arrow svg{width:16px;height:16px}.flow-layout{display:flex;flex-direction:column;gap:22px}.flow-sidebar{width:100%;align-self:auto}.guide-sticky{position:static;display:grid;grid-template-columns:1fr;gap:13px}.guide-postcard .scene-art{aspect-ratio:1.6}.guide-postcard .window-bar{font-size:18px}.guide-bubble{min-height:67px}.guide-bubble .guide-sprite{width:78px;margin-left:0}.guide-bubble p{font-size:12px;padding:9px 12px}.guide-bubble b{font-size:14px}.play-day{min-height:47px;font-size:21px;border-width:2.5px}.mini-route,.guide-sticky .trip-info{display:none}.mobile-guide{position:sticky;top:8px;z-index:15;display:flex;align-items:center;gap:5px;margin:0 0 16px;background:#fff;border:2px solid var(--ink);border-radius:16px;box-shadow:3px 3px 0 var(--ink);padding:5px 13px 5px 6px;min-height:58px}.mobile-guide .guide-sprite{width:43px}.mobile-guide>div{flex:1;font-size:12px;font-weight:900;line-height:1.5}.flow-progress-track{height:6px;border:1px solid var(--ink);border-radius:5px;overflow:hidden;background:#f5e4ec;margin-top:5px}.flow-progress-track>span{display:block;height:100%;background:var(--pink);transition:width .5s}.flow-main{width:100%}.flow-step{grid-template-columns:42px minmax(0,1fr);gap:6px;margin-bottom:25px;scroll-margin-top:85px}.stop-rail{padding-top:36px;gap:9px}.stop-number{width:35px;height:35px;font-size:18px;border-width:2px;box-shadow:2px 2px 0 var(--ink)}.stop-time{font-size:10px;line-height:1.5;max-width:43px;padding:4px 0}.journey-line:before,.line-progress{left:19px;width:4px}.journey-line:before{border-left-width:4px}.route-flyer{left:-12px;top:-17px;width:67px}.route-flyer:after{font-size:14px;bottom:2px;left:10px}.step-paper{border-width:2.5px;border-radius:13px;box-shadow:3px 4px 0 var(--ink)}.step-heading{padding:10px 10px 9px;gap:7px;align-items:flex-start;min-height:52px}.step-heading h2{font-size:18px;line-height:1.5;letter-spacing:-.6px}.step-heading a{padding:3px 5px;border-width:1.5px;margin-top:2px}.step-heading a span{display:none}.step-heading a svg{width:16px;height:16px}.step-content,.step-content.has-media{display:block;padding:13px 12px}.flow-image{aspect-ratio:1.3;margin-bottom:13px;border-radius:8px;border-width:1.5px}.step-copy p{font-size:14px;line-height:1.9;margin-bottom:11px}.step-copy li{font-size:12px;line-height:1.85}.stop-duration{font-size:10px}.step-transfer{flex-direction:column;align-items:flex-start;font-size:11px;padding:10px 12px;gap:7px}.step-transfer button{align-self:flex-end;font-size:11px}.day-finish{flex-direction:column;align-items:center;gap:0;text-align:center;padding:11px 15px 20px;border-width:2.5px;margin-top:4px}.day-finish>img{height:115px;width:65%;animation:guide-bob 4s ease-in-out infinite}.day-finish h2{font-size:22px}.day-finish p{font-size:12px}.day-finish button{font-size:16px}.flow-practical summary{font-size:15px;padding:12px 13px}.flow-practical p{font-size:13px;padding:12px 14px}.schedule-note{font-size:10px;margin-top:18px}#detail-view .day-nav{margin-top:27px}}
@media(prefers-reduced-motion:reduce){.guide-sprite,.has-entered .step-paper,.route-flyer:after,.day-finish>img{animation:none!important}.line-progress,.route-flyer,.route-stop,.flow-progress-track>span{transition:none!important}}
@media print{.flow-layout{display:block}.flow-sidebar,.route-overview,.mobile-guide,.flow-meta button,.route-flyer,.step-transfer button,.step-heading a,.day-finish button{display:none}.flow-step{break-inside:avoid}.step-paper{box-shadow:none}.flow-practical details{display:block}}
.guide-sprite{animation:guide-float 3.6s ease-in-out infinite}@keyframes guide-float{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -5px;rotate:-3deg}}
#mobile-play{display:grid;place-items:center;flex:none;width:32px;height:32px;border:2px solid var(--ink);border-radius:50%;padding:0;background:var(--yellow)}#mobile-play svg{width:19px;height:19px;fill:#fff}#mobile-play[aria-pressed=true]{background:var(--pink)}
/* Keep the flying guide above the numbered stop, never over its label. */
.route-flyer{width:68px;left:3px;top:-46px}
@media(max-width:700px){.route-flyer{width:55px;left:-5px;top:-32px}}
@media(min-width:701px){.flow-image{aspect-ratio:1.4}.step-copy p{font-size:15px}.step-copy li{font-size:13px}.stop-duration,.step-transfer{font-size:12px}}
@media(min-width:1350px){.step-copy p{font-size:16px}.step-content.has-media{grid-template-columns:220px minmax(0,1fr)}}
.mobile-trip-info{display:none}
@media(max-width:700px){.mobile-trip-info{display:block;transform:none;margin-top:20px;padding:15px 17px}.mobile-trip-info h2{font-size:17px;margin-bottom:8px}}
/* On a phone, start the actual day immediately; the sticky guide replaces the sidebar. */
@media(max-width:700px){.flow-sidebar{display:none}.flow-layout{gap:0}}
@media(max-width:700px){.flow-step{scroll-margin-top:110px}}
@media(max-width:700px){.route-flyer{display:none}}
