/* style.css */

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #120b06;
}

body {
  overflow: hidden;
}

.page {
  display: none;
  position: fixed;
  inset: 0;
  background: #120b06;
}

.page.active {
  display: block;
}

.full-image {
  width: 100%;
  height: 100%;
  display: block;
}

.full-image.contain {
  object-fit: contain;
}

button {
  cursor: pointer;
  font-family: Georgia, serif;
}

/* Office clickable board area — adjust once final office art is locked */
#boardHotspot {
  position: absolute;
  left: 73%;
  top: 8%;
  width: 18%;
  height: 24%;
  background: transparent;
  border: none;
}

#boardHotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  box-shadow: 0 0 22px 8px rgba(255, 220, 120, .55);
  animation: shimmer 33s infinite;
}

@keyframes shimmer {
  0%, 92%, 100% { opacity: 0; }
  94% { opacity: .85; }
  96% { opacity: .2; }
  98% { opacity: .75; }
}

/* Adventure Board clickable zones — rough pass */
.pin {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
}

.carnival { left: 6%; top: 4%; width: 39%; height: 15%; }
.haunted  { left: 45%; top: 4%; width: 30%; height: 15%; }
.hell     { left: 6%; top: 19%; width: 33%; height: 18%; }
.alien    { left: 78%; top: 10%; width: 18%; height: 34%; }
.ascent   { left: 38%; top: 20%; width: 31%; height: 23%; }
.boli     { left: 6%; top: 42%; width: 36%; height: 18%; }
.mall     { left: 42%; top: 42%; width: 45%; height: 24%; }
.mystery  { left: 5%; top: 61%; width: 32%; height: 31%; }
.pirate   { left: 32%; top: 67%; width: 16%; height: 14%; }
.profit   { left: 43%; top: 67%; width: 45%; height: 25%; }

.small-nav {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  padding: 9px 14px;
  font-size: 15px;
  background: rgba(245, 225, 180, .92);
  color: #2a170b;
  border: 2px solid #3b2413;
  border-radius: 6px;
}

/* Map viewer */
.map-viewport {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: #080604;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 24px 190px 24px;
  box-sizing: border-box;
}

.map-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 210px);
  object-fit: contain;
  box-shadow: 0 12px 45px rgba(0, 0, 0, .55);
}

.map-image.zoomed {
  max-width: none;
  max-height: none;
}

/* Temporary zoom controls */
.zoom-controls {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  gap: 6px;
}

.zoom-controls button {
  min-width: 38px;
  height: 34px;
  background: rgba(245, 225, 180, .94);
  color: #2a170b;
  border: 1px solid #3b2413;
  border-radius: 6px;
  font-size: 15px;
}

/* Image-based compass navigation */
.compass-nav-image {
  position: fixed;
  right: 72px;
  bottom: 34px;
  z-index: 70;
  width: 170px;
  height: 170px;
}

.compass-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
  pointer-events: none;
  user-select: none;
}

.nav-hit {
  position: absolute;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

/* Uncomment this block if you need to see the invisible hit zones while testing */
/*
.nav-hit {
  background: rgba(255, 215, 120, 0.18);
  outline: 1px dashed rgba(255, 220, 160, 0.5);
}
*/

.nav-hit:focus-visible {
  outline: 2px solid rgba(255, 230, 170, 0.95);
  outline-offset: 2px;
}

/* Hit zones over compass points */
.nav-hit.north {
  top: 7px;
  left: 66px;
}

.nav-hit.east {
  top: 66px;
  right: 7px;
}

.nav-hit.south {
  bottom: 7px;
  left: 66px;
}

.nav-hit.west {
  top: 66px;
  left: 7px;
}

/* Hover labels */
.nav-hit::after {
  content: attr(data-label);
  position: absolute;
  display: none;
  white-space: nowrap;
  background: rgba(245, 225, 180, 0.97);
  color: #2a170b;
  border: 1px solid #3b2413;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.nav-hit:hover::after,
.nav-hit:focus::after {
  display: block;
}

.nav-hit.north::after {
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-hit.south::after {
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-hit.east::after {
  left: 46px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-hit.west::after {
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
}