* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #efefef;
  font-family: "Trebuchet MS", sans-serif;
}

.game-app {
  width: min(1120px, 96vw);
  margin: 14px auto;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.back-link,
button {
  border: 1px solid #5a5a5a;
  background: #171717;
  color: #efefef;
  text-decoration: none;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
}

.status {
  margin: 0 0 0 auto;
  border: 1px solid #474747;
  border-radius: 8px;
  padding: 7px 10px;
  background: #101010;
  min-width: 280px;
  max-width: 520px;
}

.status[data-type="error"] {
  border-color: #8f3a3a;
  color: #ffd2d2;
}

.status[data-type="ok"] {
  border-color: #356535;
  color: #d5ffd5;
}

.canvas-shell {
  display: flex;
  justify-content: center;
  border: 1px solid #4e4e4e;
  border-radius: 12px;
  overflow: hidden;
}

#gameCanvas {
  display: block;
  width: 960px;
  max-width: 100%;
  height: auto;
  background: #0b0b0b;
  image-rendering: pixelated;
}
