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

        #div-container {
            background: #2c3e50;
            border: 4px solid #3f8fef;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 800px;
            padding: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
           }

/* === NEW: 중앙 정렬 전용 wrapper === */
#full {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  user-select: none;
}

/* === 2. CONTROL: 버튼, 점수, 레벨을 감싸는 상단 영역 === */
#control {
  position: relative;
  width: 700px;
  height: 80px;
  padding: 10px 20px;
  background: #000820;
  border: 2px solid #0ff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  border-radius: 10px;
  margin-bottom: 10px;
}


/* === 3. GAME CONTAINER === */
#game-container {
  position: relative;
  padding: 0;
  background: #00000a;
  border: 2px solid #0ff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  border-radius: 10px;
  overflow: hidden;
  width: 700px;
  height: 480px;
}

/* 캔버스 */
canvas {
  display: block;
  margin: 0;
  background: #00000a;
  border: none;
  box-shadow: none;
  cursor: none;
}

/* UI 버튼 */
#startBtn,
#soundBtn {
  position: absolute;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
}

#startBtn {
  top: 15px;
  right: 10px;
  background: #0ff;
  color: #001;
}
#startBtn:hover {
  background: #5ff;
  transform: scale(1.05);
}

#soundBtn {
  top: 15px;
  right: 120px;
  background: #0ff;
  color: #001;
}
#soundBtn:hover {
  background: #5ff;
  transform: scale(1.05);
}

#levelInfo {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 18px;
  color: #0ff;
}

#info {
  position: absolute;
  top: 45px;
  left: 20px;
  font-size: 18px;
  color: #0ff;
}

/* === 게임 오버/클리어 === */
#clearText,
#gameOverText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 1s ease;
}

#gameOverText {
  color: #ff4;
  text-shadow: 0 0 20px #ff0;
}

#clearText {
  color: #4fff8f;
  text-shadow: 0 0 30px #0f0;
  animation: sparkle 1.2s ease-in-out infinite alternate;
}

@keyframes sparkle {
  from {
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
  }
  to {
    text-shadow: 0 0 25px #6f6, 0 0 40px #6f6;
  }
}

/* 모바일 */

@media (max-width: 760px) {
  #control,
  #game-container {
    width: 90vw;
  }

  #gameCanvas {
    width: 100%;
    height: auto;
  }

  #clearText,
  #gameOverText {
    font-size: 28px;
  }

  #startBtn,
  #soundBtn {
    font-size: 14px;
    padding: 8px 12px;
  }

  #soundBtn {
    right: 100px;
  }
}
