* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  touch-action: none;
}

#game-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#coin-slot {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 12px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#coin-display {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  color: #ffd700;
  font-family: 'Space Mono', monospace;
}

#coin-buttons {
  display: flex;
  gap: 8px;
}

.coin-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #cd7f32;
  background: linear-gradient(135deg, #ffd700, #cd7f32);
  color: #000;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.coin-btn:active {
  transform: scale(0.9);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#color-picker {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.color-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-btn:hover {
  transform: scale(1.1);
}

.color-btn.active {
  border-width: 3px;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

#phone {
  position: relative;
  width: min(300px, 80vw);
  height: min(420px, 70vh);
}

#receiver-holder {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 60px;
  background: #222;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#receiver {
  width: 160px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 20px;
  cursor: grab;
  touch-action: none;
  transition: all 0.2s ease;
  position: relative;
}

#receiver.lifted {
  transform: translateY(-100px) rotate(-15deg);
  cursor: grabbing;
}

#phone-body {
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#dial-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#dial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.dial-hole {
  width: 60px;
  height: 60px;
  background: #3a3a3a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: all 0.1s ease;
}

.dial-hole:nth-child(10) {
  grid-column: 2;
}

.dial-hole:active {
  background: #4a4a4a;
  transform: scale(0.95);
}

#number-display {
  height: 40px;
  background: #1a1a1a;
  border-radius: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  letter-spacing: 4px;
  font-family: 'Space Mono', monospace;
}

#target-number {
  position: absolute;
  top: 40px;
  font-size: 20px;
  text-align: center;
  color: #888;
}

#message {
  position: absolute;
  bottom: 40px;
  font-size: 18px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#message.show {
  opacity: 1;
}