/* Match each interactive cell to exactly 100 SVG units, with no padding or gaps. */
.world-board{position:relative;aspect-ratio:13/11;min-width:315px;isolation:isolate;background:#11191c;overflow:hidden}
.world-cartography{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:0}
.world-board>.world-grid{position:absolute;inset:0;z-index:1;display:grid;grid-template-columns:repeat(var(--cols,13),minmax(0,1fr));grid-template-rows:repeat(11,minmax(0,1fr));gap:0;padding:0;min-width:0;background:none!important;isolation:auto}
.world-board .world-cell,.world-board .world-rock{aspect-ratio:auto;min-height:0;min-width:0;border:0;border-radius:0;background:none!important;box-shadow:none;filter:none;padding:0;margin:0}
.world-board .world-rock{pointer-events:none}
.world-board .world-cell{color:#e8ddba;text-shadow:0 2px 3px #000,0 0 6px #000;font-size:clamp(.65rem,1.3vw,1.1rem);outline:none;transition:box-shadow .12s ease}
.world-board .world-cell:hover{box-shadow:inset 0 0 0 2px #ead49c75,inset 0 0 24px #e1c58b26;border-radius:12%;color:#fff4c9}
.world-board .world-cell:focus-visible{outline:3px solid #f0ddb1;outline-offset:-5px;z-index:3;border-radius:12%;box-shadow:inset 0 0 20px #e1c58b55}
.world-board .world-cell.is-path{box-shadow:inset 0 0 20px #e8c45c38;outline:1px solid #f0d2727a;outline-offset:-12px;border-radius:50%}
.world-board .world-cell.is-selected{outline:2px solid #f8efc5;outline-offset:-9px;border-radius:50%}
.world-board .world-cell.is-here{color:#d7fff0;text-shadow:0 0 9px #9bffe0,0 2px 5px #000}
.world-board .world-cell.is-gate{color:#f6d385}
.world-board .world-cell.is-landmark{color:#e4d9b1}
.cartography-link{fill:none;stroke:#d8ca9a;stroke-width:2.4;stroke-opacity:.34;stroke-linecap:round}
.cartography-node{fill:#17221f;fill-opacity:.38;stroke:#d8ca9a;stroke-width:1.3;stroke-opacity:.48}
@media(prefers-reduced-motion:reduce){.world-board .world-cell{transition:none}}

.world-walker{position:absolute;z-index:2;pointer-events:none;transform:translate(-50%,-50%);line-height:0;filter:drop-shadow(1px 2px 1.2px #000a)}
.world-walker svg{display:block;width:100%;height:auto;overflow:visible}

.world-board .cartography-network{display:none}
.world-board .meadow-sign{position:absolute;z-index:5;transform:translate(-50%,-100%);padding:0 0 9px;border:0;background:transparent;box-shadow:none;color:#ffeac0;font:bold clamp(10px,1vw,14px) Georgia,serif;text-shadow:0 1px 2px #210f06;white-space:nowrap;filter:drop-shadow(1px 3px 2px #1e170f99)}
.meadow-sign:before{content:"";position:absolute;bottom:0;left:48%;width:6px;height:13px;background:linear-gradient(90deg,#3d2816,#987345,#4d321a)}
.meadow-sign span{position:relative;display:block;padding:4px 12px 4px 8px;clip-path:polygon(0 0,91% 0,100% 50%,91% 100%,0 100%);border-block:1px solid #bc9559;background:repeating-linear-gradient(2deg,#614122 0 3px,#704d2a 4px,#50341c 6px)}
.meadow-sign:hover span,.meadow-sign:focus-visible span{color:white;filter:brightness(1.3)}

.world-board .meadow-sign{max-width:32%;white-space:normal;line-height:1.05}

/* Slow cloud shadows on open ground, reflected light in the deeper expeditions. */
.world-board::before,.argald-chart::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background-image:radial-gradient(ellipse at 26% 34%,#252c3340,transparent 39%),radial-gradient(ellipse at 75% 62%,#ffe8a017,transparent 36%);
  background-size:174% 135%;animation:field-cloud-drift 38s ease-in-out alternate infinite;
}
.world-board:is([data-map-id$="-3"],[data-map-id$="-4"])::before{
  background-image:radial-gradient(ellipse at 65% 50%,#b0cdd51b,transparent 43%),radial-gradient(ellipse at 30% 68%,#d5a86817,transparent 25%);
  animation-duration:25s;
}
@keyframes field-cloud-drift{from{background-position:10% 22%}to{background-position:91% 69%}}
@media(prefers-reduced-motion:reduce){.world-board::before,.argald-chart::before{animation:none;opacity:.4}}

.world-board .world-walker{z-index:6;aspect-ratio:1}
.world-walker::before{content:"";position:absolute;inset:19%;border-radius:50%;border:2px solid #fff0bc;background:radial-gradient(circle,#ffedb814 48%,#ffe19a44);box-shadow:0 0 5px #ffe9a6aa,0 0 12px #ffdb845c,inset 0 0 6px #fff5cb57;pointer-events:none}
.world-walker svg{position:relative}
.world-board .world-cell.is-gate{position:relative}
.world-cell.is-gate::before{content:"";position:absolute;inset:13%;border-radius:50%;border:1px solid #ffe4a49c;background:radial-gradient(circle,transparent 40%,#ffcd6555 70%,transparent);box-shadow:0 0 12px #ffcf746b,inset 0 0 8px #ffcc736e;pointer-events:none;animation:gate-light 2.6s ease-in-out infinite alternate}
@keyframes gate-light{from{opacity:.62}to{opacity:1}}
.world-board .meadow-sign{--sign-x:-50%;transform:translate(var(--sign-x),calc(-100% - 3.9cqw))}
.world-board{container-type:inline-size}
.world-board .sign-below{transform:translate(var(--sign-x),3.9cqw);padding:8px 0 0}
.sign-below::before{bottom:auto;top:0}
.world-board .sign-left{--sign-x:-12%}.world-board .sign-right{--sign-x:-88%}
@media(prefers-reduced-motion:reduce){.world-cell.is-gate::before{animation:none}}

.map-action-strip{position:absolute;z-index:7;right:2%;bottom:3%;display:flex;align-items:end;gap:clamp(3px,1cqw,12px);pointer-events:none}
.expedition-map .map-action-strip>button{--nx-emblem-size:clamp(42px,7cqw,64px);display:flex;flex-direction:column;align-items:center;justify-content:end;width:auto;min-width:0;min-height:0;padding:2px 3px;gap:1px;border:0;background:transparent;box-shadow:none;color:#ffedc8;font:bold clamp(9px,1.4cqw,13px) Georgia,serif;text-shadow:0 1px 3px #000,0 0 4px #000;pointer-events:auto}
.expedition-map .map-action-strip>button:focus-visible{outline:2px solid #ffe2a1;outline-offset:1px}

.world-board .is-walk-step{position:relative}
/* A tile stays the same physical size while the camera follows the walker. */
.expedition .world-grid-scroll{--cell:60px;width:100%;max-width:calc(9 * var(--cell));height:min(58vh,420px);margin-inline:auto;overflow:hidden;position:relative;box-sizing:border-box}
.expedition .world-board{width:calc(var(--board-cols) * var(--cell));height:calc(var(--board-rows) * var(--cell));max-width:none;aspect-ratio:auto;box-sizing:content-box;border:0}
.expedition .world-board>.world-grid{grid-template-rows:repeat(var(--board-rows),minmax(0,1fr))}
.expedition .world-cell.is-walk-step::before,.expedition .world-cell.is-here::before{content:"";position:absolute;inset:2px;border:1px solid #d7cdb331;border-radius:3px;box-shadow:inset 0 0 2px #261e1660;background:transparent}
.expedition .world-cell.is-here{position:relative}
.expedition .world-fog{background:#101414;pointer-events:none}
.expedition-map>.map-action-strip{position:static;justify-content:center;pointer-events:auto;padding:.3rem 0;gap:.8rem}
.expedition-map>.map-action-strip>button{color:#eddfbc;--nx-emblem-size:40px;font-size:.78rem;pointer-events:auto}
