.ex-page{min-width:0;padding:18px 14px 0;overflow-wrap:anywhere}.ex-page h2{text-align:center;margin:0 0 12px}.ex-page svg{width:24px;height:24px;flex-shrink:0}.ex-status{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;padding:10px;border-radius:14px;background:var(--bg);font-size:14px}.ex-status b{display:flex;align-items:center;gap:4px}.ex-status svg{width:18px;height:18px;color:#ef4444}.ex-held{display:flex;gap:4px;flex-wrap:wrap;margin:7px 0}.ex-held button{position:relative;width:34px;height:34px;padding:6px;background:#b98639;color:#fff4d0;border-radius:50%}.ex-held sup{position:absolute;right:0;top:-3px}.ex-tools{display:flex;justify-content:space-around;gap:3px;margin:8px 0}.ex-tools button,.ex-intro .text-btn{font-size:13px;padding:7px;background:transparent;color:var(--muted)}.ex-intro{text-align:center}.ex-compass{font-size:72px;color:#d2a354}.ex-crest{display:inline-flex;align-items:center;justify-content:center;width:90px;height:90px;border-radius:28px;background:#856039;color:#ffe4aa;margin:16px}.ex-crest svg{width:52px;height:52px}.ex-rules{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.ex-rules>div{display:flex;align-items:center;flex-direction:column;gap:9px;padding:16px 10px;border-radius:16px;background:var(--bg);font-size:14px}.ex-rules svg{width:30px;height:30px;color:#d4a24c}.ex-options{display:grid;gap:10px;margin:16px 0}.ex-offer{display:flex;align-items:center;gap:10px;text-align:left;padding:13px 10px;border-radius:15px;background:var(--bg);color:var(--ink);width:100%;min-width:0}.ex-offer>span:nth-child(2){flex:1;min-width:0}.ex-offer b,.ex-offer small,.ex-bag-row small{display:block}.ex-offer small{margin-top:5px;font-size:13px;color:var(--muted)}.ex-item-art{display:flex;justify-content:center;align-items:center;flex:0 0 42px;width:42px;height:44px;color:#d2a354}.ex-item-art svg,.ex-item-art img{width:38px;height:38px;max-width:100%}.ex-offer strong{font-size:13px;display:flex;align-items:center;gap:3px}.ex-offer strong svg{width:16px}.ex-practice{display:block;text-align:center;color:var(--muted);padding:5px}.ex-map{position:relative;height:1050px;margin:16px -4px 0;border-radius:24px;color:#593b20;background:linear-gradient(105deg,#7f512e55,transparent 8%,transparent 91%,#70442188),radial-gradient(ellipse at 30% 30%,#fff3cb77,transparent 60%),url('../img/expedition-map.jpg') center/cover,#dec390;box-shadow:inset 0 0 26px #5f311b99,inset 0 0 4px 2px #6c3d25;overflow:hidden}.ex-map-compass{position:absolute;left:14px;top:6px;font-size:24px;color:#7d5635}.ex-edges{position:absolute;inset:0;width:100%!important;height:1050px!important;pointer-events:none}.ex-edges line{stroke:#815736;stroke-width:2;stroke-dasharray:4 6}.ex-edges line.walked{stroke:#a63129;stroke-width:3;stroke-dasharray:none}.ex-position{position:absolute;transform:translate(-50%,-50%);width:40px;height:40px}.ex-node{position:relative;width:38px;height:38px;padding:8px;border-radius:50%;color:#ead29c;background:#846040;border:3px solid #b58b57;box-shadow:0 3px 0 #56361d,0 0 0 1px #58391d}.ex-node svg{width:18px;height:18px}.ex-node small{position:absolute;bottom:-14px;left:0;right:0;text-align:center;font-size:10px;color:#593b20}.ex-node:disabled{opacity:.7;cursor:default}.ex-node.done{background:#a13c31;color:#ffe1ab;border-color:#cc7d51;opacity:1}.ex-node.available{background:#d99f40;border-color:#fff0ae;color:#4b2e17;animation:ex-pulse 1.8s infinite}.ex-node.here{box-shadow:0 0 0 3px #ab302d}.ex-walker{position:relative!important;display:inline-block;bottom:auto;left:auto;width:56px!important;height:56px;pointer-events:none;filter:drop-shadow(0 3px 2px #573b2866)}.ex-conquered{position:absolute;left:-10px;top:-10px;color:#b32d21;font-size:12px;transform:rotate(-15deg)}.ex-bag-row{display:flex;align-items:center;gap:5px;background:var(--bg);border-radius:12px;padding:7px}.ex-bag-row>span:nth-child(2){flex:1;font-size:13px}.ex-bag-row button{min-width:36px;padding:9px 5px;font-size:12px}.ex-ranking>div{display:flex;align-items:center;gap:12px;padding:10px 0}.ex-ranking .face{width:40px;height:40px}.ex-ranking small{display:block;color:var(--muted)}.ex-note{text-align:center;padding:40px 8px}.ex-page+.go-bar{flex-wrap:wrap}.ex-page+.go-bar p{margin:0 auto}.ex-page+.go-bar button{min-width:0;flex:1 1 90px}.ex-page+.go-bar{padding-bottom:max(12px,env(safe-area-inset-bottom))}@keyframes ex-pulse{50%{box-shadow:0 0 0 5px #fff0ae66,0 0 20px #f5b73d}}@media(prefers-reduced-motion:reduce){.ex-node.available{animation:none;outline:3px solid #fff0ae}}@media(max-width:340px){.ex-page{padding-left:8px;padding-right:8px}.ex-status{font-size:12px;gap:4px}.ex-node{width:34px;height:34px;padding:5px}.ex-position{width:34px;height:34px}.ex-tools button{font-size:12px}.ex-rules>div{padding:12px 8px;font-size:13px}}

.sheet:has(.ex-page)>.sheet-body{padding:10px 6px 6px}.sheet:has(.ex-page)>.go-bar{flex-wrap:wrap;padding-bottom:max(12px,env(safe-area-inset-bottom))}.sheet:has(.ex-page)>.go-bar button{min-width:0;flex:1 1 90px}.sheet:has(.ex-page)>.go-bar p{margin:0 auto}.ex-status{position:sticky;top:0;z-index:4;background:var(--bg)}.ex-held{position:sticky;top:48px;z-index:4;flex-wrap:nowrap;overflow-x:auto;background:var(--surface);touch-action:pan-x}.ex-held button{flex:0 0 34px}.ex-scout{font-size:13px;padding:10px;border-radius:12px;background:var(--bg)}

.ex-card{background:radial-gradient(ellipse at 0 0,#735330,#2c1d18 65%);box-shadow:inset 0 0 0 1px #bc985a66,0 8px 22px #0003}.ex-card-pic{display:grid;place-items:center;flex:none;width:64px;height:64px;border-radius:20px;background:linear-gradient(135deg,#d8af64,#85592f);color:#fff1ce;box-shadow:inset 0 1px #fff4,0 4px 12px #0004}.ex-card-pic svg{width:36px;height:36px}@media(max-width:340px){.ex-card-pic{width:54px;height:54px}.ex-card-pic svg{width:30px;height:30px}}

.ex-boss-thumb{position:absolute;left:40px;top:-4px;width:36px;height:36px;color:#7f3224;pointer-events:none}.ex-boss-thumb svg{width:36px;height:36px}.ex-position:has(.ex-boss-thumb) .ex-node{background:#a13c31;color:#ffe1ab}

/* The footer is outside the scroll body; the map needs no reserved footer gap. */
.sheet:has(.ex-map)>.sheet-body{padding-bottom:0;gap:0}.ex-page:has(.ex-map){padding-bottom:0}.ex-map{margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ex-player-position{position:absolute;z-index:3;transform:translate(-50%,-50%);width:62px;height:62px;pointer-events:none}.ex-player-position>small{display:block;color:#593b20;font-weight:700;font-size:11px;line-height:12px}.ex-position:has(.ex-boss-thumb){width:48px;height:48px}.ex-position:has(.ex-boss-thumb) .ex-node{width:46px;height:46px;padding:9px}.ex-position:has(.ex-boss-thumb) .ex-node svg{width:22px;height:22px}

.ex-walker .avatar-wpn svg{width:100%;height:100%}

.ex-position:has(.ex-boss-thumb) .ex-node{background:#efd09d;color:#b12721;border-color:#b84b35}

/* Link-only until released: the card stays out of the menu unless this device opened the link. */
#mode-expedition[hidden]{display:none}
