html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
}

img {
  display: block;
  border: 0;
}

.image-link {
  display: inline-block;
  line-height: 0;
  outline: none;
  text-decoration: none;
}

.layer {
  position: absolute;
}

.is-hidden {
  visibility: hidden;
}

body[data-app="freefall-canvas"] {
  overflow: hidden;
  background-color: #000000;
  background-position: top left;
  background-repeat: repeat-x;
}

#appShell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#appStage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  transform-origin: top left;
  will-change: transform;
}

#canvasRoot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#contentViewport {
  overflow: hidden;
  pointer-events: none;
}

#contentFrame {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  border: 0;
  background: transparent;
  pointer-events: none;
}

#fieldLayer {
  pointer-events: auto;
}

#arrowLayer {
  left: 0;
  top: 0;
  width: 39px;
  height: 20px;
  pointer-events: none;
}

#dudeLayer {
  width: 300px;
  height: 174px;
}

#propellerLayer {
  left: 115px;
  top: 60px;
  width: 69px;
  height: 33px;
  pointer-events: none;
}

#freefallLayer {
  width: 480px;
  height: 80px;
  line-height: 0;
}

#stalagtiteLayer {
  width: 128px;
  height: 180px;
}

#menuLayer {
  left: 33px;
  top: 10px;
  width: 70px;
  height: 78px;
}

#stalagmiteLayer {
  width: 164px;
  height: 205px;
}

#systemLayer {
  left: 0;
  top: 0;
  width: 58px;
  height: 64px;
}

#guruLayer,
#controlLayer {
  left: 48px;
  top: 38px;
  width: 78px;
  height: 78px;
}

#skeletonLayer {
  width: 144px;
  height: 263px;
  line-height: 0;
}

#audioLayer {
  left: 18px;
  top: 25px;
  width: 106px;
  height: 105px;
}

#audioLayer table {
  border-collapse: collapse;
  border-spacing: 0;
}

#audioLayer td {
  padding: 0;
}

#skeletonOffLayer {
  left: 17px;
  top: 23px;
  width: 108px;
  height: 108px;
  pointer-events: none;
}

map area {
  outline: none;
}

body[data-page-type="content"] {
  background: transparent;
  color: #ffffff;
  font-family: monospace;
  font-size: 12pt;
  line-height: normal;
  overflow-x: hidden;
}

body[data-page-type="content"].is-standalone {
  min-height: 100vh;
  background-image: url("images/sunrise600.gif");
  background-position: top left;
  background-repeat: repeat-x;
  background-color: #000000;
}

.content-document {
  padding: 8px;
  color: #ffffff;
  font-family: monospace;
  font-size: 12pt;
  line-height: normal;
}

.content-title {
  margin: 0 0 1em;
  font-size: 16pt;
  font-weight: 400;
}

.content-document p {
  margin: 1em 0;
}

.content-document ul,
.content-document ol {
  margin: 1em 0;
  padding-left: 40px;
}

.content-document a,
.content-document a:visited,
.content-document a:active {
  color: #ffffff;
}

.content-note {
  color: #d24400;
}

.align-right {
  text-align: right;
}

body.legacy-main-page {
  padding: 0 8px;
  background-image: url("images/sunrise600.gif");
  background-position: top left;
  background-repeat: repeat-x;
  background-color: #000000;
  font-family: Arial, Helvetica, sans-serif;
}

.legacy-main-title {
  margin: 0.67em 0;
  color: #80ff80;
  font-size: 2em;
  font-weight: 700;
}

.legacy-main-copy {
  margin: 1em 0;
  color: #ffff00;
  line-height: normal;
}


/* Responsive preservation layer: keeps desktop layout intact and scales only when needed. */
body[data-app="freefall-canvas"].is-stage-scaled #appShell {
  overflow: hidden;
}

body[data-app="freefall-canvas"].is-stage-scaled #appStage {
  pointer-events: auto;
}

body[data-page-type="content"] .content-document {
  box-sizing: border-box;
  max-width: 100%;
}

body[data-page-type="content"] .content-document img {
  max-width: 100%;
  height: auto;
}
