* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Tahoma, sans-serif;
  background: radial-gradient(circle at top, #2b2b2b, #090909);
  color: #fff;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 24px 18px 28px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

h1 {
  margin: 0;
  font-size: 30px;
}

.subtitle {
  margin: 10px 0 20px;
  color: #ddd;
  font-size: 15px;
  line-height: 1.7;
}

.social-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 20px;
}

.social-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.social-box p {
  margin: 0 0 14px;
  color: #ddd;
  font-size: 14px;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-btn {
  display: block;
  text-decoration: none;
  color: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.facebook {
  background: #1877f2;
}

.wheel-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 10px auto 22px;
}

#wheelCanvas {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: block;
  transition: transform 5s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
}

.pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid #ffdf4d;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4));
}

.spin-btn {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #ffcf33, #ff8a00);
  color: #111;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.spin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.message {
  margin-top: 18px;
  min-height: 26px;
  font-size: 16px;
  line-height: 1.6;
}

.message.win {
  color: #64ff9a;
  font-weight: bold;
}

.message.lose {
  color: #ffdf4d;
  font-weight: bold;
}

.message.error {
  color: #ff7373;
  font-weight: bold;
}

@media (max-width: 380px) {
  .wheel-wrapper,
  #wheelCanvas {
    width: 280px;
    height: 280px;
  }

  #wheelCanvas {
    width: 280px;
    height: 280px;
  }
}