.dungeon-map-viewport { overflow:auto; max-width:100%; max-height:65vh; border:1px solid var(--bs-border-color); background:#222; overscroll-behavior:contain; }
.dungeon-map-viewport:focus-visible { outline:3px solid var(--bs-primary); outline-offset:2px; }
.dungeon-map-canvas { position:relative; width:calc(var(--map-columns) * var(--map-tile)); height:calc(var(--map-rows) * var(--map-tile)); background:repeating-conic-gradient(#282828 0% 25%, #343434 0% 50%) 0 0 / 32px 32px; }
.dungeon-map-tile { position:absolute; left:calc(var(--map-column) * var(--map-tile)); top:calc(var(--map-row) * var(--map-tile)); width:var(--map-tile); height:var(--map-tile); font-size:.7rem; color:#fff; overflow:hidden; }
.dungeon-map-tile img { width:100%; height:100%; display:block; }
