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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: Inter, sans-serif;
  background: #11131b;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background: radial-gradient(
    circle at top,
    rgba(108, 92, 255, 0.25),
    transparent 45%
  );
}

.page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.back-btn {
  width: 145px;
  height: 40px;
  border: none;
  border-radius: 14px;
  background: #1f2435;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  font-family: Inter, sans-serif;
  font-weight: 600;
}

.spin-btn {
  width: 180px;
  height: 40px;
  border: none;
  border-radius: 14px;
  background: #1f2435;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  font-family: Inter, sans-serif;
  font-weight: 600;
}

.back-btn:hover {
  background: #2b3148;
}

.currency {
  display: flex;
  gap: 12px;
}

.pill {
  background: #1b2030;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.pill-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transform: rotate(160deg);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main h1 {
  margin-bottom: 40px;
  font-size: 26px;
}

.spin-area {
  position: relative;
  width: min(1100px, 100vw);
  height: 340px;
  overflow: hidden;
}

.spin-area::before,
.spin-area::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 20;
  pointer-events: none;
}

.spin-area::before {
  left: 0;
  background: linear-gradient(to right, #11131b, transparent);
}

.spin-area::after {
  right: 0;
  background: linear-gradient(to left, #11131b, transparent);
}

.track {
  position: absolute;
  left: -180px;
  top: 50%;
  display: flex;
  gap: 26px;
  transform: translateY(-50%) rotate(-4deg);
  width: max-content;
  will-change: transform;
}

.track img {
  width: 170px;
  display: block;
  user-select: none;
  pointer-events: none;
}

.selector {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 191.6px;
  height: 300px;
  z-index: 30;
}

.selector-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(39, 43, 63, 0.96),
    rgba(24, 27, 40, 0.98)
  );
  border: 2px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: 0.25s;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.selector-inner:hover {
  transform: scale(1.02);
}

.plus {
  width: 74px;
  height: 74px;
  border: none;
  border-radius: 50%;
  background: #383d53;
  color: white;
  font-size: 42px;
  cursor: pointer;
  transition: 0.25s;
}

.plus:hover {
  background: #4d5576;
}

.selected-image {
  width: 100%;
  height: 100%;
}

.spin-button {
  margin-top: 42px;
  width: 200px;
  height: 58px;
  border: none;
  border-radius: 18px;
  background: #6d5cff;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  font-family: Inter, sans-serif;
}

.spin-button:hover {
  transform: translateY(-2px);
}

footer {
  padding: 20px;
}

.notice {
  width: min(900px, 92vw);
  margin: auto;
  display: flex;
  gap: 18px;
  background: #1a1f2d;
  border-radius: 22px;
  padding: 20px;
}

.notice-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2f3653;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.notice p {
  color: #9ba2bc;
  margin-top: 6px;
  line-height: 1.5;
  font-size: 12px;
}

@media (max-width: 768px) {
  main h1 {
    font-size: 22px;
    text-align: center;
    padding: 0 20px;
  }

  .selector {
    width: 191.6px;
  }

  .track img {
    width: 145px;
  }

  .spin-button {
    width: 40%;
  }
}
