@font-face {
  font-family: 'Lexend';
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Lexend-Bold.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #660103;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

canvas#game {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#start-controls {
  position: fixed;
  top: 53%;
  left: 50%;
  width: min(82vw, 310px);
  transform: translateX(-50%);
  text-align: center;
}

#start-caption {
  margin: 0 auto 12px;
  max-width: 28ch;
  color: #fff;
  font: 700 clamp(12px, 2vh, 15px)/1.35 'Lexend', sans-serif;
  text-shadow: 0 1px 4px #400c0d;
}

#start-button {
  width: min(70vw, 27vh, 300px);
  min-width: 128px;
  padding: 16px 24px;
  border: 0;
  color: #fff;
  background: #000;
  font: 700 clamp(16px, 3vh, 24px) 'Lexend', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  touch-action: manipulation;
  animation: start-pulse 1.6s ease-in-out infinite;
}

#start-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  animation: none;
}

@keyframes start-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  #start-button { animation: none; }
}
