.grid { grid-template-areas: "msg map" "puz map"; grid-template-rows: auto auto; align-content: center; row-gap: 40px; }
#msg { grid-area: msg; align-self: end; }
.puz { grid-area: puz; align-self: start; }
.map { grid-area: map; width: 100%; aspect-ratio: 570 / 380; height: auto; overflow: visible; }
.map .ring { fill: none; stroke: var(--contour); stroke-width: .9; }
.map .ring.i { stroke: var(--contour-strong); stroke-width: 1; }
.map .ahead { fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-dasharray: 1 7; stroke-linecap: round; }
.map .walked { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.map .pole { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.map .pen { fill: var(--ink); }
.map .todo .pole { stroke: var(--dim); }
.map .todo .pen { fill: none; stroke: var(--dim); stroke-width: 1.2; }
.map .summit .pen { fill: var(--red); stroke: none; }
.map .summit.todo .pen { opacity: .45; }
.map text { font: 500 14px Mono, monospace; fill: var(--mute); paint-order: stroke; stroke: var(--bg); stroke-width: 3; }
.map .done text, .map .start { fill: var(--ink); }
.map .dot { fill: var(--ink); }
.map .halo { fill: var(--ink); opacity: .15; transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
@keyframes halo { from { transform: scale(.6); opacity: .3; } to { transform: scale(2.2); opacity: 0; } }
.found .summit .pen { animation: wave .5s ease-in-out 4 alternate; transform-box: fill-box; transform-origin: left center; opacity: 1; }
@keyframes wave { to { transform: scaleX(.78) skewY(-6deg); } }

.puz p { margin-top: 4px; }
.row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.say { margin-top: 12px; font-size: 14px; }
.say:empty { display: none; }
.say.ok { color: var(--green); }
@media (max-width: 760px) {
  .grid { grid-template-areas: "msg" "map" "puz"; row-gap: 24px; }
  .map { margin: -8px -16px 0; width: calc(100% + 32px); }
}
