@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

body {
  background-color: #050505;
  color: #0ff;
  font-family: 'Share Tech Mono', monospace;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#gameContainer {
  position: relative;
  width: 1024px;
  height: 768px;
  box-shadow: 0 0 20px #0ff, inset 0 0 20px #0ff;
  border: 2px solid #0ff;
  border-radius: 8px;
  background: radial-gradient(circle at center, #111, #000);
}

canvas {
  display: block;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 40px;
  border: 2px solid #f0f;
  box-shadow: 0 0 30px #f0f, inset 0 0 30px #f0f;
  border-radius: 12px;
  text-align: center;
  z-index: 10;
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 400px;
}

.overlay h2 {
  color: #f00;
  font-size: 3rem;
  text-shadow: 0 0 10px #f00;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 0 10px #fff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  background: transparent;
  border: 2px solid #0ff;
  color: #0ff;
  padding: 10px;
  font-size: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  font-family: inherit;
  outline: none;
  box-shadow: 0 0 10px #0ff;
}

input:focus {
  border-color: #fff;
  box-shadow: 0 0 15px #fff;
}

button {
  background: transparent;
  color: #0ff;
  border: 2px solid #0ff;
  padding: 10px 20px;
  font-size: 1.2rem;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  box-shadow: 0 0 10px #0ff;
}

button:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 20px #0ff;
}

#leaderboard {
  border-top: 2px solid #333;
  padding-top: 15px;
  margin-top: 15px;
}

#leaderboard h3 {
  color: #ff0;
  text-shadow: 0 0 10px #ff0;
  margin-bottom: 10px;
}

#scoreList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 150px;
  overflow-y: auto;
  text-align: left;
}

#scoreList li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #333;
  padding-bottom: 5px;
}

#scoreList li span:first-child {
  color: #0f0;
  text-shadow: 0 0 5px #0f0;
}

#scoreList li span:last-child {
  color: #fff;
  text-shadow: 0 0 5px #fff;
}

#shopUI {
  width: 500px;
}

#shopUI h2 {
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}

.shop-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 6px;
  background: rgba(0, 255, 255, 0.05);
}

.item-info h4 {
  color: #fff;
  font-size: 1.2rem;
}

.item-info span {
  color: #888;
  font-size: 0.9rem;
}

.shop-item button {
  font-size: 0.9rem;
  padding: 5px 10px;
}

.shop-item button:disabled {
  border-color: #555;
  color: #555;
  box-shadow: none;
  background: transparent;
  cursor: not-allowed;
}

.hint {
  font-size: 1rem;
  color: #aaa;
}
