:root {
  font-family: "Courier New", monospace;
  color: #14213d;
  background: #101827;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, #152238 0%, #243b55 100%);
}

.game {
  width: min(100%, 980px);
  display: grid;
  gap: 12px;
}

.topbar,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 4px solid #14213d;
  border-radius: 0;
  background: #f8fbff;
  box-shadow: 6px 6px 0 #0b1018;
}

.topbar span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #0f7892;
  letter-spacing: 0;
}

.topbar strong {
  font-size: 28px;
}

canvas {
  width: 100%;
  height: auto;
  max-height: calc(100svh - 178px);
  display: block;
  border: 4px solid #14213d;
  border-radius: 0;
  background: #9fe4ff;
  box-shadow: 8px 8px 0 #0b1018;
  image-rendering: pixelated;
}

button {
  min-width: 96px;
  min-height: 42px;
  border: 0;
  border: 3px solid #14213d;
  border-radius: 0;
  background: #ff5b78;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #13b8c7;
}

p {
  margin: 0;
  color: #14213d;
  text-align: right;
}

@media (max-width: 620px) {
  body {
    align-items: start;
    padding: 10px;
  }

  .game {
    gap: 10px;
  }

  .topbar,
  .controls {
    padding: 10px 12px;
    box-shadow: 4px 4px 0 #0b1018;
  }

  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  p {
    text-align: left;
  }
}
