html {
  background: #282828;
  overflow: hidden;
}
#body {
  background: #b1bbb2;
  border-radius: 10px 10px 70px 10px;
  bottom: 0;
  box-shadow: inset 0 -5px 10px #78827a, inset 0 1px 5px #ced8d0, 0 5px 25px rgba(0, 0, 0, 0.5);
  height: 485px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 295px;
}
#direction_pad {
  background: #a6b2a8;
  border-radius: 100%;
  box-shadow: inset 0 0 20px #aab3ab;
  height: 85px;
  left: 20px;
  position: absolute;
  top: 300px;
  width: 85px;
}
#direction_pad:after {
  background: #2F2F27;
  box-shadow: inset 0 0 10px 5px #272720;
  content: '';
  height: 25px;
  left: 30px;
  position: absolute;
  top: 30px;
  width: 25px;
}
#direction_pad .button {
  background: #272720;
  height: 25px;
  position: absolute;
  width: 25px;
}
#direction_pad .button#button_left {
  border-radius: 5px 0 0 5px;
  box-shadow: inset 3px 3px 5px #333d3f;
  left: 5px;
  top: 30px;
}
#direction_pad .button#button_up {
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 3px 5px #333d3f;
  left: 30px;
  top: 5px;
}
#direction_pad .button#button_right {
  border-radius: 0 5px 5px 0;
  box-shadow: inset -3px 3px 5px #333d3f;
  right: 5px;
  top: 30px;
}
#direction_pad .button#button_down {
  border-radius: 0 0 5px 5px;
  bottom: 5px;
  left: 30px;
}
#buttons {
  background: #A6B2A8;
  border-radius: 40px;
  box-shadow: inset 0 0 20px #AAB3AB;
  position: absolute;
  right: 40px;
  top: 290px;
  transform: rotate(65deg);
}
#buttons .button {
  background: #7e3261;
  border-radius: 100%;
  box-shadow: 0 0 2px #2E0D20, inset 1px 1px 1px #AD6692;
  height: 35px;
  margin: 5px;
  width: 35px;
}
#buttons .button:first-child {
  margin-bottom: 20px;
}
#utility {
  bottom: 65px;
  left: 90px;
  position: absolute;
}
#utility .button {
  background: #727b78;
  border-radius: 10px;
  box-shadow: 0 1px 1px #aab3ab, inset -1px 0 1px #96a09f;
  float: left;
  height: 9px;
  margin-right: 10px;
  transform: rotate(-25deg);
  width: 40px;
}
#screen {
  background: #687679;
  border: 1px solid #616d6f;
  border-radius: 8px 8px 40px 8px;
  box-shadow: 0 -1px 1px #c1cbc2;
  height: 195px;
  image-rendering: pixelated;
  left: 20px;
  position: absolute;
  right: 20px;
  top: 45px;
  -webkit-font-smoothing: none;
}
#screen.powered:after {
  background: #ff652a;
  box-shadow: inset 0 0 3px #635348, 0 0 3px #ff652a;
}
#screen.powered #viewport {
  background: #caca9a;
}
#screen:after {
  background: #303737;
  border-radius: 100%;
  content: '';
  height: 10px;
  left: 15px;
  position: absolute;
  top: 70px;
  transition: all 1s ease-in-out;
  width: 10px;
}
#viewport {
  background: #b2b270;
  border: 1px solid #646f73;
  border-bottom: 1px solid #89999c;
  border-top: 1px solid #4e595d;
  bottom: 0;
  box-shadow: inset 0 3px 5px rgba(120, 120, 52, 0.35);
  color: #787834;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  font-smooth: never;
  height: 144px;
  left: 0;
  margin: auto;
  overflow: hidden;
  position: absolute;
  right: 0;
  transition: background 0.75s ease-in-out;
  top: 0;
  -webkit-font-smoothing: none;
  width: 160px;
}
h1 {
  color: #3c4389;
  font-family: sans-serif;
  font-style: italic;
  font-weight: 300;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  text-transform: uppercase;
  top: 250px;
}
h1 b {
  font-size: 10px;
  font-style: normal;
  margin-left: 3px;
}
.button {
  cursor: pointer;
}
.menu {
  line-height: 15px;
}
.menu .selected {
  animation: selected 1s steps(1, end) infinite;
  position: relative;
}
.menu .selected:before {
  content: '\25BA';
  position: absolute;
  left: -10px;
  top: -1px;
}
#view_legal,
#view_splash,
#view_game,
#view_settings,
#view_hud {
  display: none;
}
#view_legal {
  display: block;
}
#view_legal .hashtag {
  display: block;
  font-size: 12px;
  height: 20px;
  margin-top: -20px;
  text-align: center;
  text-shadow: 0 1px 0 #434315;
  transition: margin 2s steps(16, end);
}
#view_legal .copy {
  bottom: 15px;
  color: #b2b270;
  font-size: 10px;
  height: 16px;
  margin-left: 160px;
  position: absolute;
  text-align: center;
  transition: margin 2s steps(16, end);
  width: 160px;
}
#view_splash {
  background: #434315 url(../img/splash.png) top center no-repeat;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
}
#view_splash h2 {
  animation: shake 3s steps(1, end) infinite;
  background: url(../img/title.png) top center no-repeat;
  display: block;
  height: 18px;
  position: absolute;
  top: 43px;
  width: 100%;
}
#view_splash .menu {
  bottom: 27px;
  color: #b2b270;
  left: 45px;
  position: absolute;
  text-shadow: 0 1px 0 #434315;
}
#view_splash [button] {
  bottom: 4px;
  color: #b2b270;
  font-size: 6px;
  left: 0;
  position: absolute;
  right: 0;
  text-shadow: 0 -1px 0 #434315;
}
#view_splash [button]:before {
  left: -56px;
  top: 1px;
}
#view_settings {
  background: #434315;
  bottom: 0;
  font-size: 6px;
  left: 0;
  position: absolute;
  top: 0;
  right: 0;
}
#view_settings .menu {
  line-height: 10px;
  margin: 10px 10px 0 15px;
}
#view_settings .menu [button]:before {
  display: none;
}
#view_settings .menu span {
  float: right;
  overflow: hidden;
  text-align: right;
  white-space: nowrap;
  width: 45px;
}
#view_settings .select,
#view_settings .cancel {
  bottom: 4px;
  color: #b2b270;
  font-size: 6px;
  position: absolute;
}
#view_settings .select:before,
#view_settings .cancel:before {
  left: -56px;
  top: 1px;
}
#view_settings .select {
  right: 8px;
}
#view_settings .cancel {
  left: 15px;
}
#view_settings .cancel:before {
  left: -42px;
}
#view_rebind {
  background: #787834 url(../img/mask.png);
  bottom: 0;
  display: none;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 100;
}
#view_rebind span {
  animation: blink 1s steps(1, end) infinite;
  color: #caca9a;
  font-size: 6px;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px 0 #434315;
  top: 48px;
  width: 100%;
}
#view_game {
  left: 0;
  position: absolute;
  right: 0;
  transition: left 0.5s steps(8, end), top 0.5s steps(8, end);
}
#view_game #player {
  background: url(../img/sprite.png) no-repeat 0 0;
  height: 24px;
  margin-top: -10px;
  position: absolute;
  transition: left 0.7s steps(6, end), top 0.7s steps(6, end);
  width: 16px;
}
#view_game #player[direction="left"] {
  background-position-y: -24px;
}
#view_game #player.walking {
  animation: animated 0.7s steps(1, end) infinite;
}
#view_hud #oxygen {
  left: 4px;
  top: 4px;
}
#view_hud #oxygen img {
  right: -16px;
}
#view_hud #oxygen span {
  float: left;
}
#view_hud #power {
  right: 6px;
  top: 4px;
}
#view_hud #power img {
  left: -21px;
}
#view_hud #power span {
  float: right;
}
#view_hud #signal {
  bottom: 2px;
  height: 8px;
  margin-bottom: -15px;
  position: absolute;
  right: 3px;
  width: 30px;
}
#view_hud #signal[dbm="18"] {
  background: url(../img/radio_dbm_18.png) no-repeat;
}
#view_hud #signal[dbm="27"] {
  background: url(../img/radio_dbm_27.png) no-repeat;
}
#view_hud #signal[dbm="43"] {
  background: url(../img/radio_dbm_43.png) no-repeat;
}
#view_hud #signal[dbm="62"] {
  background: url(../img/radio_dbm_62.png) no-repeat;
}
#view_hud #signal[dbm="96"] {
  background: url(../img/radio_dbm_96.png) no-repeat;
}
#view_hud #dialog {
  background: #787834;
  border: 1px solid #caca9a;
  bottom: 4px;
  box-shadow: 0 1px 0 #434315;
  color: #caca9a;
  display: none;
  font-size: 7px;
  left: 4px;
  line-height: 10px;
  outline: 1px solid #787834;
  padding: 4px;
  position: absolute;
  right: 4px;
  text-shadow: 0 1px 0 #434315;
  z-index: 75;
}
#view_hud #dialog[button]:before {
  animation: blink 1s steps(1, end) infinite;
  margin-bottom: -8px;
  margin-right: -8px;
}
#view_hud #dialog .text:before {
  color: #b2b270;
  content: attr(voice) ': ';
}
#view_hud #dialog .selected {
  display: none;
}
#view_hud #gameover {
  display: none;
  font-size: 12px;
  height: 20px;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: -15px;
  transition: top 2s steps(16, end);
}
#view_hud #gamecomplete {
  display: none;
  font-size: 12px;
  height: 20px;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: -35px;
  transition: top 4s steps(16, end);
}
#view_hud #gamecomplete span {
  font-size: 10px;
  text-shadow: 0 1px 0 #434315;
}
#view_hud #gamecomplete span b {
  color: #b2b270;
  display: block;
  margin-top: 5px;
  text-shadow: none;
}
#view_hud #gamecomplete .thanks {
  animation: blink 1s steps(1, end) infinite;
  display: none;
  font-size: 6px;
  padding-top: 64px;
}
#view_hud #pause {
  background: url(../img/mask.png);
  bottom: 0;
  display: none;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 100;
}
#view_hud #pause span {
  animation: blink 1s steps(1, end) infinite;
  color: #caca9a;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px 0 #434315;
  top: 48px;
  width: 100%;
}
#view_hud .meter {
  height: 4px;
  margin-top: -15px;
  position: absolute;
  transition: margin 1s steps(4, end);
  width: 32px;
  z-index: 100;
}
#view_hud .meter:after,
#view_hud .meter:before {
  content: '';
  height: 10px;
  position: absolute;
  top: -1px;
  width: 5px;
}
#view_hud .meter:after {
  background: url(../img/meter_cap_right.png) no-repeat;
  right: -3px;
}
#view_hud .meter:before {
  background: url(../img/meter_cap_left.png) no-repeat;
  left: -1px;
}
#view_hud .meter img {
  position: absolute;
  top: 0;
}
#view_hud .meter span {
  background: #caca9a url(../img/meter_texture.png);
  border-bottom: 1px solid #434315;
  float: left;
  height: 3px;
  margin-top: 2px;
  outline: 1px solid #787834;
  transition: width 0.5s steps(4, end);
}
[button]:before {
  background: url(../img/button_blank.png);
  bottom: 0;
  color: #434315;
  content: attr(button);
  font-size: 6px;
  height: 19px;
  left: -1px;
  line-height: 19px;
  margin: auto;
  position: absolute;
  right: 0;
  text-shadow: 0 1px 0 #caca9a;
  text-transform: uppercase;
  top: -1px;
  width: 18px;
  text-align: center;
  text-indent: 1px;
  z-index: 50;
}
[button].long:before {
  animation: blink 1s steps(1, end) infinite;
  background: #b2b270;
  border: 1px solid #787834;
  border-radius: 1px;
  box-shadow: inset 0 -1px 0 #434315;
  height: 11px;
  line-height: 10px;
  width: 48px;
}
[map] {
  background: #434315;
  float: left;
  width: 320px;
}
[entity] {
  height: 16px;
  position: absolute;
  transition: left 0.7s steps(6, end), top 0.7s steps(6, end);
  width: 16px;
}
[entity][entity="cargo"] {
  animation: float 1s steps(1, end) infinite;
  background: url(../img/entity_cargo.png) no-repeat;
}
[tile] {
  background: url(../img/chipset.png) no-repeat 0 0;
  float: left;
  height: 16px;
  position: relative;
  width: 16px;
}
[tile][tile="0"] {
  background: none;
}
[tile][variant="1"] {
  background-position-x: -16px;
}
[tile][variant="2"] {
  background-position-x: -32px;
}
[tile][variant="3"] {
  background-position-x: -48px;
}
[tile][animated="true"] div {
  animation: animated 4s steps(1, end) infinite;
}
[tile][interaction]:after {
  animation: selector 2s steps(1, end) infinite;
  background: none;
  content: '';
  height: 19px;
  left: -1px;
  position: absolute;
  top: -2px;
  width: 18px;
  z-index: 50;
}
[tile][interaction][button]:before {
  left: -1px;
  top: -1px;
}
[tile][interaction][interaction="cargo"]:after {
  display: none;
}
[tile][interaction][interaction="cargo"][button]:after {
  display: block;
}
[tile][interaction][interaction="cargo"] div:after {
  background: url(../img/entity_cargo.png) no-repeat;
  content: '';
  height: 16px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 16px;
}
[tile][interaction][interaction="capacitor"] div:after {
  background: url(../img/entity_capacitor.png) no-repeat;
  content: '';
  height: 16px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 16px;
}
[tile][interaction][interaction="nav"] div:after {
  background: url(../img/entity_nav.png) no-repeat;
  content: '';
  height: 16px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 16px;
}
[tile][interaction][interaction="relay"] div:after {
  background: url(../img/entity_relay.png) no-repeat;
  content: '';
  height: 16px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 16px;
}
[tile][interaction][interaction="mine_hardened"] div:after {
  background: url(../img/entity_metal_hardened.png) no-repeat;
  content: '';
  height: 16px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 16px;
}
[tile][interaction][interaction="mine_conductive"] div:after {
  background: url(../img/entity_metal_conductive.png) no-repeat;
  content: '';
  height: 16px;
  left: 0;
  position: absolute;
  top: -1px;
  width: 16px;
}
[tile][tile="14"],
[tile][tile="15"] {
  transition: background 0.1s steps(3, end);
}
[tile="30"] {
  background-position-y: -464px;
}
[tile="29"] {
  background-position-y: -448px;
}
[tile="28"] {
  background-position-y: -432px;
}
[tile="27"] {
  background-position-y: -416px;
}
[tile="26"] {
  background-position-y: -400px;
}
[tile="25"] {
  background-position-y: -384px;
}
[tile="24"] {
  background-position-y: -368px;
}
[tile="23"] {
  background-position-y: -352px;
}
[tile="22"] {
  background-position-y: -336px;
}
[tile="21"] {
  background-position-y: -320px;
}
[tile="20"] {
  background-position-y: -304px;
}
[tile="19"] {
  background-position-y: -288px;
}
[tile="18"] {
  background-position-y: -272px;
}
[tile="17"] {
  background-position-y: -256px;
}
[tile="16"] {
  background-position-y: -240px;
}
[tile="15"] {
  background-position-y: -224px;
}
[tile="14"] {
  background-position-y: -208px;
}
[tile="13"] {
  background-position-y: -192px;
}
[tile="12"] {
  background-position-y: -176px;
}
[tile="11"] {
  background-position-y: -160px;
}
[tile="10"] {
  background-position-y: -144px;
}
[tile="9"] {
  background-position-y: -128px;
}
[tile="8"] {
  background-position-y: -112px;
}
[tile="7"] {
  background-position-y: -96px;
}
[tile="6"] {
  background-position-y: -80px;
}
[tile="5"] {
  background-position-y: -64px;
}
[tile="4"] {
  background-position-y: -48px;
}
[tile="3"] {
  background-position-y: -32px;
}
[tile="2"] {
  background-position-y: -16px;
}
[tile="1"] {
  background-position-y: 0px;
}
@media only screen and (max-height: 400px) {
  #body {
    border-radius: 0;
    box-shadow: none;
    height: auto;
    width: auto;
  }
  #screen {
    bottom: 20px;
    height: auto;
    left: 20px;
    right: 20px;
    top: 20px;
  }
  #screen:after {
    left: 20px;
    margin-top: -5px;
    top: 33%;
  }
  #viewport {
    transform: scale(2);
  }
  #direction_pad,
  #buttons,
  #utility {
    display: none;
  }
}
