/* Layout shared by every design: the map is the whole stage, the photo floats over
   its top-left corner (mostly Utah Lake), and the message bar floats along the bottom.
   Each design page adds its own look and photo shape on top. */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; display: flex; flex-direction: column; overflow: hidden; width: 100%; }
header, main { min-width: 0; }
button { font: inherit; cursor: pointer; }

main { flex: 1; min-height: 0; position: relative; z-index: 1; margin: 14px 18px 18px; }
.map-card { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
#map { flex: 1; min-height: 0; }

.photo-card { position: absolute; top: 18px; left: 18px; width: min(40%, 540px); z-index: 5; transition: width .25s ease; }
.photo-card.mini { width: 150px; }
.photo-card.mini #credit { display: none; }
#photo { aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
#photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#credit { font-size: 11px; padding: 5px 8px; }
#credit a { color: inherit; }
#photoToggle { position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; font-weight: 800; line-height: 1; }

#bar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(680px, calc(100% - 36px)); z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
#msg { flex: 1; min-width: 0; }
#msg .big { font-weight: 700; font-size: 17px; }
#msg .sub { font-size: 13px; opacity: .75; }
#btn { flex: none; }
#btn:disabled { opacity: .45; cursor: default; }
.maplibregl-ctrl-bottom-right { bottom: 88px; }

.landmark { display: flex; align-items: center; gap: 3px; pointer-events: none; }
.landmark i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #fff; }
.landmark span { display: none; border-radius: 4px; padding: 0 4px; font-size: 9.5px; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.show-landmarks .landmark span { display: inline; }
.pin svg { width: 30px; height: 46px; display: block; filter: drop-shadow(1px 2px 1px #0005); }

.ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.22em; }
.ico img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.tiers { list-style: none; padding: 0; margin: 12px 0 0; }
.tiers li { padding: 3px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.modal.open { display: flex; }
.sheet { max-width: 420px; width: 100%; padding: 22px; position: relative; }
.sheet h2 { margin: 0 0 10px; }
.sheet .x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 24px; }
.final { font-size: 46px; font-weight: 800; margin: 4px 0; }
.final small { font-size: 18px; opacity: .7; }
.emojis { font-size: 30px; display: flex; gap: 8px; margin: 8px 0 6px; }
.note { font-size: 12px; opacity: .75; margin: 0 0 14px; }
#lightbox { position: fixed; inset: 0; background: #000e; display: none; align-items: center; justify-content: center; z-index: 21; overflow: hidden; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; cursor: zoom-in; transition: transform .2s ease; touch-action: none; }
#lightbox img.zoomed { transform: scale(2.5); cursor: zoom-out; }
#lightbox .lb-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fffe; color: #222; font-size: 26px; line-height: 1; z-index: 2; }

@media (max-width: 760px) {
  main { margin: 8px; }
  header { flex-wrap: wrap; row-gap: 6px; }
  #round, #score { font-size: 11.5px !important; }
  .photo-card { top: 10px; left: 10px; width: 62%; }
  .photo-card.mini { width: 110px; }
  #bar { bottom: 10px; width: calc(100% - 20px); padding: 8px 10px; }
  #msg .big { font-size: 15px; }
}
