/* Small rounded-square shortcut, at the right-hand centre of the game. */
.factory-entry {
  position: fixed; right: max(14px, env(safe-area-inset-right)); top: 50%;
  z-index: 30; display: grid; justify-items: center; align-content: center; gap: 3px;
  width: 76px; height: 76px; margin-top: -38px; border-radius: 19px;
  color: #eee8ff; background: #28203e; border: 2px solid #aa8bed;
  box-shadow: 0 5px 0 #171123, 0 8px 24px #0005;
  text-decoration: none; font: 700 12px/1.2 system-ui; transition: background .15s;
}
.factory-entry[hidden] { display: none; }
.factory-entry:hover { background: #46335d; }
.factory-entry:focus-visible { outline: 3px solid #f6d287; outline-offset: 5px; }
.factory-entry svg { width: 35px; height: 35px; }
@media (min-width: 800px) and (max-width: 1270px) {
  body:has(.factory-entry:not([hidden])) main { margin-right: 96px; }
}
@media (max-width: 600px) {
  .factory-entry { width: 58px; height: 58px; right: 8px; margin-top: -29px; border-radius: 15px; font-size: 10px; }
  .factory-entry svg { width: 26px; height: 26px; }
}
