/* controls.css */
[hidden] {
  display: none !important;
}
.views {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.views button:last-child {
  grid-column: 1/-1;
}
.navlabel {
  margin-top: 16px;
}
#capture {
  margin-top: 8px;
  width: 100%;
  font-size: 12px;
}
#walkpad {
  position: absolute;
  left: 24px;
  bottom: 96px;
  text-align: center;
  user-select: none;
}
#walkpad > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
#walkpad button {
  width: 48px;
  padding: 8px;
  background: #531517;
  color: white;
  border-color: #d2c1bf;
  font-size: 24px;
}
#walkpad button:hover {
  background: #713a3b;
}
#map {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 128px;
  height: 144px;
  border-radius: 8px;
  pointer-events: none;
  opacity: .9;
}
#viewport canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}
@media (max-width:767px) {
  #map {
    width: 80px;
    height: 96px;
    right: 16px;
    top: 64px;
  }
  #walkpad {
    left: 16px;
    bottom: 96px;
  }
  .hint {
    font-size: 12px;
  }
  .badge {
    max-width: calc(100% - 32px);
  }
}

/* mobile.css */
.views {
  grid-template-columns: repeat(3, 1fr);
}
.views button:last-child {
  grid-column: auto;
}
.note {
  margin-top: 24px;
}
aside h1 {
  font-size: 24px;
}
.models {
  grid-template-columns: 1fr 1fr;
}
.models button {
  padding: 16px 8px;
}
.models span {
  line-height: 1.4;
}
.steps {
  display: none;
}
#stops {
  margin-top: 16px;
}
header button {
  padding: 8px 16px;
}
aside {
  padding: 24px;
}
#map {
  width: 80px;
  height: 96px;
  top: 80px;
  right: 16px;
}
.hint {
  margin: 0;
}
.views button {
  min-height: 48px;
}
@media (max-width:1023px) {
  header {
    height: 64px;
    padding: 8px 16px;
  }
  header img {
    width: 112px;
  }
  header > span {
    display: none;
  }
  main {
    display: flex;
    flex-direction: column-reverse;
  }
  .stage {
    height: 60dvh;
    min-height: 360px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  aside {
    padding: 16px 24px;
  }
  aside h1,
  aside .eyebrow {
    display: none;
  }
  aside h2 {
    margin-top: 16px;
  }
  .models button {
    min-height: 48px;
  }
  .models span {
    margin-top: 8px;
    font-size: 12px;
  }
  #stops {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #stops label {
    margin: 0;
  }
  #capture {
    display: none;
  }
  .note {
    margin-top: 16px;
    font-size: 12px;
  }
  .badge {
    left: 16px;
    top: 16px;
  }
  .zoom {
    right: 16px;
    bottom: 80px;
    gap: 8px;
  }
  .hint {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 8px;
    font-size: 12px;
  }
  #walkpad {
    left: 16px;
    bottom: 80px;
  }
  #map {
    top: 64px;
  }
  #walkpad button {
    background: #531517e8;
  }
  header button {
    font-size: 12px;
  }
}
@media (min-width:1024px) {
  aside {
    width: 304px;
    padding: 24px;
  }
  header {
    height: 64px;
  }
  main {
    height: calc(100dvh - 64px);
  }
  #capture {
    font-size: 12px;
  }
}
@media (max-height:500px) and (orientation:landscape) {
  .stage {
    height: 100dvh;
  }
}
