:root {
  --cream: #F1EAD9;
  --brown: #2E2119;
  --blue: #2438FF;
  --acid: #C8F000;
  --goblin: #6B4A2F;
  --pokemon: #BFD4DE;
  --puma: #F2601D;
  --igor: #F4E3A1;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--brown);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
}

a {
  color: var(--blue);
}

a:visited {
  color: var(--blue);
}

.top-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--brown);
}

#app {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.strip {
  flex: 1 1 auto;
  min-height: 360px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.field {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

#goblin { background: var(--goblin); }
#pokemon { background: var(--pokemon); }
#puma { background: var(--puma); }
#igor { background: var(--igor); }

.field-label {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brown);
}

#goblin .field-label {
  color: var(--cream);
}

.photo {
  position: absolute;
  z-index: 2;
  width: 60px;
  height: 60px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo.pos-1 { top: 8%; left: -18px; }
.photo.pos-2 { top: 64%; right: -16px; }
.photo.pos-3 { bottom: -20px; left: 42%; }
.photo.pos-4 { top: -14px; left: 66%; }

.photo.expanded {
  z-index: 1;
  width: 100%;
  height: 90%;
  top: 5%;
  bottom: auto;
  right: auto;
}

.photo.expanded.offset-left { left: -40%; }
.photo.expanded.offset-right { left: 40%; }

.jump-nav {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  padding: 12px 14px;
  background: var(--cream);
  border-top: 1px solid var(--brown);
  border-bottom: 1px solid var(--brown);
}

.jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}

.site-footer {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: 11px;
}

.photo:focus-visible,
.jump-nav a:focus-visible,
.index-link:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Different coordinates per field; expanded state keeps its own bounds. */
#pokemon .pos-1:not(.expanded){top:36%;left:18%;width:52px;height:80px}
#pokemon .pos-2:not(.expanded){top:8%;right:20%;width:75px;height:45px}
#pokemon .pos-3:not(.expanded){bottom:18%;left:77%;width:44px;height:70px}
#pokemon .pos-4:not(.expanded){top:auto;bottom:-20px;left:20%;width:90px;height:90px}
#puma .pos-2:not(.expanded){top:38%;right:-25px;width:80px;height:80px}
#puma .pos-3:not(.expanded){bottom:9%;left:19%;width:44px;height:44px}
#puma .pos-4:not(.expanded){top:8%;left:64%;width:70px;height:44px}
#igor .pos-1:not(.expanded){top:15%;left:65%;width:72px;height:72px}
#igor .pos-2:not(.expanded){top:61%;right:59%;width:44px;height:50px}
#igor .pos-3:not(.expanded){bottom:10%;left:47%;width:90px;height:60px}
#igor .pos-4:not(.expanded){top:-24px;left:18%;width:65px;height:90px}
.strip:focus-visible{outline:2px solid var(--acid);outline-offset:-3px}
