/* Layer contract: world 0; world markers 10; HUD 30; panels 40; notices 60.
   Native dialogs use the browser top layer. All layout rules below are authoritative. */
:root {
  --ui-ink: #193e36;
  --ui-muted: #758578;
  --ui-paper: #fffcf5;
  --ui-line: #dfe5d8;
  --layer-world: 0;
  --layer-marker: 10;
  --layer-hud: 30;
  --layer-panel: 40;
  --layer-notice: 60;
  --panel-width: 326px;
  --edge: 24px;
}
body {
  background: #e1e9df;
  color: var(--ui-ink);
}
header {
  height: 78px;
  padding: 0 var(--edge);
  position: absolute;
  z-index: var(--layer-hud);
  gap: 16px;
}
header .brand {
  font-size: 22px;
  letter-spacing: 2px;
}
header .brand span {
  font-size: 9px;
  letter-spacing: 3px;
}
header .chapter {
  display: none;
}
header #help {
  border: 1px solid #fff9;
  background: #fffdf0db;
  font-size: 11px;
  padding: 10px 18px;
  min-height: 40px;
  box-shadow: 0 4px 15px #193e3608;
}
main {
  height: 100dvh;
  min-height: 680px;
  padding: 0;
  position: relative;
  isolation: isolate;
}
.world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: var(--layer-world);
}
#river3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sky-caption {
  position: absolute;
  top: 100px;
  left: var(--edge);
  padding: 0;
  max-width: 260px;
  color: #244c41;
  font-size: 9px;
  letter-spacing: 2px;
  z-index: var(--layer-hud);
  pointer-events: none;
}
.sky-caption span {
  font-family: inherit;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.45;
  margin-top: 9px;
  max-width: 245px;
}
.chapter-label {
  display: none;
}
.river-switcher {
  position: absolute;
  top: 188px;
  left: var(--edge);
  right: auto;
  z-index: var(--layer-hud);
  width: 258px;
  max-width: 258px;
  min-height: 57px;
  background: #fffdf2ed;
  border: 1px solid #fff;
  border-radius: 14px;
  box-shadow: 0 7px 25px #244c4112;
}
.river-switcher #river-select {
  flex: 1;
  min-width: 0;
  padding: 10px 5px;
}
.river-switcher #river-select strong {
  font-size: 11px;
}
.river-switcher small {
  font-size: 9px;
}
.river-switcher button {
  min-width: 38px;
  padding: 8px;
  font-size: 21px;
}
.festival-status {
  position: absolute;
  top: 27px;
  left: auto;
  right: 125px;
  z-index: var(--layer-hud);
  gap: 10px;
  border: 1px solid #fff8;
  max-width: 400px;
  padding: 8px 12px;
  background: #fffdf2df;
  box-shadow: 0 3px 16px #21492d09;
  font-size: 10px;
  border-radius: 30px;
}
.festival-status button {
  font-size: 10px;
  min-height: 24px;
}
.play {
  position: absolute;
  top: 96px;
  bottom: 130px;
  right: var(--edge);
  width: var(--panel-width);
  border: 1px solid #fff;
  padding: 22px;
  z-index: var(--layer-panel);
  border-radius: 20px;
  box-shadow: 0 18px 60px #1b48391c;
  background: #fffdf5ed;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cad5bd transparent;
}
.play .progress {
  font-size: 10px;
  line-height: 1.5;
}
.play .meter {
  margin: 13px 0 22px;
  height: 3px;
}
.play h1 {
  font-family: inherit;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.7px;
}
.play .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.play p {
  font-size: 12px;
  line-height: 1.85;
  color: #657568;
}
.play .speaker {
  border: 1px solid #e7eadb;
  background: #edf0e5;
  padding: 10px;
  border-radius: 12px;
  gap: 10px;
  margin: 15px 0;
}
.play .speaker p {
  font-size: 11px;
}
.play .speaker img {
  width: 38px;
  height: 44px;
}
.play .primary {
  font-size: 12px;
  min-height: 46px;
  border-radius: 12px;
  background: #27634e;
  box-shadow: 0 5px 12px #27634e18;
}
.play .choice {
  font-size: 12px;
  border-radius: 10px;
  border-color: #dce3d3;
  padding: 12px;
  line-height: 1.5;
}
.play #footer {
  padding-top: 18px;
}
.play .subtle {
  font-size: 10px;
}
.festival-dock,
.hide-mission .festival-dock {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 34px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 150px);
  gap: 8px;
  max-width: none;
  padding: 8px;
  border: 1px solid #ffffffaa;
  border-radius: 23px;
  background: #fffdf0b8;
  backdrop-filter: blur(20px);
  z-index: var(--layer-hud);
  box-shadow: 0 10px 35px #34533a15;
}
.festival-dock button {
  padding: 9px 12px;
  min-height: 62px;
  gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 15px;
  display: flex;
  text-align: left;
  position: relative;
  overflow: visible;
}
.festival-dock button:hover {
  background: #fffdf1;
  box-shadow: 0 4px 15px #34533a0c;
  transform: translateY(-3px);
}
.festival-dock span {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
}
.festival-dock small {
  font-size: 8px;
  white-space: nowrap;
  font-weight: 400;
  margin-top: 4px;
  display: block;
}
.festival-dock b {
  display: none;
}
.item-art {
  display: inline-block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-image: url("../assets/game/items-atlas.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 3px #244b3b18);
  position: relative;
  vertical-align: middle;
}
.item-puppet {
  background-position: 0% 0%;
}
.item-probe {
  background-position: 50% 0%;
}
.item-lantern {
  background-position: 100% 0%;
}
.item-boat {
  background-position: 0% 100%;
}
.item-journal {
  background-position: 50% 100%;
}
.item-star {
  background-position: 100% 100%;
}
.scene-tools,
.watching-show .scene-tools {
  position: absolute;
  left: var(--edge);
  bottom: 142px;
  display: flex;
  gap: 5px;
  z-index: var(--layer-hud);
  background: #fffdf0bd;
  backdrop-filter: blur(12px);
  padding: 5px;
  border: 1px solid #fff9;
  border-radius: 14px;
}
.scene-tools button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 10px;
  padding: 8px 12px;
  backdrop-filter: none;
}
.scene-tools button:hover {
  background: #fffdf0;
}
.scene-hint {
  display: none;
}
.world-bottom {
  position: absolute;
  bottom: 115px;
  left: var(--edge);
  right: auto;
  max-width: 390px;
  z-index: var(--layer-hud);
  padding: 0;
  font-size: 9px;
  gap: 18px;
  pointer-events: none;
}
.world-bottom > span + span {
  display: none;
}
.page-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 28px;
  padding: 3px 24px;
  z-index: var(--layer-hud);
  font-size: 8px;
  background: transparent;
  gap: 10px;
  pointer-events: none;
}
.page-footer button {
  min-height: 25px;
  padding: 5px 9px;
  font-size: 8px;
  background: #fff9;
  border-radius: 8px;
  pointer-events: auto;
}
.page-footer > span {
  max-width: none;
}
.route {
  position: absolute;
  inset: 0;
  z-index: var(--layer-marker);
  pointer-events: none;
}
.route .stop {
  min-width: 30px;
  min-height: 30px;
  width: 30px;
  height: 30px;
  font-size: 10px;
  border-width: 2px;
  outline-width: 4px;
  opacity: 0.85;
}
.route .stop small {
  top: 32px;
  font-size: 8px;
  padding: 4px 6px;
}
.route .stop:disabled {
  opacity: 0.4;
}
.route .stop:not(.active):not(.done) {
  visibility: hidden !important;
  pointer-events: none;
}
#npc-labels {
  position: absolute;
  inset: 0;
  z-index: var(--layer-marker);
  pointer-events: none;
}
.npc-pin {
  font-size: 9px;
  padding: 5px 9px;
  min-height: 27px;
  border-radius: 12px;
  background: #fffdf1db;
  box-shadow: 0 3px 10px #244c4115;
}
.marker-occluded {
  opacity: 0 !important;
  pointer-events: none !important;
}
.scene-toast {
  top: 80px;
  max-width: calc(100% - 750px);
  z-index: var(--layer-notice);
  font-size: 11px;
  padding: 10px 18px;
  white-space: normal;
  line-height: 1.6;
}
.map-transition {
  z-index: 15;
}
.hide-mission .play,
.watching-show .play {
  display: none;
}
.watching-show .river-switcher {
  top: 96px;
  left: var(--edge);
  right: auto;
}
.watching-show .sky-caption {
  display: none;
}
.show-controller {
  bottom: 35px;
  z-index: var(--layer-panel);
  padding: 17px 22px;
  border-radius: 20px;
  background: #fffdf5ed;
  max-width: 350px;
}
.show-controller strong {
  font-family: inherit;
  font-size: 20px;
}
.show-controller small {
  font-size: 9px;
}
.show-controller button {
  font-size: 11px;
  min-height: 40px;
}
.show-controller > span {
  font-size: 10px;
}
.festival-dialog,
.river-map-dialog,
#dialog {
  border: 1px solid #fff;
  box-shadow: 0 30px 120px #122f3266;
  border-radius: 23px;
  background: #fffdf5;
}
.festival-dialog::backdrop,
.river-map-dialog::backdrop,
#dialog::backdrop {
  background: #173d3d88;
  backdrop-filter: blur(7px);
}
.festival-dialog h2,
.river-map-dialog h2 {
  font-family: inherit;
  font-size: 27px;
  font-weight: 750;
}
.close {
  width: 38px;
  height: 38px;
  font-size: 22px;
  background: #edf0e5;
  min-height: 38px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.inventory {
  position: absolute;
  left: var(--edge);
  top: 265px;
  z-index: var(--layer-hud);
  width: 62px;
  display: grid;
  gap: 8px;
}
.inventory-title {
  font-size: 8px;
  text-align: center;
  color: #55725e;
  letter-spacing: 1px;
}
.inventory button {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #fff;
  background: #fffdf1ce;
  backdrop-filter: blur(12px);
  border-radius: 15px;
  box-shadow: 0 5px 15px #244c4110;
}
.inventory button:hover {
  background: #fffdf1;
}
.inventory .item-art {
  width: 57px;
  height: 57px;
}
.inventory button small {
  display: none;
}
.item-detail {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 20px;
  align-items: center;
  padding: 15px 0;
}
.item-detail .item-art {
  width: 145px;
  height: 145px;
}
.item-detail h3 {
  font-size: 22px;
  margin: 10px 0;
}
.item-detail p {
  font-size: 13px;
}
.item-rarity {
  font-size: 9px;
  letter-spacing: 2px;
  color: #ad864e;
}
.asset-status {
  font-size: 10px;
  color: #77896d;
}
.speaker .item-art {
  width: 44px;
  height: 44px;
}
.quiz-result .reward-orb.item-art {
  width: 110px;
  height: 110px;
  margin: auto;
}
.sky-caption,
.river-switcher,
.inventory,
.scene-tools,
.festival-status,
.festival-dock,
.play,
.show-controller {
  box-sizing: border-box;
}
@media (min-width: 1600px) {
  :root {
    --panel-width: 360px;
    --edge: 32px;
  }
  .play {
    top: 100px;
    padding: 27px;
  }
  .play p {
    font-size: 13px;
  }
  .play h1 {
    font-size: 28px;
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  :root {
    --panel-width: 290px;
    --edge: 18px;
  }
  .festival-dock,
  .hide-mission .festival-dock {
    grid-template-columns: repeat(4, 130px);
  }
  .festival-dock .item-art {
    width: 38px;
    height: 38px;
  }
  .festival-dock button {
    gap: 5px;
    padding: 7px;
  }
  .sky-caption {
    max-width: 210px;
  }
  .sky-caption span {
    font-size: 20px;
  }
  .scene-toast {
    max-width: 330px;
    left: 40%;
  }
}
@media (max-width: 900px) {
  :root {
    --edge: 16px;
    --panel-width: 100%;
  }
  header {
    height: 70px;
    position: absolute;
    padding: 0 16px;
  }
  header .brand {
    font-size: 19px;
  }
  header .brand span {
    font-size: 8px;
  }
  header #help {
    min-height: 36px;
    padding: 8px 13px;
    font-size: 10px;
  }
  .festival-status {
    top: 23px;
    right: 95px;
    left: auto;
    max-width: 220px;
    font-size: 9px;
    gap: 8px;
    padding: 5px 9px;
  }
  .festival-status > .live-dot {
    display: none;
  }
  .festival-status #star-total {
    font-size: 9px;
  }
  .festival-status button {
    font-size: 9px;
    min-height: 22px;
  }
  .festival-status {
    font-size: 0;
  }
  .sky-caption {
    top: 87px;
    left: 16px;
    max-width: 210px;
    font-size: 8px;
  }
  .sky-caption span {
    font-size: 19px;
    line-height: 1.4;
    margin-top: 7px;
    max-width: 205px;
  }
  .river-switcher,
  .watching-show .river-switcher,
  .hide-mission .river-switcher {
    top: 79px;
    left: auto;
    right: 16px;
    max-width: 225px;
    width: 225px;
    min-height: 48px;
  }
  .river-switcher button {
    min-width: 32px;
    min-height: 48px;
    padding: 6px;
  }
  .river-switcher #river-select {
    padding: 7px 4px;
    min-width: 0;
  }
  .river-switcher strong {
    font-size: 10px !important;
  }
  .river-switcher small {
    font-size: 8px;
  }
  .inventory {
    top: 170px;
    left: 16px;
    width: 48px;
    gap: 7px;
  }
  .inventory button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .inventory .item-art {
    width: 46px;
    height: 46px;
  }
  .inventory-title {
    display: none;
  }
  main {
    height: auto;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    isolation: isolate;
  }
  .world {
    position: relative;
    inset: auto;
    height: 490px;
    min-height: 0;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
  }
  .scene-tools,
  .watching-show .scene-tools {
    bottom: 15px;
    left: 16px;
    max-width: calc(100% - 32px);
    border-radius: 12px;
    padding: 4px;
  }
  .scene-tools button {
    min-height: 34px;
    font-size: 9px;
    padding: 6px 11px;
  }
  .world-bottom {
    display: none;
  }
  .festival-dock,
  .hide-mission .festival-dock {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    border-radius: 0;
    background: #edf2e7;
    padding: 8px 12px;
    max-width: none;
    box-shadow: none;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #dbe3d3;
    order: 1;
    z-index: var(--layer-hud);
  }
  .festival-dock button {
    display: flex;
    flex-direction: column;
    padding: 7px 3px;
    gap: 3px;
    min-height: 75px;
    text-align: center;
    border-radius: 12px;
  }
  .festival-dock .item-art {
    width: 42px;
    height: 42px;
  }
  .festival-dock span {
    font-size: 10px;
  }
  .festival-dock small {
    display: none;
  }
  .play {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    left: auto;
    width: auto;
    margin: 14px 14px 20px;
    max-height: none;
    min-height: 0;
    overflow: visible;
    order: 2;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 6px 25px #1b483910;
  }
  .play h1 {
    font-size: 25px;
  }
  .play p {
    font-size: 13px;
  }
  .play .speaker p {
    font-size: 12px;
  }
  .play .primary {
    font-size: 13px;
  }
  .play #footer {
    padding-top: 20px;
  }
  .play .meter {
    margin-bottom: 20px;
  }
  .page-footer,
  .hide-mission .page-footer,
  .watching-show .page-footer {
    position: relative;
    bottom: auto;
    padding: 5px 16px 12px;
    min-height: 35px;
    font-size: 9px;
    z-index: var(--layer-hud);
  }
  .page-footer button {
    font-size: 9px;
    min-height: 30px;
  }
  .scene-toast {
    position: absolute;
    top: 140px;
    left: 50%;
    max-width: calc(100% - 130px);
    width: max-content;
    font-size: 10px;
    padding: 8px 13px;
  }
  .show-controller {
    position: absolute;
    bottom: 18px;
    left: 50%;
    max-width: 320px;
    width: calc(100% - 150px);
    padding: 14px 12px;
    z-index: var(--layer-panel);
  }
  .show-controller strong {
    font-size: 17px;
  }
  .show-controller small {
    font-size: 8px;
  }
  .show-controller button {
    padding: 9px 10px;
    font-size: 10px;
  }
  .show-controller > span {
    font-size: 9px;
  }
  .watching-show main,
  .hide-mission main {
    height: auto;
    min-height: 0;
    padding-top: 0;
  }
  .watching-show .world,
  .hide-mission .world {
    height: calc(100dvh - 45px);
    min-height: 580px;
  }
  .watching-show .show-controller {
    bottom: 20px;
  }
  .watching-show .scene-tools {
    bottom: 20px;
    max-width: 100px;
    flex-wrap: wrap;
  }
  .watching-show .inventory {
    display: none;
  }
  .watching-show .festival-dock {
    display: none;
  }
  .route .stop {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }
  .npc-pin {
    font-size: 8px;
    min-height: 25px;
    padding: 5px 8px;
  }
  .festival-dialog {
    max-width: calc(100% - 20px);
    padding: 24px 20px;
  }
  .festival-dialog h2 {
    font-size: 24px;
  }
  .item-detail {
    grid-template-columns: 95px 1fr;
    gap: 10px;
  }
  .item-detail .item-art {
    width: 95px;
    height: 95px;
  }
  .item-detail h3 {
    font-size: 20px;
  }
}
@media (max-width: 500px) {
  .world {
    height: 465px;
  }
  .sky-caption {
    top: 145px;
    max-width: 220px;
  }
  .sky-caption span {
    font-size: 18px;
    max-width: 210px;
  }
  .river-switcher,
  .hide-mission .river-switcher {
    left: 16px;
    right: auto;
    top: 78px;
    width: calc(100% - 32px);
    max-width: none;
  }
  .river-switcher #river-select {
    text-align: center;
  }
  .river-switcher strong {
    font-size: 11px !important;
  }
  .inventory {
    top: 235px;
  }
  .festival-status {
    right: 87px;
    max-width: 210px;
  }
  .show-controller {
    width: calc(100% - 135px);
    max-width: 290px;
    left: auto;
    right: 16px;
    transform: none;
  }
  .watching-show .river-switcher {
    top: 78px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-transition,
  .star-confetti {
    animation: none !important;
  }
}
.sky-caption span small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 7px;
  letter-spacing: 0.5px;
  color: #63806a;
}
.sky-caption span {
  white-space: nowrap;
}
.walking-hud {
  position: absolute;
  left: 100px;
  bottom: 140px;
  width: 320px;
  padding: 14px 16px;
  background: #fffdf2e8;
  backdrop-filter: blur(16px);
  border: 1px solid white;
  border-radius: 16px;
  z-index: var(--layer-hud);
  box-shadow: 0 8px 35px #2343;
}
.walking-title {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.walking-title small {
  font-size: 9px;
  font-weight: 400;
  color: #758a72;
  margin-left: auto;
}
.player-dot {
  width: 8px;
  height: 8px;
  background: #49a7ad;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #49a7ad55;
}
.walking-hint {
  font-size: 9px;
  color: #6c8069;
  margin: 9px 0;
}
.walk-buttons {
  display: flex;
  gap: 6px;
}
.walk-buttons button {
  border: 0;
  background: #2e6852;
  color: white;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 10px;
  min-height: 35px;
}
.walk-buttons button + button {
  background: #e6ebdc;
  color: #42614e;
}
#walk-event-progress {
  font-size: 9px;
  margin-top: 10px;
  color: #8b7957;
}
.player-label {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #2c8b8d;
  color: #fff;
  padding: 5px 9px;
  border: 1px solid #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  z-index: 12;
  pointer-events: none;
}
.touch-pad {
  display: none;
  z-index: var(--layer-hud);
}
.scene-tools {
  top: 265px;
  bottom: auto;
  left: 100px;
}
.watching-show .walking-hud,
.watching-show .touch-pad {
  display: none;
}
.watching-show .scene-tools {
  top: auto;
  bottom: 130px;
  left: 24px;
}
.game-explore .play {
  display: none;
}
@media (max-width: 900px) {
  .walking-hud {
    position: relative;
    left: auto;
    bottom: auto;
    top: auto;
    width: auto;
    margin: 0;
    padding: 13px 16px;
    border-radius: 0;
    border: 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #d8e1d0;
    order: 1;
    box-shadow: none;
    background: #f7faef;
    backdrop-filter: none;
  }
  .walking-title {
    font-size: 12px;
  }
  .walking-hint {
    font-size: 10px;
  }
  .walk-buttons button {
    min-height: 40px;
    font-size: 11px;
    padding: 10px 16px;
  }
  #walk-event-progress {
    font-size: 10px;
    margin-top: 10px;
  }
  .festival-dock,
  .hide-mission .festival-dock {
    order: 2;
  }
  .play {
    order: 3;
  }
  .touch-pad {
    position: absolute;
    top: 350px;
    left: 16px;
    display: grid;
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: repeat(2, 34px);
    gap: 4px;
  }
  .touch-pad button {
    width: 34px;
    height: 34px;
    background: #fffdf1df;
    border: 1px solid white;
    color: #3e6854;
    border-radius: 10px;
    touch-action: none;
    font-size: 18px;
  }
  .touch-pad button:nth-child(1) {
    grid-column: 2;
  }
  .touch-pad button:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .touch-pad button:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .touch-pad button:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }
  .inventory {
    top: 230px;
    display: flex;
    width: auto;
    gap: 6px;
  }
  .inventory button {
    width: 43px;
    height: 43px;
  }
  .inventory .item-art {
    width: 42px;
    height: 42px;
  }
  .scene-tools {
    top: auto;
    bottom: 15px;
    left: 145px;
    right: auto;
    max-width: calc(100% - 160px);
    padding: 3px;
  }
  .scene-tools button {
    font-size: 9px;
    min-height: 33px;
    padding: 6px 9px;
  }
  .hide-mission .world {
    height: 465px;
    min-height: 0;
  }
  .watching-show .world {
    height: calc(100dvh - 45px);
    min-height: 580px;
  }
  .watching-show .scene-tools {
    bottom: 20px;
    left: 16px;
    top: auto;
  }
  .sky-caption span {
    font-size: 18px;
  }
  .walking-hud ~ .inventory {
    top: 230px;
  }
}
