.map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0 14px;color:#174b40}
.map-toolbar>span{font-size:14px}.map-toolbar i{display:inline-block;width:14px;height:14px;background:#f5ce68;border:2px solid #8a5712;margin-right:8px;vertical-align:middle}
.map-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.map-toolbar button{min-width:44px;min-height:44px;border:1px solid #174b40;border-radius:8px;background:#fff9ea;color:#174b40;font:inherit;font-weight:700;cursor:pointer}.map-toolbar button:disabled{opacity:.4;cursor:default}.map-toolbar output{min-width:48px;text-align:center}
.map-viewport{width:100%;max-height:70vh;overflow:auto;border:1px solid #c6d3cb;border-radius:12px;background:#fff;overscroll-behavior:contain}
.map-canvas{position:relative;min-width:0;line-height:0}.map-canvas>img{display:block;width:100%;height:auto;max-width:none}
.map-hotspot{position:absolute;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #8a5712;border-radius:2px;background:#f9d56d;color:#302513;font:800 clamp(6px,1vw,13px)/1 sans-serif;cursor:pointer;box-shadow:0 0 0 1px #fff9}
.map-hotspot:hover,.map-hotspot[aria-pressed=true]{background:#a52b32;color:#fff;border-color:#fff;z-index:2;box-shadow:0 0 0 2px #a52b32}
.map-hotspot:focus-visible{outline:3px solid #143f36;outline-offset:3px;z-index:3}
.map-picker{margin-top:20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.map-picker label{font-weight:700;color:#174b40}.map-picker select{max-width:100%;min-height:48px;padding:8px 12px;background:#fffaf0;color:#174b40;border:1px solid #174b40;border-radius:8px;font:inherit}.map-picker p{flex-basis:100%;margin:0;font-size:13px}
.map-game-card[hidden]{display:none}.map-game-card{position:fixed;right:24px;bottom:24px;width:380px;max-width:calc(100vw - 32px);max-height:65dvh;overflow:auto;background:#fff9ec;color:#174b40;z-index:90;border:2px solid #174b40;border-radius:16px;box-shadow:0 12px 40px #143f3644}
.map-card-close{position:absolute;right:2px;top:2px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:0;background:transparent;color:#174b40;font:400 20px/1 sans-serif;text-shadow:0 0 3px #fff,0 0 6px #fff;cursor:pointer;z-index:1}
.map-card-close:hover{background:transparent;color:#a52b32}
.map-card-close:focus-visible{outline:2px solid #174b40;outline-offset:-3px}
#map-card-link{display:block;line-height:0}
#map-card-link:focus-visible{outline:3px solid #f9d56d;outline-offset:-4px}
#map-card-image{display:block;width:100%;height:auto;max-height:60dvh;object-fit:contain}
@media(max-width:600px){.map-game-card{right:16px;bottom:16px;max-height:45dvh;width:330px}#map-card-image{max-height:42dvh}.map-toolbar b{display:block;margin-left:26px}.map-picker select{width:100%}}

body:has(#map-game-card:not([hidden])) .scroll-hint,
body:has(#map-game-card:not([hidden])) .back-to-top{display:none!important}

.map-viewport{height:clamp(280px,65svh,640px);max-height:none}
.map-viewport.map-is-full{height:auto;max-height:none}
.map-toolbar #map-reset,.map-toolbar #map-focus{padding-inline:12px}
.map-shade{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.map-hotspot{z-index:2}
.map-canvas{container-type:inline-size}
.map-hotspot{font-size:1.1cqw;line-height:1}

/* Keep the selected game anchored below the participating booth rows. */
.map-canvas .map-game-card{position:absolute;right:auto;bottom:auto;max-width:none;max-height:none;z-index:4;line-height:normal}
.map-canvas #map-card-image{max-height:none}
