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

body {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
}

#gameCanvas {
  display: block;
  touch-action: none;
}

#ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  pointer-events: none;
  z-index: 10;
}

#score-display, #life-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

#score-label, #life-label {
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.6;
  text-transform: uppercase;
}

#score-value {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.1;
}

#life-hearts {
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1.2;
}

#message-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#message-overlay.hidden {
  display: none;
}

#message-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  min-width: 220px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

#message-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #111;
  font-family: 'Space Mono', monospace;
}

#message-sub {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.6;
}

#message-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  letter-spacing: 1px;
  transition: opacity 0.15s;
}

#message-btn:active {
  opacity: 0.7;
}