.app {
  padding-bottom: 12px;
}

.scores {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px 4px;
}

.toolbar {
  display: flex;
  justify-content: center;
  padding: 4px 12px 8px;
}

.board-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

#game-canvas {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  cursor: crosshair;
  touch-action: none;
  border-radius: var(--radius-md);
  background: #1a1a2e;
}

#result-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  border-radius: var(--radius-md);
  z-index: 10;
  gap: 10px;
  padding: 24px 16px;
}

#result-overlay[hidden] {
  display: none !important;
}

#result-grade {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 30px currentColor;
}

#result-score-text {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
}

#result-detail {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.9;
}

#result-detail b {
  color: #fff;
}

#play-again-btn {
  margin-top: 6px;
  min-width: 130px;
}
