/* Alliance Wars - expedition trail panel (client/panels/expeditions.js + expTrail.js). Art overrides: docs/ART_TODO.md "Expedition trail". */
.ext { display: flex; flex-direction: column; gap: 10px; }
.ext h3 { color: #ffe7a8; text-shadow: 0 2px 0 #0b0f18; font-size: 19px; }
.ext small { font-size: 13px; color: var(--ink2); line-height: 1.3; }
.ext-intro, .ext-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(160deg, #3b4a2a, #1f2a1c); border: 2px solid #0c1019; box-shadow: inset 0 0 0 1px rgba(233,199,106,.35), 0 3px 0 rgba(0,0,0,.35); }
.ext-intro .ic.lg { width: 48px; height: 48px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.ext-head { box-shadow: inset 0 0 0 1px rgba(233,199,106,.35), inset 4px 0 0 var(--kc), 0 3px 0 rgba(0,0,0,.35); }
.ext-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ext-ht small { font-size: 14px; font-weight: 700; }
.ext-time { display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.45); color: var(--gold); font-weight: 900; font-size: 15px; }
/* road picker */
.ex-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ex-kind { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 9px; border-radius: 14px; text-align: center; min-height: 104px; color: var(--ink); font: inherit;
  background: linear-gradient(175deg, #2e3a5a, #1d2539); border: 2px solid #0c1019; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 rgba(0,0,0,.35); transition: transform .15s; }
.ex-kic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--kc) 55%, #fff 0%), #141a28 75%); }
.ex-kind .ic.lg { width: 42px; height: 42px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.6)); }
.ex-kind b { font-size: 13px; line-height: 1.1; } .ex-kind small { font-size: 11.5px; color: var(--mute); line-height: 1.2; }
.ex-kind.on { border-color: var(--kc); box-shadow: 0 0 0 2px var(--kc), 0 0 14px color-mix(in srgb, var(--kc) 60%, transparent); transform: translateY(-2px); }
@media (max-width: 370px) { .ex-kind small { display: none; } .ex-kind { min-height: 84px; } }
/* the trail */
.ext-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 3px solid #2a1d10; background: #4f7d3c;
  box-shadow: inset 0 0 0 2px rgba(233,199,106,.45), 0 0 0 2px #0c1019, 0 8px 18px rgba(0,0,0,.5); }
.ext-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 17px; box-shadow: inset 0 0 26px rgba(20,12,4,.55); }
.ext-map { display: block; width: 100%; height: auto; aspect-ratio: 360 / 600; }
.ext-num { font: 900 14px var(--pix); text-anchor: middle; fill: #2a1d10; } .ext-num.locked { fill: #c9c6cf; } .ext-num.done { fill: #1f5a2e; font-size: 15px; }
.ext-st.locked { opacity: .92; } .ext-st.boss { filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)); }
.ext-st circle, .ext-st path { filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.ext-pulse { fill: none; stroke: #ffe7a8; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ext-pulse 1.6s ease-out infinite; }
.ext-lord { transition: transform .95s linear; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); }
.ext-lord-in.walk { animation: ext-step .5s ease-in-out infinite alternate; }
.ext-march { animation: ext-march .8s linear infinite; }
.ext-flow { animation: ext-flow 2.4s linear infinite; }
.ext-clouds { animation: ext-drift 26s ease-in-out infinite alternate; }
.ext-fire { transform-box: fill-box; transform-origin: 50% 100%; animation: ext-fire .35s ease-in-out infinite alternate; }
.ext-win { animation: ext-win 1.8s ease-in-out infinite alternate; }
.ext-flag { transform-box: fill-box; transform-origin: 0 100%; animation: ext-wave 1.2s ease-in-out infinite alternate; }
.ext-rw image { image-rendering: auto; }
@keyframes ext-pulse { from { opacity: .95; transform: scale(.9); } to { opacity: 0; transform: scale(1.9); } }
@keyframes ext-step { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-4px) rotate(4deg); } }
@keyframes ext-march { to { stroke-dashoffset: -24; } }
@keyframes ext-flow { to { stroke-dashoffset: -56; } }
@keyframes ext-drift { to { transform: translateX(46px); } }
@keyframes ext-fire { to { transform: scale(.85, 1.15); } }
@keyframes ext-win { to { opacity: .45; } }
@keyframes ext-wave { to { transform: skewY(-8deg) scaleX(.9); } }
/* overlays on the map */
.ext-banner { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); padding: 5px 22px; border-radius: 6px; font: 900 15px var(--pix); color: #3b2a1a; white-space: nowrap;
  background: linear-gradient(#f3dfae, #d9bb7c); border: 2px solid #6b4a24; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.ext-head { flex-wrap: wrap; }
.ext-hp { flex: 1 0 100%; display: flex; align-items: center; gap: 7px; padding: 4px 4px 4px 8px; border-radius: 14px; background: rgba(0,0,0,.35); }
.ext-heart { color: #ff5a6a; font-size: 20px; line-height: 1; text-shadow: 0 2px 0 #4a0f18; }
.ext-hpbar { position: relative; flex: 1; height: 22px; border-radius: 999px; background: #2a1c22; border: 2px solid #0c1019; overflow: hidden; }
.ext-hpbar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; box-shadow: inset 0 3px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.2); transition: width .6s; }
.ext-hpbar b { position: relative; display: block; text-align: center; line-height: 18px; font-size: 13.5px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.ext-hp .btn { min-height: 34px; padding: 0 10px; }
/* below the map */
.ext-risk { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 12px; background: rgba(224,87,77,.12); border: 1.5px solid rgba(224,87,77,.45); }
.ext-go, .ext-btns { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; background: rgba(34,44,65,.96); border: 2px solid #11161f; box-shadow: 0 -6px 14px rgba(18,24,38,.8); font-weight: 800; }
.ext-go .btn, .ext-btns .btn:not(.wide) { min-width: 116px; min-height: 48px; font-size: 17px; }
.ext-btns:has(.wide) { padding: 0; background: none; border: 0; } .ext-btns .wide { min-height: 52px; font-size: 18px; }
.ext-next { display: flex; align-items: center; gap: 5px; color: var(--ink2); } .ext-next b { color: var(--ink); }
.ext-fell { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(224,87,77,.15); border: 2px solid #e0574d; } .ext-fell b { color: #ff8a7a; }
.ext .sec-title { margin: 6px 2px 0; }
.ext-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ext-tile { position: relative; min-height: 76px; padding: 18px 2px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px;
  background: linear-gradient(170deg, #2e3a58, #1d2538); border: 2px solid #0c1019; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 rgba(0,0,0,.35); overflow: hidden; }
.ext-tile .chips { justify-content: center; gap: 2px; } .ext-tile .chip { flex-direction: column; gap: 1px; padding: 0; background: none; box-shadow: none; font-size: 13px; }
.ext-tile .chip .ic { width: 32px; height: 32px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.55)); }
.ext-tile .chip b { text-shadow: 0 1px 0 #000; line-height: 1; }
.ext-tn { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 900; line-height: 16px; background: rgba(0,0,0,.4); color: var(--ink2); }
.ext-tile.got { border-color: #2e8a4a; background: linear-gradient(170deg, #24452f, #182a20); } .ext-tile.got .ext-tn { background: #2e8a4a; color: #e6ffe9; }
.ext-tick { position: absolute; right: 3px; bottom: 2px; color: #6ee38a; font-weight: 900; font-size: 15px; text-shadow: 0 1px 0 #000; }
.ext-tile.next { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 12px rgba(245,198,60,.45); } .ext-tile.next .ext-tn { background: var(--gold); color: #3b2a1a; }
.ext-tile.locked .chips { filter: saturate(.35) brightness(.7); }
.ext-tlock { position: absolute; right: 3px; bottom: 3px; opacity: .75; } .ext-tlock .ic { width: 13px; height: 13px; }
.ext-tile.boss { background: radial-gradient(circle at 50% 60%, #6a2a3a, #2a1620 80%); border-color: #b8323f; } .ext-tile.boss .ext-tn { background: #b8323f; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .ext-pulse, .ext-lord-in.walk, .ext-march, .ext-flow, .ext-clouds, .ext-fire, .ext-win, .ext-flag { animation: none; }
  .ext-lord, .ext-hpbar i, .ex-kind { transition: none; }
}
/* expedition gear + caravan (client/panels/expGear.js): empty slots read as empty, even price buttons */
.xg-slot .card.muted .ic { opacity: .4; filter: grayscale(.85); }
.xg .card.row .btn.small.gold { min-width: 76px; justify-content: center; flex: none; }
