html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  overflow: hidden;
  font-family: 'Pretendard', sans-serif;
}

.game-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: calc(100vh - 60px); /* minus top-nav height */
  margin-top: 60px;
}

.game-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 100%;
  max-height: 600px;
  background-color: #87CEEB; /* Sky blue background */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 800px) {
  .game-container {
    border-radius: 12px;
    height: 80vh;
  }
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.score-display {
  font-family: 'Rowdies', cursive;
  font-size: 24px;
  color: #fff;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-content {
  text-align: center;
  color: #f8fafc;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 16px;
  border: 1px solid #334155;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.bounce-text {
  font-family: 'Rowdies', cursive;
  font-size: 42px;
  margin-bottom: 10px;
  color: #facc15;
  text-shadow: 0 4px 15px rgba(250, 204, 21, 0.5);
  animation: bounce 2s infinite ease-in-out;
}

.shake-text {
  font-family: 'Rowdies', cursive;
  font-size: 42px;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

.subtitle {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.score-board {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #e2e8f0;
}

.score-board p {
  margin: 5px 0;
}

.action-btn {
  font-family: 'Rowdies', cursive;
  font-size: 20px;
  padding: 12px 32px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: transform 0.1s, box-shadow 0.1s;
}

.action-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
