:root {
  --gold: #d7a63d;
  --lime: #b4dc58;
  --deep: #031317;
  --panel: rgba(4, 25, 29, 0.97);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #020d10;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: grid;
  place-items: center;
}

.frontpage {
  width: 100%;
}

.poster-stage {
  position: relative;
  width: min(100vw, 1536px);
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--deep);
}

.poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.hotspot:hover,
.hotspot:focus-visible {
  border-color: rgba(190, 225, 88, 0.95);
  background: rgba(177, 218, 81, 0.10);
  box-shadow: inset 0 0 0 2px rgba(177, 218, 81, 0.14);
  outline: none;
}

/* Main poster regions */
.hero-hotspot       { left: 0%;     top: 0%;    width: 54.2%; height: 66%; }
.map-hotspot        { left: 54.2%;  top: 0%;    width: 45.8%; height: 54%; }
.petroleum-hotspot  { left: 54.2%;  top: 54%;   width: 45.8%; height: 21%; }

/* Five principle columns */
.principle { top: 65.2%; width: 10.6%; height: 22.8%; }
.p1 { left: 1.8%; }
.p2 { left: 12.5%; }
.p3 { left: 23.2%; }
.p4 { left: 33.9%; }
.p5 { left: 44.6%; }

/* Five operations tiles */
.operation { top: 78%; width: 9.15%; height: 18%; }
.o1 { left: 54.2%; }
.o2 { left: 63.35%; }
.o3 { left: 72.5%; }
.o4 { left: 81.65%; }
.o5 { left: 90.8%; }

.hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(215, 166, 61, .55);
  border-radius: 999px;
  background: rgba(3, 19, 23, .82);
  color: #f3e1b5;
  font-size: clamp(.65rem, 1vw, .9rem);
  letter-spacing: .04em;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.info-dialog {
  width: min(92vw, 560px);
  border: 1px solid rgba(215, 166, 61, .55);
  border-radius: 14px;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(11, 53, 58, .98), var(--panel));
  color: #f7f3e8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .6);
}

.info-dialog::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

.dialog-kicker {
  margin: 0 0 .45rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.info-dialog h2 {
  margin: 0 2rem .8rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.info-dialog p:last-child {
  margin-bottom: 0;
  line-height: 1.65;
  color: #dbe2de;
}

.close-button {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  body {
    display: block;
  }

  .poster-stage {
    width: 100vw;
  }

  .hint {
    right: .5rem;
    bottom: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot,
  .hint {
    transition: none;
  }
}
