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

body {
  background: #0f1420;
  font-family: 'Bricolage Grotesque', sans-serif;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: #e0e4ec;
}

#hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(180deg, #161c2e 0%, #0f1420 100%);
  border-bottom: 1px solid #1e2740;
  z-index: 10;
  flex-shrink: 0;
}

#title {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: #f0f2f7;
}

.knife {
  display: inline-block;
  animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

#stats {
  display: flex;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #5a6480;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #c8d0e0;
}

#newBtn {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border: 1px solid #2a3455;
  border-radius: 8px;
  background: linear-gradient(135deg, #1c2440, #252e4a);
  color: #8894b0;
  cursor: pointer;
  transition: all 0.2s ease;
}

#newBtn:hover {
  background: linear-gradient(135deg, #252e4a, #2e3960);
  color: #b0bcd8;
  border-color: #3a4a70;
}

#newBtn:active {
  transform: scale(0.95);
}

#canvas {
  flex: 1;
  display: block;
  cursor: crosshair;
}

#feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

#feedback.show {
  opacity: 1;
  animation: feedbackPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes feedbackPop {
  0% { transform: translate(-50%, -50%) scale(0.5); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: #0b0f1a;
  border-top: 1px solid #1a2035;
  font-size: 0.7rem;
  color: #3a4460;
  flex-shrink: 0;
  z-index: 10;
}

#footer a {
  color: #4a5a80;
  text-decoration: none;
  transition: color 0.2s;
}

#footer a:hover {
  color: #7a8ab0;
}

@media (max-width: 600px) {
  #hud {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  #title {
    font-size: 1rem;
  }
  #stats {
    gap: 12px;
  }
  .stat-val {
    font-size: 0.9rem;
  }
  #newBtn {
    font-size: 0.65rem;
    padding: 6px 10px;
  }
}