body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #fff5f5, #ffe0e0, #ffd4d4);
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 480px;
  margin: auto;
  padding: 20px;
}

.logo {
  width: 140px;
  margin-top: 10px;
}

.title {
  font-family: 'Pacifico', cursive;
  color: #a7131d;
  font-size: 28px;
  margin: 10px 0 0;
}

.subtitle {
  color: #555;
  font-weight: 500;
  margin-bottom: 25px;
}

h3 {
  color: #a7131d;
  font-weight: 600;
}

input {
  width: 90%;
  max-width: 360px;
  margin: 10px auto;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.btn-start {
  background: linear-gradient(135deg, #a7131d, #8b0f18);
  color: #fff;
  font-size: 18px;
  border: none;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(167, 19, 29, 0.3);
}

.btn-start:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #b21a26, #9b131f);
}

/* Wheel Section */
.wheel-container {
  position: relative;
  margin: 0 auto;
  width: 90%;
  max-width: 400px;
}

#wheelCanvas {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255, 80, 80, 0.3);
  border: 5px solid #fff;
  background: #fff;
}

.spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #ff2d2d, #a7131d);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255,0,0,0.5);
  transition: all 0.3s ease;
  animation: pulse 1.5s infinite;
}

.spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px rgba(255,0,0,0.4); }
  50% { box-shadow: 0 0 30px rgba(255,0,0,0.6); }
  100% { box-shadow: 0 0 10px rgba(255,0,0,0.4); }
}

/* Result Section */
.result-section {
  margin-top: 30px;
}

.code-box {
  background: #fff;
  border: 2px dashed #a7131d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 15px;
}

#uniqueCode {
  font-size: 20px;
  color: #a7131d;
  font-weight: bold;
}

#copyCodeBtn {
  background: #a7131d;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

.note {
  color: #666;
  font-size: 14px;
  margin-top: 15px;
}

@media (max-width: 480px) {
  .title { font-size: 24px; }
  .subtitle { font-size: 14px; }
  input { font-size: 15px; }
  .spin-btn { width: 80px; height: 80px; font-size: 18px; }
  #uniqueCode { font-size: 18px; }
}
