* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: #f3fe02;
  font-family: 'Syne', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 16px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
}

/* canvas */
#canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: default;
  touch-action: none;
}

/* controls row */
.controls {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 6px;
  margin-top: 8px;
}

.controls button,
.controls a {
  flex: 1;
  height: 36px;
  background: #000;
  color: #f3fe02;
  border: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.controls button:active,
.controls a:active {
  background: #222;
}

#btn-header:hover {
  background: #f3fe02;
  color: #000;
}

#btn-download {
  flex: 0 0 48px;
}

#btn-download svg {
  stroke: #f3fe02;
}

/* hint text */
.hint {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
}
