:root{--escort-ink:#0d1116;--escort-bronze:#9b7845;--escort-gold:#f7d78f;--escort-paper:#e8d4ad;--escort-raid:#bd5644;--escort-guard:#76c6aa}
.game-functions .escort-entry{cursor:pointer}
.game-functions .escort-entry::before,.game-functions [data-game="shop"]::before{width:46px;height:43px;left:1px;top:0;transform:none;background-position:center;background-size:contain;background-repeat:no-repeat;filter:drop-shadow(0 0 3px #c37a2e)}
.game-functions .escort-entry::before{background-image:url('/assets/escort/escort-entry-art.png')}
.game-functions [data-game="shop"]::before{background-image:url('/assets/escort/shop-entry-art.png')}
.escort-entry:focus-visible,.escort-dialog button:focus-visible,.escort-world-banner:focus-visible{outline:2px solid #fff3bf;outline-offset:2px}
.escort-entry:hover{filter:brightness(1.2)}
.escort-scene{position:absolute;z-index:9;inset:0;overflow:hidden;pointer-events:none;color:#f9e2b3;background:#4d6263 url('/assets/escort/mountain-road.jpg') center/cover no-repeat;text-shadow:0 2px 3px #090908}
.escort-scene[hidden]{display:none}.escort-scene:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#101a20bb,transparent 22%,transparent 72%,#0b100fd9);pointer-events:none}
.escort-scene canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;object-fit:contain}
.escort-scene-top{position:absolute;z-index:2;top:9px;left:11px;right:92px;display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:12px}.escort-scene-top strong{max-width:70%;padding:5px 10px;border:1px solid var(--escort-bronze);background:#111922e9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.escort-scene-top span{padding:5px 7px;border:1px solid #8e7e65;background:#111922e9;font-variant-numeric:tabular-nums}
.escort-scene-top{right:10px;pointer-events:auto}.escort-scene-top strong{max-width:45%}.escort-scene-top button{border:1px solid #d8b070;background:#161a20ed;color:#f9dc9f;padding:5px;white-space:nowrap;cursor:pointer}
.escort-scene-track{position:absolute;z-index:2;top:13%;left:10%;right:10%;display:flex;align-items:center;gap:8px;font-size:10px}.escort-scene-track>div{height:9px;flex:1;border:1px solid #8b764f;background:#131416d9;overflow:hidden}.escort-scene-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#6e9779,#e8bd6d);transition:width 1s linear}
.escort-scene-hp{position:absolute;z-index:2;bottom:10%;left:13%;right:13%;display:grid;grid-template-columns:auto auto;gap:4px 8px;align-items:center;font-size:11px}.escort-scene-hp b{text-align:right;font-variant-numeric:tabular-nums}.escort-scene-hp>div{grid-column:1/-1;height:9px;border:1px solid #b99a64;background:#181217}.escort-scene-hp i{display:block;height:100%;background:linear-gradient(90deg,#a94f3e,#e9ad70);transition:width 1s linear}
.escort-scene-people{position:absolute;z-index:2;left:10px;bottom:2%;padding:4px 7px;border:1px solid #8e734d;background:#10161cdc;font-size:10px}
.escort-scene-phase{position:absolute;z-index:2;top:20%;left:50%;transform:translateX(-50%);max-width:90%;padding:5px 12px;border:1px solid #d4aa66;background:#18212cda;color:#fff1c8;font-size:12px;font-weight:800;white-space:nowrap}.escort-scene-command{position:absolute;z-index:2;right:10px;bottom:2%;padding:4px 7px;border:1px solid #d4aa66;background:#18212cdd;font-size:10px}.escort-scene-command:empty{display:none}
.escort-scene-roster{position:absolute;z-index:3;top:26%;left:3%;right:3%;height:19%;pointer-events:auto}.escort-fighter-roster{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;color:#f9edcf}.escort-fighter-roster>div{display:flex;gap:4px;min-width:0;overflow-x:auto;padding:3px;border:1px solid #b3915b;background:#101a21c9;scrollbar-width:thin}.escort-fighter-roster strong{position:sticky;left:0;z-index:1;flex:0 0 auto;display:flex;align-items:center;max-width:70px;font-size:10px;background:#21303de8}.escort-fighter-card{flex:0 0 90px;display:grid;gap:2px;min-width:0;padding:2px 4px;border:1px solid #69a88a;background:#142b2bdc}.escort-fighter-card[data-side="raid"]{border-color:#b96659;background:#352222d9}.escort-fighter-card.is-down{opacity:.5}.escort-fighter-card b,.escort-fighter-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.escort-fighter-card i,.escort-watch-wagon-hp span,.escort-watch-fighter span{display:block;height:5px;background:#101419}.escort-fighter-card i em,.escort-watch-wagon-hp i,.escort-watch-fighter span i{display:block;height:100%;background:#69d5a2}.escort-fighter-card[data-side="raid"] i em,.escort-watch-fighter[data-side="raid"] span i{background:#eb856c}.escort-scene:not(.is-expanded) .escort-scene-roster,.escort-scene:not(.is-expanded) .escort-scene-command{display:none}.escort-scene:not(.is-expanded) .escort-scene-phase{top:22%;font-size:11px}
.escort-expanded{overflow:hidden}.escort-expanded>header,.escort-expanded main>.grid{visibility:hidden}.escort-expanded .center-stage{position:fixed!important;z-index:82!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;display:block!important;width:min(100vw,56.25vh)!important;height:min(100vh,177.777vw)!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}.escort-expanded .center-stage .scene{width:100%!important;height:100%!important;min-height:0!important}.escort-expanded .center-stage #centerInfo,.escort-expanded .scene>:not(.escort-scene){display:none!important}.escort-expanded .escort-scene{z-index:90}.escort-expanded .escort-scene-top{top:2%;font-size:13px}.escort-expanded .escort-scene-top strong{max-width:43%}.escort-expanded .escort-scene-track{top:10%}.escort-expanded .escort-scene-phase{top:17%}.escort-expanded .escort-scene-roster{top:24%;height:11%}.escort-expanded .escort-scene-hp{bottom:9%}.escort-expanded .escort-scene-people,.escort-expanded .escort-scene-command{bottom:3%}
.escort-expanded .scene>.gift-celebration:not([hidden]){display:block!important;z-index:100!important;visibility:visible!important}
.player.combat-card .escort-mini-stage{position:absolute;z-index:3;inset:0 0 32%;pointer-events:none;overflow:hidden;background:#4d6263 url('/assets/escort/mountain-road.jpg') center/cover no-repeat}.escort-mini-stage canvas{width:100%;height:100%;display:block}.escort-mini-progress{position:absolute;left:8%;right:8%;bottom:5px;height:5px;border:1px solid #d4ad69;background:#18120e}.escort-mini-progress i{display:block;height:100%;background:linear-gradient(90deg,#4ca7aa,#edc265)}
.escort-scene-result{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);width:min(84%,360px);max-height:78%;overflow:auto;padding:11px;border:1px solid #e2bd78;background:linear-gradient(145deg,#2a2017f7,#0f1720f8);box-shadow:0 12px 35px #000d;text-align:center}.escort-scene-result[hidden]{display:none}.escort-scene-result>b{display:block;margin-bottom:9px;color:#ffe19a;font-size:18px}.escort-reward-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.escort-reward-item{min-height:57px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #796744;background:#121c26}.escort-reward-item img{width:24px;height:24px;object-fit:contain}.escort-reward-item b,.escort-reward-item em{font-size:9px;font-style:normal;line-height:1.2;white-space:nowrap}
.escort-world-banner{position:fixed;z-index:200;top:8%;left:50%;transform:translateX(-50%);width:min(88vw,600px);padding:9px 14px;border:1px solid #f6cd75;background:linear-gradient(100deg,#251710f5,#56331df5,#221710f5);box-shadow:0 8px 28px #000a;color:#ffe4aa;text-align:center;font-size:13px;font-weight:700;cursor:pointer}.escort-world-banner[hidden]{display:none}
.escort-dialog{width:min(690px,96vw);max-height:min(83vh,900px);overflow:auto;padding:14px;border:1px solid #a4814c;background:linear-gradient(165deg,#1f2530,#0d1219);box-shadow:0 24px 75px #000e;color:var(--escort-paper);font-family:inherit}.escort-dialog::backdrop{background:#05080dc7}.escort-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 9px;border-bottom:1px solid #65523a;background:none}.escort-dialog h2{margin:0;color:var(--escort-gold);font-size:20px;letter-spacing:.06em}.escort-dialog [data-close]{font-size:22px;line-height:1;padding:2px 8px}.escort-dialog button{border:1px solid #9f8051;background:#2a241b;color:#f6d99b;cursor:pointer}.escort-dialog button:hover:not(:disabled){border-color:#f3ce82;background:#4d3420}.escort-dialog button:disabled{opacity:.48;cursor:not-allowed}.escort-dialog-intro{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0;font-size:11px;line-height:1.4}.escort-dialog-intro span{max-width:70%;color:#d2c2a7}.escort-dialog-intro button{padding:7px 10px;white-space:nowrap;font-weight:700}.escort-dialog-counters{min-height:21px;color:#9fdab7;font-size:11px}.escort-dialog-list{display:grid;gap:6px;max-height:50vh;overflow-y:auto}.escort-empty{padding:20px 10px;text-align:center;border:1px dashed #5b5f65;color:#b8ada0;font-size:12px}.escort-error{min-height:1.3em;margin:8px 0 0;color:#f5aa8d;font-size:11px}
.escort-run-card{display:grid;grid-template-columns:66px minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px;border:1px solid #705a3b;background:#151c24}.escort-run-card[data-quality="4"]{border-color:#a489c6}.escort-run-card[data-quality="5"]{border-color:#e4c574;box-shadow:inset 0 0 13px #a77e3527}.escort-run-wagon{width:66px;height:49px;object-fit:contain;filter:drop-shadow(0 4px 3px #0008)}.escort-run-title{display:flex;gap:6px;align-items:center;min-width:0}.escort-run-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f4e2ba;font-size:12px}.escort-run-title strong{color:#f4bd67;font-size:10px;white-space:nowrap}.escort-run-meta{display:flex;flex-wrap:wrap;gap:2px 7px;color:#b8b6b1;font-size:9px}.escort-run-track{height:6px;margin-top:5px;border:1px solid #77694e;background:#11151d;overflow:hidden}.escort-run-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#779b87,#e4be76)}.escort-run-actions{display:flex;flex-direction:column;gap:3px}.escort-run-actions button{min-width:46px;padding:4px;font-size:10px}
.escort-watch-detail{display:grid;justify-items:center;gap:5px;padding:8px;border:1px solid #ab8755;background:#132027}.escort-watch-detail>img{width:min(220px,70%);max-height:120px;object-fit:contain}.escort-watch-detail>b{color:#f3d69c}.escort-watch-detail>.escort-run-track{width:90%}.escort-watch-team{height:56px;display:flex;gap:3px}.escort-watch-team img{width:40px;height:56px;object-fit:contain}
.escort-watch-stage{position:relative;width:100%;height:210px;overflow:hidden;background:#4d6263 url('/assets/escort/mountain-road.jpg') center/cover no-repeat}.escort-watch-stage:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 65%,#1118);pointer-events:none}.escort-watch-stage .escort-watch-team{position:absolute;left:2%;bottom:12%;height:52%;align-items:flex-end;gap:0}.escort-watch-stage .escort-watch-team img{width:48px;height:100%;object-fit:contain;animation:escort-fight-bob 1s ease-in-out infinite alternate}.escort-watch-stage .escort-watch-team img:nth-child(2){animation-delay:.24s}.escort-watch-stage .escort-watch-team img:nth-child(3){animation-delay:.45s}.escort-watch-wagon{position:absolute;left:31%;bottom:11%;width:42%;height:60%;object-fit:contain;filter:drop-shadow(0 8px 7px #000b)}.escort-watch-enemy{position:absolute;right:3%;bottom:18%;width:17%;height:50%;object-fit:contain;filter:drop-shadow(0 0 8px #ae503a);animation:escort-fight-bob .9s ease-in-out infinite alternate-reverse}.escort-watch-reward{width:100%;padding:6px;border:1px solid #75613d;background:#1b1b18}.escort-watch-reward>b{display:block;margin-bottom:6px;color:#f8d694;font-size:11px}@keyframes escort-fight-bob{from{transform:translateY(0)}to{transform:translateY(-5px)}}@media(prefers-reduced-motion:reduce){.escort-watch-stage img{animation:none!important}}
.escort-watch-phase{position:absolute;z-index:4;top:5px;left:50%;transform:translateX(-50%);padding:3px 7px;background:#162027d9;border:1px solid #bc9967;white-space:nowrap;color:#ffe3a6;font-size:10px}.escort-watch-side{position:absolute;z-index:3;bottom:14%;width:31%;display:flex;align-items:flex-end;justify-content:space-around;gap:2px}.escort-watch-side[data-side="guard"]{left:1%}.escort-watch-side[data-side="raid"]{right:1%}.escort-watch-fighter{position:relative;flex:1;min-width:0;height:115px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.escort-watch-fighter img{width:100%;height:75%;object-fit:contain;animation:escort-fight-bob 1s ease-in-out infinite alternate;filter:drop-shadow(0 3px 3px #000)}.escort-watch-fighter.is-down img{filter:grayscale(1);opacity:.5;transform:rotate(65deg);animation:none}.escort-watch-fighter b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff3d7;text-shadow:0 1px 2px #000;font-size:8px}.escort-watch-fighter span{width:90%;border:1px solid #fff9}.escort-watch-wagon-hp{width:100%;color:#ffe4a9;font-size:11px;text-align:center}.escort-watch-wagon-hp span{width:95%;margin:3px auto;height:7px;border:1px solid #b9915d}.escort-watch-wagon-hp i{background:#d8a35a}.escort-watch-command{padding:6px;border:1px solid #b9915d;background:#24251f;color:#ffe5ac;font-size:11px}.escort-watch-detail .escort-fighter-roster{max-height:170px;overflow:auto}.escort-watch-detail .escort-fighter-roster>div{display:grid;align-content:start;overflow:visible}.escort-watch-detail .escort-fighter-card{width:100%;flex:none}.escort-load-more{padding:7px;border:1px solid #b9915d;background:#2b251e;color:#ffe3a5;font-size:11px}
.escort-watch-stage[data-phase="travel"] .escort-watch-fighter img,.escort-watch-stage[data-phase="safe"] .escort-watch-fighter img,.escort-watch-stage[data-phase="preparing"] .escort-watch-fighter img{animation:none}.escort-watch-stage[data-phase="wagon_combat"] .escort-watch-fighter[data-side="raid"] img{animation:escort-wagon-strike .9s ease-in-out infinite alternate}.escort-watch-stage[data-phase="guard_combat"] .escort-watch-fighter[data-side="guard"] img{animation:escort-guard-strike .9s ease-in-out infinite alternate}@keyframes escort-wagon-strike{from{transform:translateX(0)}to{transform:translateX(-8px)}}@keyframes escort-guard-strike{from{transform:translateX(0)}to{transform:translateX(7px)}}@media(prefers-reduced-motion:reduce){.escort-watch-fighter img{animation:none!important}}
.escort-decision{width:min(570px,94vw)}.escort-decision-prompt{color:#f4e1b7;font-size:14px}.escort-quality-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:12px 0}.escort-quality-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:107px;padding:5px 2px;border:1px solid #7a654c;background:#1b2025;transition:opacity .16s,box-shadow .16s}.escort-quality-card.is-current{border-color:#f8d288;box-shadow:0 0 0 2px #b7853e,0 0 22px #b9854c88;background:#33261b}.escort-quality-card.is-dim{opacity:.35;filter:grayscale(.55)}.escort-quality-card img{width:100%;height:65px;object-fit:contain}.escort-quality-card b{font-size:11px;color:#f8d694}.escort-quality-card small{color:#b9d6b6}.escort-quality-reward{padding:8px;border:1px solid #8e7042;background:#1a1511}.escort-quality-reward h3{margin:0 0 8px;color:#ffe0a4;font-size:15px}.escort-quality-reward>small{display:block;margin-top:6px;color:#b9ac8f;font-size:10px}.escort-decision footer{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.escort-decision footer button{padding:8px 14px}.escort-decision [data-confirm]{border-color:#f0bd62;background:#63401f;color:#fff1cb}
.escort-quality-cards.is-rolling .escort-quality-card{opacity:.38;filter:grayscale(.35)}.escort-quality-cards.is-rolling .escort-quality-card.is-rolling-current{opacity:1;filter:none;border-color:#ffe9a4;background:linear-gradient(145deg,#5d401b,#302415);box-shadow:0 0 0 2px #ffe29b,0 0 24px #f7b54c, inset 0 0 16px #ffd47a66;transform:translateY(-3px)}
.escort-quality-draw{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;min-height:38px;margin:-2px 0 10px;padding:6px 10px;overflow:hidden;border:1px solid #c79a53;background:linear-gradient(90deg,#241911,#684021,#241911);box-shadow:inset 0 0 18px #f0aa4b44,0 2px 11px #0008;color:#fff0c2;text-align:center;font-size:13px}.escort-quality-draw b{position:relative;z-index:1}.escort-quality-draw span{color:#ffe2a0;text-shadow:0 0 8px #ffbd5b;font-size:19px}.escort-quality-draw.is-spinning{border-color:#ffe09d;box-shadow:0 0 16px #eab36199,inset 0 0 22px #f7c66d77}.escort-quality-draw.is-spinning:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 12%,#fff1b255 48%,transparent 80%);animation:escort-quality-sweep .55s linear infinite}.escort-quality-draw.is-max{border-color:#e6c37a;background:linear-gradient(90deg,#3c2515,#a6742d,#3c2515)}@keyframes escort-quality-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.escort-quality-draw.is-spinning:before{animation:none}.escort-quality-cards.is-rolling .escort-quality-card.is-rolling-current{transform:none}}
.player-escort-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:8px 0}.player-escort-actions button{padding:8px 12px;border:1px solid #aa8453;background:#232319;color:#ffe0a0;font-weight:700}.player-escort-actions small{color:#c8b894;font-size:11px}.player-escort-actions [data-escort-active]{color:#f4d482;font-weight:700}.role-boss-attempts .role-escort-counters{position:static;grid-column:1/-1;display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:4px 5px;margin-top:2px;border-top:1px solid #8e714a;background:#1b1814a8;color:#f5d99a;font-size:9px;pointer-events:none}.role-escort-counters b{font-size:9px}.role-escort-counters small{color:#9fd6c0}
@media(max-width:540px){.escort-dialog{padding:10px}.escort-run-card{grid-template-columns:48px minmax(0,1fr);gap:5px}.escort-run-wagon{width:48px;height:42px}.escort-run-actions{grid-column:2;flex-direction:row;justify-content:flex-end}.escort-dialog-intro{align-items:flex-start;flex-direction:column}.escort-dialog-intro span{max-width:100%}.escort-reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.escort-scene-track i,.escort-scene-hp i{transition:none}}
.escort-reward-item i{width:24px;height:24px;display:grid;place-items:center;border:1px solid #a9854c;border-radius:50%;background:#5d3f1d;color:#ffdf91;font-size:14px;font-style:normal;font-weight:800}
.escort-reward-gold i{width:31px;border:0;border-radius:0;background:url('/game-assets/image/item/award.png') -33px 0/64px 46px no-repeat}
.escort-odds{margin:4px 0 9px;padding:5px 7px;border:1px solid #62523a;background:#111b22;color:#cbb792;font-size:10px;line-height:1.5}
.role-boss-attempts:has(.role-escort-counters){padding:6px 8px;gap:2px 5px}.role-boss-attempts .role-escort-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;white-space:nowrap;overflow:hidden}.role-boss-attempts .role-escort-counters b,.role-boss-attempts .role-escort-counters small{font-size:9px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:540px){.game-functions .escort-entry::before,.game-functions [data-game="shop"]::before{width:39px;height:36px;left:0;top:0;transform:none}}
