#expeditions-overlay { position:fixed; inset:0; z-index:78000; display:grid; place-items:center; box-sizing:border-box; padding:20px; background:#071a32b8; backdrop-filter:blur(4px); color:#613a24; font:15px/1.4 Arial,sans-serif; }
#expeditions-overlay[hidden] { display:none; }
#expeditions-overlay *,#expeditions-overlay *::before,#expeditions-overlay *::after { box-sizing:border-box; }
.ex-dialog { position:relative; display:flex; flex-direction:column; width:min(1100px,100%); max-height:calc(100dvh - 40px); min-width:0; padding:15px 22px 22px; border:9px solid #81421d; border-radius:28px; background:radial-gradient(ellipse at 50% 0,#fff9e9,#f7e4bf 65%,#edc996); box-shadow:0 0 0 2px #e1ad58,0 4px 0 4px #4b270f,0 18px 45px #03112788,inset 0 0 0 2px #efbd6a,inset 0 0 0 5px #fff3cc,inset 0 0 20px #c48a3e44; }
.ex-header { position:relative; display:flex; flex:none; align-items:center; justify-content:center; min-height:86px; }
.ex-header h2 { display:grid; place-items:center; width:min(430px,85%); height:86px; margin:0; padding:8px 25px 13px; background:url('assets/expeditions/ui/svg/title_wood_plaque.svg') center / contain no-repeat; color:#ffe8b5; text-shadow:0 2px 2px #40210d; font:700 34px/1.15 Georgia,serif; }
.ex-close { position:absolute; right:-24px; top:-16px; width:46px; height:46px; border:0; padding:0; background:url('assets/expeditions/ui/svg/close_circle.svg') center / contain no-repeat; cursor:pointer; }
.ex-content { min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; padding:4px 4px 6px; scrollbar-width:thin; scrollbar-color:#bb8c4a #f7e4bf; text-align:center; }
.ex-subtitle { max-width:680px; margin:2px auto 18px; font:16px/1.45 Arial,sans-serif; color:#80532e; }
.ex-routes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:2px; }
.ex-route { display:flex; flex-direction:column; min-width:0; padding:8px 8px 12px; border:2px solid #bf8d43; border-radius:20px; background:linear-gradient(#fff9e8,#f8e5c1); box-shadow:0 4px 6px #76451b28,inset 0 0 0 2px #fff2d2; }
.ex-route-art { display:block; width:100%; aspect-ratio:1.1; object-fit:cover; border:1px solid #d7ad65; border-radius:13px; box-shadow:0 2px 4px #75421d22; }
.ex-route-copy { display:flex; flex:1; flex-direction:column; align-items:center; min-width:0; gap:9px; padding:0 5px; }
.ex-route h3 { display:grid; place-items:center; align-self:stretch; min-width:0; min-height:46px; margin:9px 0 0; padding:0 1px; color:#683b20; font:700 19px/1.2 Georgia,serif; overflow-wrap:anywhere; }
.ex-route-time { display:flex; align-items:center; justify-content:center; gap:5px; font-size:15px; font-weight:700; }
.ex-route-time img { width:23px; height:23px; object-fit:contain; }
.ex-reward { display:flex; align-items:center; justify-content:center; gap:6px; margin:0 0 6px; }
.ex-reward strong { font:700 18px/1.3 Arial,sans-serif; white-space:nowrap; }
.ex-currency { flex:none; width:29px; height:29px; object-fit:contain; }
.ex-button { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:44px; padding:9px 12px; border:1px solid #a76820; border-radius:24px; background:linear-gradient(#fff3ad 0,#ffdc63 20%,#f5b62f 55%,#e7a01b 58%,#ffc33b); box-shadow:inset 0 0 0 2px #fff0a9,0 3px 0 #a65d1c,0 4px 7px #7e4b2430; color:#63370f; font:700 16px/1.25 Arial,sans-serif; text-shadow:0 1px #fff2b5; cursor:pointer; }
.ex-route .ex-button { margin-top:auto; }
.ex-button:disabled { color:#998b75; background:linear-gradient(#e8dfce,#d0c5b1); border-color:#baad94; box-shadow:inset 0 0 0 2px #eee7db; text-shadow:none; cursor:default; }
.ex-button:not(:disabled):hover { filter:brightness(1.05); }
.ex-button:focus-visible,.ex-close:focus-visible { outline:3px solid #2586ab; outline-offset:3px; }
.ex-tutorial { display:block; max-width:620px; margin:0 auto; }
.ex-intro-route { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:22px; padding:14px; }
.ex-intro-route .ex-route-art { aspect-ratio:1; }
.ex-intro-route .ex-route-copy { justify-content:center; gap:14px; padding:6px; }
.ex-intro-route h3 { min-height:0; margin:0; font-size:25px; }
.ex-intro-route .ex-button { margin-top:4px; }
#expeditions-overlay[data-variant="tutorial"] .ex-dialog { width:min(760px,100%); }
.ex-scene { position:relative; overflow:hidden; width:100%; max-width:800px; margin:0 auto 16px; border:3px solid #c09149; border-radius:18px; box-shadow:0 3px 6px #81512733; }
.ex-scene-art { display:block; width:100%; height:auto; }
#expeditions-overlay[data-state="reward"] .ex-scene { max-width:560px; }
.ex-state-title { margin:5px 0 8px; color:#683b20; font:700 29px/1.2 Georgia,serif; }
.ex-trip-details { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:16px; margin:8px 0; }
.ex-trip-details>strong { font:700 18px/1.3 Georgia,serif; }
.ex-trip-details .ex-reward { margin:0; }
.ex-timer-wrap { display:grid; justify-items:center; gap:5px; margin:12px 0; color:#8b623e; font-size:13px; }
.ex-timer { display:block; min-width:210px; padding:8px 24px; border:2px solid #ba8d4b; border-radius:14px; background:linear-gradient(#71401f,#48260f); box-shadow:inset 0 0 0 2px #f1cd8c,0 2px 3px #76451b33; color:#ffedbf; font:700 30px/1.2 Arial,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:2px; }
.ex-progress { position:relative; width:min(600px,92%); height:13px; margin:22px auto 18px; padding:2px; border:1px solid #ad7a3e; border-radius:12px; background:#c4a474; box-shadow:inset 0 2px 3px #5b361a50; }
.ex-progress-fill { display:block; height:100%; border-radius:12px; background:linear-gradient(#ffe38c,#e9b43e); }
.ex-sleigh-marker { position:absolute; top:-22px; width:36px; height:27px; transform:translateX(-50%); object-fit:contain; }
.ex-speedup,.ex-claim { width:min(330px,100%); min-height:47px; margin:12px auto 5px; }
.ex-hint { margin:8px 0 0; color:#946840; font-size:13px; }
.ex-status { margin:12px 0 0; font-size:13px; color:#62783e; }
.ex-status:empty { display:none; }
.ex-status.is-error { color:#9c472c; }
.ex-message { max-width:460px; margin:10px auto 24px; padding:12px 10px; line-height:1.65; }
.ex-retry { width:min(280px,100%); min-height:45px; margin:0 auto 8px; }
#expeditions-overlay[data-state="error"] .ex-dialog,#expeditions-overlay[data-state="loading"] .ex-dialog { width:min(620px,100%); }
#expeditions-overlay[data-state="active"] .ex-dialog,#expeditions-overlay[data-state="reward"] .ex-dialog { width:min(900px,100%); }
.ex-snow { position:absolute; inset:-50px 0; pointer-events:none; opacity:.4; background-image:radial-gradient(circle,#fff 1px,transparent 2px),radial-gradient(circle,#fff 1px,transparent 2px); background-size:79px 63px,137px 93px; background-position:0 0,35px 20px; animation:ex-snow 12s linear infinite; }
@keyframes ex-snow { to { transform:translateY(63px); } }
@media(max-height:720px) and (min-width:700px) {
 .ex-dialog { padding:8px 18px 15px; }
 .ex-header,.ex-header h2 { min-height:70px; height:70px; }
 .ex-header h2 { font-size:29px; width:340px; }
 .ex-subtitle { margin-bottom:12px; font-size:14px; }
 .ex-route-art { aspect-ratio:1.3; }
 .ex-route h3 { font-size:17px; }
 .ex-route-copy { gap:7px; }
 .ex-intro-route .ex-route-art { aspect-ratio:1.15; }
 .ex-intro-route h3 { font-size:24px; }
 .ex-scene { max-width:650px; }
 #expeditions-overlay[data-state="reward"] .ex-scene { max-width:480px; }
 .ex-scene { margin-bottom:10px; }
 .ex-state-title { font-size:25px; margin:3px 0; }
 .ex-timer-wrap { margin:8px 0; }
 .ex-progress { margin:19px auto 12px; }
}
@media(min-width:600px) and (max-width:900px) { .ex-routes:not(.ex-tutorial) { grid-template-columns:repeat(2,minmax(0,1fr)); } .ex-routes:not(.ex-tutorial) .ex-route { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:10px; } .ex-routes:not(.ex-tutorial) .ex-route-art { aspect-ratio:.9; } .ex-routes:not(.ex-tutorial) .ex-route-copy { gap:8px; } }
@media(max-width:599px) {
 #expeditions-overlay { padding:10px; }
 .ex-dialog { max-height:calc(100dvh - 20px); border-width:6px; border-radius:22px; padding:8px 9px 14px; }
 .ex-header { min-height:65px; }
 .ex-header h2 { height:65px; width:min(300px,88%); padding:6px 12px 10px; font-size:25px; }
 .ex-close { width:37px; height:37px; top:-8px; right:-13px; }
 .ex-content { padding:4px 2px; }
 .ex-subtitle { font-size:13px; margin-bottom:13px; }
 .ex-routes { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .ex-route { padding:5px 5px 9px; border-radius:15px; }
 .ex-route-art { border-radius:10px; aspect-ratio:1.1; }
 .ex-route-copy { padding:0 2px; gap:7px; }
 .ex-route h3 { min-height:40px; font-size:15px; margin-top:7px; }
 .ex-route-time { font-size:13px; }
 .ex-route-time img { width:19px; height:19px; }
 .ex-reward { gap:3px; margin-bottom:3px; }
 .ex-reward strong { font-size:14px; }
 .ex-currency { width:23px; height:23px; }
 .ex-button { min-height:39px; font-size:14px; padding:8px 9px; }
 .ex-intro-route { grid-template-columns:1fr; gap:12px; padding:10px 12px 14px; max-width:320px; margin:auto; }
 .ex-intro-route .ex-route-art { aspect-ratio:1.5; }
 .ex-intro-route .ex-route-copy { gap:11px; padding:0; }
 .ex-intro-route h3 { font-size:22px; min-height:0; margin:0; }
 .ex-intro-route .ex-reward strong { font-size:19px; }
 .ex-intro-route .ex-button { min-height:43px; }
 .ex-scene { border-width:2px; border-radius:13px; margin-bottom:12px; }
 .ex-state-title { font-size:25px; }
 .ex-trip-details { gap:5px; flex-direction:column; }
 .ex-timer { min-width:205px; font-size:28px; }
 .ex-speedup,.ex-claim { min-height:45px; font-size:14px; }
}
@media(max-height:450px) and (min-width:600px) { .ex-dialog { padding:3px 12px 12px; } .ex-header,.ex-header h2 { height:55px; min-height:55px; } .ex-header h2 { width:280px; font-size:25px; } .ex-scene { max-width:460px; } }
@media(prefers-reduced-motion:reduce) { .ex-snow { animation:none; } }
[data-effects="off"] .ex-snow { animation:none; }
