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

body {
  font-family: 'Noto Sans', sans-serif;
  overflow: hidden;
  background: #f0f8ff;
  color: #333;
}

#ui-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

#ui-overlay * {
  pointer-events: auto;
}

.ui-top {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 30px;
}

.ui-top .stat:nth-child(3) {
  display: none;
}

.stat {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat .label {
  color: #666;
  margin-right: 8px;
}

.stat .value {
  color: #333;
  font-weight: bold;
  font-size: 24px;
}

.ui-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 600px;
}

.prize-bar {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prize-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.prize-gauge {
  width: 100%;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.prize-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  width: 0%;
  transition: width 0.3s ease;
}

.controls {
  display: flex;
  gap: 10px;
}

.btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
  font-family: 'Noto Sans', sans-serif;
}

.btn:hover {
  background: #f0f0f0;
}

.btn:active {
  transform: scale(0.95);
}

.position-indicator {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.position-indicator.hidden {
  opacity: 0.3;
}

.position-bar {
  width: 200px;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  position: relative;
}

.position-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #ffd700;
  border-radius: 50%;
  transition: left 0.05s linear;
}

.prize-notification {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 215, 0, 0.95);
  color: #000;
  padding: 30px 60px;
  border-radius: 12px;
  font-size: 36px;
  font-weight: bold;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.prize-notification.show {
  animation: prizePopup 1s ease;
}

@keyframes prizePopup {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(0); }
}

.game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
}

.game-over.show {
  display: flex;
}

.game-over-content {
  background: #fff;
  padding: 40px 60px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.game-over-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.game-over-content p {
  font-size: 24px;
  margin-bottom: 30px;
}

.game-over-content .btn {
  font-size: 18px;
  padding: 15px 40px;
}