* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: #e8fffb;
  font-family: 'Inter', 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 {
  width: 100%;
  height: auto;
  display: block;
  cursor: default;
  touch-action: none;
  border-radius: 4px;
}

.controls {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 6px;
  margin-top: 8px;
}

.controls button,
.controls a {
  flex: 1;
  height: 36px;
  background: #0d4e4d;
  color: #b4e6d4;
  border: none;
  font-family: 'Inter', 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;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 2px;
}

.controls button:hover,
.controls a:hover {
  background: #b4e6d4;
  color: #0d4e4d;
}

.controls button:active,
.controls a:active {
  background: #093736;
}

#btn-download {
  flex: 0 0 48px;
}

#btn-download svg {
  stroke: #b4e6d4;
  transition: stroke 0.2s ease;
}

#btn-download:hover svg {
  stroke: #0d4e4d;
}