@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

:root {
  --ink: #111111;
  --bg: #ffffff;
  --accent: #001f54;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Mono", monospace;
  background: var(--bg);
  color: var(--ink);
}

.game {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
}

.game-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.back {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.4rem 0.8rem;
}

#restart {
  font-family: inherit;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

canvas {
  width: 100%;
  max-width: 1100px;
  border: 1px solid var(--ink);
  background: #f7f7f7;
}

.tips {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .tips {
    flex-direction: column;
  }
}
