body {
  background: #dfece4;
}
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  max-width: none;
  height: 95px;
  padding: 0 36px;
  pointer-events: none;
}
header > * {
  pointer-events: auto;
}
.brand {
  font-size: 27px;
  text-shadow: 0 2px 15px #fff9;
}
.chapter {
  background: #ffffffb8;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 11px;
  backdrop-filter: blur(12px);
}
header button {
  background: #fff9;
  border-radius: 30px;
  text-decoration: none;
  padding: 12px 22px;
}
main {
  display: block;
  max-width: none;
  padding: 0;
  height: 100dvh;
  min-height: 720px;
  position: relative;
}
.world {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  background: linear-gradient(#dcece9, #abc9ae);
}
#river3d {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.sky-caption {
  top: 135px;
  left: 40px;
  color: #2f584c;
  text-shadow: none;
  pointer-events: none;
}
.sky-caption span {
  font-size: 40px;
  max-width: 310px;
}
.chapter-label {
  top: 295px;
  left: 40px;
  background: #fff8;
  backdrop-filter: blur(12px);
  border: 1px solid #fff9;
  border-radius: 12px;
}
.play {
  position: absolute;
  right: 30px;
  top: 120px;
  bottom: 85px;
  width: 355px;
  overflow: auto;
  min-height: 0;
  padding: 23px;
  background: #fffcf3ed;
  backdrop-filter: blur(20px);
  border: 1px solid #fff;
  border-radius: 24px;
  box-shadow: 0 18px 70px #20433215;
}
.play h1 {
  font-size: 28px;
  margin-bottom: 10px;
}
.play p {
  font-size: 13px;
  line-height: 1.75;
}
.play .eyebrow {
  font-size: 10px;
}
.play .speaker {
  margin: 12px 0;
  padding: 10px;
  background: #e9ecdf;
}
.play .speaker img {
  width: 42px;
  height: 48px;
}
.play .speaker p {
  font-size: 12px;
}
.play .meter {
  margin: 12px 0 24px;
}
.play .primary {
  padding: 13px 17px;
  font-size: 14px;
}
.play .choice {
  font-size: 13px;
  padding: 12px;
  min-height: 46px;
}
.play .turn {
  font-size: 11px;
}
.world-bottom {
  bottom: 45px;
  left: 32px;
  right: 420px;
  color: #35594d;
  padding: 10px 0;
}
.scene-hint {
  position: absolute;
  bottom: 110px;
  left: 40px;
  font-size: 11px;
  color: #436458;
  background: #fff9;
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 12px 18px;
  pointer-events: none;
}
.scene-tools {
  position: absolute;
  left: 40px;
  bottom: 165px;
  display: flex;
  gap: 8px;
}
.scene-tools button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #fff8;
  background: #ffffffbd;
  border-radius: 50px;
  color: #345b4d;
  font-size: 12px;
  backdrop-filter: blur(12px);
}
.route {
  inset: 0;
  pointer-events: none;
}
.stop {
  pointer-events: auto;
  z-index: 2;
  width: 38px;
  height: 38px;
  font-size: 12px;
  border-width: 2px;
  transition: opacity 0.2s;
}
.stop small {
  top: 41px;
  padding: 5px 9px;
  border-radius: 14px;
  background: #fffd;
  color: #315a47;
  text-shadow: none;
  font-size: 10px;
}
.stop.active {
  background: #ffdb86;
  outline: 6px solid #fff5;
}
.stop:disabled {
  opacity: 0.75;
}
.page-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 35px;
  max-width: none;
  z-index: 4;
  color: #35594d;
  pointer-events: none;
}
.page-footer > * {
  pointer-events: auto;
}
.page-footer button {
  background: #fff8;
  border-radius: 20px;
  text-decoration: none;
  font-size: 11px;
}
#scene-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #dce9df;
  color: #375e4b;
  z-index: 3;
  transition: opacity 0.4s;
}
#scene-loading.loaded {
  opacity: 0;
  pointer-events: none;
}
.object-grid {
  grid-template-columns: repeat(3, 1fr);
}
.object {
  min-height: 80px;
  font-size: 11px;
}
.object img {
  width: 42px;
  height: 42px;
}
.postcard {
  width: 100%;
  border-radius: 12px;
  margin: 10px 0;
}
.scene-toast {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  background: #285b49;
  color: white;
  padding: 13px 23px;
  border-radius: 25px;
  font-size: 13px;
  z-index: 15;
  pointer-events: none;
  box-shadow: 0 5px 25px #2344;
}
.readings {
  font-size: 12px;
}
#feedback:not(:empty) {
  font-size: 12px;
}
@media (min-width: 1600px) {
  .play {
    width: 400px;
    right: 50px;
    top: 130px;
    bottom: 100px;
    padding: 30px;
  }
  .play h1 {
    font-size: 32px;
  }
  .play p {
    font-size: 15px;
  }
}
@media (max-width: 850px) {
  main {
    min-height: 950px;
    height: auto;
    padding-top: 430px;
  }
  .world {
    height: 540px;
    bottom: auto;
  }
  .play {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    margin: 0 16px 85px;
    width: auto;
    min-height: 440px;
    overflow: visible;
    padding: 24px;
  }
  .sky-caption {
    top: 105px;
    left: 24px;
  }
  .sky-caption span {
    font-size: 25px;
    max-width: 230px;
  }
  .chapter-label {
    display: none;
  }
  header {
    height: 80px;
    padding: 0 22px;
  }
  .brand {
    font-size: 22px;
  }
  .scene-tools {
    bottom: 125px;
    left: 22px;
  }
  .scene-hint {
    bottom: 78px;
    left: 22px;
    font-size: 9px;
  }
  .world-bottom {
    display: none;
  }
  .page-footer {
    position: relative;
    margin-top: -75px;
    padding: 12px 22px;
  }
  .stop {
    width: 30px;
    height: 30px;
  }
  .stop small {
    top: 31px;
    font-size: 9px;
  }
  .scene-toast {
    top: 80px;
    width: max-content;
    max-width: 90%;
    text-align: center;
    font-size: 11px;
  }
  .play .progress {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  .play {
    margin-bottom: 20px;
  }
  .page-footer {
    margin-top: 0;
    min-height: 70px;
  }
  .scene-hint {
    display: none;
  }
  .sky-caption span {
    font-size: 23px;
    max-width: 195px;
  }
  .sky-caption {
    pointer-events: none;
  }
  .stop {
    min-width: 36px;
    min-height: 36px;
  }
}
