main.map-workspace-shell { grid-template-rows: minmax(0,1fr); padding: 0; }
.map-workspace-shell > .board-header, .map-workspace-shell > .toolbar, .map-workspace-shell > footer { display: none; }
.map-workspace-shell #boardPanel { height: 100%; overflow: hidden; }
.map-page.hex-map { display: flex; flex-direction: column; height: 100%; min-width: 0; background: var(--workshop-board); }
.hex-map .hex-header { padding: 30px 30px 14px; }
.hex-map .hex-header h2 { margin: 12px 0; color: var(--bright); font: 600 clamp(26px,3vw,42px)/1.2 var(--font-sans); letter-spacing: -1px; }
.hex-map p { color: var(--muted); font: 12px/1.8 var(--font-sans); }
.hex-map .hex-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 30px 16px; }
.hex-map button:not(.hex-tile) { border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); min-width: 38px; min-height: 38px; cursor: pointer; }
.hex-map .hex-viewport { position: relative; flex: 1; min-height: 180px; overflow: auto; overscroll-behavior: contain; border-block: 1px solid var(--line); background-image: radial-gradient(var(--workshop-grid) 1px, transparent 1px); background-size: 22px 22px; }
.hex-map .hex-world { position: relative; margin: auto; }
.hex-map .hex-canvas { position: absolute; width: 900px; height: 760px; transform-origin: top left; }
.hex-map .hex-tile { --tile-surface: var(--surface); position: absolute; width: var(--hex-width); height: var(--hex-height); padding: 0; border: 0; border-radius: 0; background: transparent; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.hex-map .hex-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 18px 12px; background: var(--tile-surface); clip-path: inherit; }
.hex-map .hex-empty { opacity: .65; }
.hex-map .hex-land-mark { color: var(--workshop-grid); font-size: 30px; }
.hex-map .hex-filled { cursor: pointer; transition: filter var(--duration-ui); color: var(--workshop-ink); }
.hex-map .hex-filled:hover, .hex-map .hex-filled:focus-visible { filter: brightness(1.2); outline: none; }
.hex-map .hex-filled:focus-visible strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: var(--focus-width); text-underline-offset: 4px; }
.hex-map .hex-filled strong { text-align: center; font: 650 13px/1.3 var(--font-sans); }
.hex-map .hex-filled small { font: 7px/1.3 var(--font-mono); letter-spacing: .5px; }
.hex-map .hex-symbol { font: 28px/1 var(--font-sans); }
.hex-map .hex-lilac { --tile-surface: var(--workshop-lilac); }
.hex-map .hex-pink { --tile-surface: var(--workshop-pink); }
.hex-map .hex-lime, .hex-map .hex-green { --tile-surface: var(--workshop-lime); }
.hex-map .hex-paper { --tile-surface: var(--workshop-paper); }
.hex-map .hex-legend { padding: 12px 30px; font-size: 10px; }
.hex-map .hex-dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 28px; width: min(520px,calc(100vw - 32px)); }
.hex-map .hex-close { display: block; margin-left: auto; padding: 6px 12px; }
.hex-map .hex-dialog h2 { margin: 14px 0; color: var(--bright); }
.hex-map .hex-link { display: inline-block; color: var(--accent); margin-top: 20px; }
@media (max-width: 650px) {
  .hex-map .hex-header { padding: 20px 16px 12px; }
  .hex-map .hex-toolbar { padding: 0 16px 12px; }
  .hex-map .hex-legend { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { .hex-map .hex-filled { transition: none; } }

.hex-map .hex-region-label { position: absolute; z-index: 4; transform: translate(-50%,-50%); padding: 8px 12px; border: 1px dashed var(--muted); border-radius: var(--radius-control); background: var(--workshop-board); color: var(--bright); font: 500 12px var(--font-sans); white-space: nowrap; pointer-events: none; }

.hex-map .hex-viewport { cursor: grab; user-select: none; }
.hex-map .hex-viewport.is-dragging, .hex-map .hex-viewport.is-dragging .hex-filled { cursor: grabbing; }
/* MAP: background annotations live below the independently movable tiles. */
.map-page { position: relative; }
.map-page .hex-viewport { border: 0; touch-action: none; }
.map-page .hex-canvas { width: 8000px; height: 8000px; }
.map-page .hex-header { position: absolute; width: 720px; z-index: 0; padding: 0; pointer-events: none; }
.map-page .hex-header h2 { font-size: 44px; }
.map-page .map-region-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.map-page .hex-region-label { z-index: 0; font-size: 18px; background: transparent; border: 0; }
.map-page .map-land { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.map-page .hex-empty { opacity: .45; }
.map-page .map-content { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.map-page .hex-filled { pointer-events: auto; cursor: grab; }
.map-page [data-id="me"] { cursor: pointer; }
.map-page .map-tile-dragging { z-index: 4; cursor: grabbing; transform: none; filter: drop-shadow(0 8px 8px var(--workshop-tape)); }
.map-page .map-drop-invalid { opacity: .55; }
.map-page > .hex-controls { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.map-page .map-feedback { position: absolute; left: 20px; bottom: 20px; max-width: min(480px,calc(100% - 280px)); margin: 0; font-size: 10px; pointer-events: none; z-index: 3; background: var(--workshop-board); }
@media (max-width: 650px) {
  .map-page .map-feedback { right: 20px; bottom: 84px; max-width: none; }
}
/* Work in progress and achieved results share the site's semantic palette. */
.map-page .hex-filled[data-state="pending"] { background: transparent; color: var(--ink); }
.map-page .hex-filled[data-state="pending"] .hex-face { background: var(--surface); }
.map-page .hex-filled[data-state="done"] { color: var(--bright); }
.map-page .hex-filled[data-state="done"] .hex-face { background: var(--accent-surface); }
.map-page .hex-filled[data-state="done"] .hex-symbol, .map-page .hex-filled[data-state="done"] small { color: var(--accent); }
/* One canonical edge above both fills hides clipping antialiasing at every seam. */
.map-page .map-shared-edges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.map-page .map-shared-edges path, .map-page .map-drag-outline polygon { fill: none; stroke: var(--workshop-grid); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-page .map-shared-edges [data-state="empty"] { stroke-opacity: .45; }
.map-page .map-shared-edges [data-state="region"] { stroke: var(--muted); stroke-opacity: .75; }
.map-page .map-shared-edges [data-state="pending"], .map-page .map-shared-edges [data-state="region"], .map-page [data-state="pending"] .map-drag-outline polygon { stroke: var(--muted); stroke-dasharray: var(--hex-edge-dash) var(--hex-edge-dash); }
.map-page .map-shared-edges [data-state="done"], .map-page [data-state="done"] .map-drag-outline polygon { stroke: var(--accent); stroke-width: 3; }
.map-page .map-drag-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-page .map-state-legend { position: absolute; top: 16px; left: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: calc(100% - 40px); padding: 8px 12px; background: var(--surface); color: var(--ink); font: 11px/1.6 var(--font-sans); z-index: 3; pointer-events: none; }
.map-page .map-detail-records { max-height: 55dvh; overflow: auto; }
.map-page .map-detail-record { padding: 14px 0; border-top: 1px solid var(--line); }
.map-page .map-detail-record h3 { color: var(--bright); font: 600 15px/1.5 var(--font-sans); }
.map-page .map-detail-record p { white-space: pre-wrap; overflow-wrap: anywhere; }

.map-page .map-award-logo { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; user-select: none; pointer-events: none; }
