#dialog.map-dialog { width:min(760px,94vw); max-height:91dvh; padding:18px clamp(13px,3vw,29px); overflow:auto }
.map-dialog .seal { display:none }
.map-dialog h2 { margin:0 0 4px }
.map-dialog #dialogText { margin:0 0 12px }
#atlas { list-style:none; padding:0; margin:0 0 17px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:11px }
#atlas[hidden] { display:none }
#atlas li { text-align:left; padding:0 0 5px; overflow:hidden; border-radius:10px; border:2px solid #d8d7bf; background:#fbf8e9 }
#atlas li.here { border-color:#257463; box-shadow:0 0 0 2px #88bb93 }
#atlas canvas { width:100%; height:55px; display:block }
#atlas b,#atlas small { display:block; margin:5px 5px 0; font-size:12px }
#atlas small { font-size:10px; margin-top:2px; color:#555d53 }
#atlas .here small { color:#146047; font-weight:bold }
@media(max-width:580px) { #atlas { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px } #atlas canvas {height:31px} #atlas b {margin-top:2px} }

#dialog.won {
  background:radial-gradient(ellipse at 50% -25%,#ffe4a0,transparent 65%),#fffae9;
  border-color:#b38b43;
}
#dialog.won .seal {filter:drop-shadow(0 4px 3px #b191444d);font-size:43px}
@media(prefers-reduced-motion:no-preference) {
  #dialog.won[open] .seal {animation:prize .58s ease-out both}
  @keyframes prize {0%{transform:scale(.55) rotate(-12deg)} 60%{transform:scale(1.14) rotate(5deg)} 100%{transform:none}}
}

#lastPick {display:flex; align-items:center; justify-content:center; gap:15px; margin:12px auto; padding:10px; color:#31433d; background:#edeedc; border-radius:16px; text-align:left; font-size:14px; line-height:1.55}
#lastPick[hidden] {display:none}
.result-pill {display:inline-grid;place-items:center;min-width:49px;height:28px;border-radius:18px;transform:rotate(-15deg);color:white;font:bold 17px/1 sans-serif;border:2px solid white;box-shadow:inset 15px 0 #fff3,0 2px 3px #26382b55}
@media(max-width:750px) { .turn {min-height:44px} .turn strong {line-height:17px} }
