.free-spin-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
  min-height: 100%;
  color: #f8fbff;
}

.free-spin-board,
.free-spin-result-card,
.free-spin-info-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 202, 84, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(23, 25, 66, 0.98), rgba(9, 19, 46, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  border-radius: 24px;
}

.free-spin-board {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}


.free-spin-headline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.free-spin-title-wrap {
  min-width: 0;
}

.free-spin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 196, 69, 0.14);
  color: #ffd66b;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.free-spin-title-wrap h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1;
}

.free-spin-top-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-box {
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 14px;
  min-width: 0;
}

.stat-box strong {
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.1;
  display: block;
}

.lucky-wheel-stage {
  --label-distance: 124px;
  width: min(84vw, 380px);
  height: min(84vw, 380px);
  max-width: 380px;
  max-height: 380px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 2px auto;
}

.lucky-wheel-pointer {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 38px solid #f7c94d;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34));
}

.lucky-wheel-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 12px solid #f0bd3f;
  outline: 6px solid rgba(255, 231, 154, 0.92);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.14),
    inset 0 0 44px rgba(0, 0, 0, 0.34),
    0 18px 36px rgba(0, 0, 0, 0.34);
  transition: transform 3.35s cubic-bezier(0.08, 0.72, 0.12, 1);
}

.lucky-wheel-disc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 42%),
    repeating-conic-gradient(from -90deg, rgba(255, 221, 112, 0.92) 0deg 1.3deg, transparent 1.3deg 22.5deg);
  pointer-events: none;
}

.wheel-segment-text {
  position: absolute;
  inset: 50% auto auto 50%;
  transform-origin: 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 0;
  user-select: none;
}

.wheel-segment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 3px 6px;
  border-radius: 999px;
  font-weight: 900;
  font-size: clamp(13px, 3.9vw, 21px);
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.wheel-segment-text.is-locked .wheel-segment-chip {
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(11px, 3.2vw, 16px);
}

.tone-bomb .wheel-segment-chip {
  min-width: 36px;
  font-size: clamp(16px, 4.4vw, 24px);
}

.tone-boost .wheel-segment-chip,
.tone-jackpot .wheel-segment-chip,
.tone-cash .wheel-segment-chip,
.tone-zero .wheel-segment-chip {
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.2);
}

.wheel-center-gem {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 34% 30%, #ffb3b3, #f23e57 36%, #9e1028 72%, #5f0817 100%);
  border: 7px solid #efc04f;
  box-shadow:
    0 0 16px rgba(255, 228, 122, 0.78),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24);
}

.bomb-blast-animation {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  font-size: clamp(88px, 22vw, 168px);
  animation: bombBlast 1.4s ease-out both;
  pointer-events: none;
}

@keyframes bombBlast {
  0% { transform: scale(0.2) rotate(-16deg); opacity: 0; filter: blur(4px); }
  18% { transform: scale(1.2) rotate(8deg); opacity: 1; filter: blur(0); }
  55% { transform: scale(1.55) rotate(-3deg); opacity: 0.95; }
  100% { transform: scale(2.35) rotate(6deg); opacity: 0; filter: blur(8px); }
}

.free-spin-action-area {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.free-spin-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.9);
}

.free-spin-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #5baef8, #3d7ed3);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(41, 127, 215, 0.34);
}

.free-spin-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.spin-icon {
  animation: spinIcon 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spinIcon {
  to { transform: rotate(360deg); }
}

.free-spin-error {
  margin: 0;
  color: #ff9c9c;
  font-weight: 700;
  text-align: center;
}

.free-spin-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.free-spin-result-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 196, 69, 0.16);
  color: #ffd66b;
  flex: 0 0 auto;
}

.free-spin-result-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.free-spin-result-card p {
  margin: 0;
  color: rgba(248, 251, 255, 0.72);
  line-height: 1.5;
}

.free-spin-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.free-spin-info-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.free-spin-info-card {
  padding: 16px;
}

.free-spin-info-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.recent-spin-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.recent-spin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.recent-spin-value {
  font-weight: 900;
  font-size: 17px;
}

.recent-spin-row small,
.free-spin-small-note {
  color: rgba(248, 251, 255, 0.62);
}

.free-spin-small-note {
  margin: 14px 0 0;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .free-spin-page {
    padding: 8px;
    gap: 10px;
  }

  .free-spin-board,
  .free-spin-result-card,
  .free-spin-info-card {
    border-radius: 20px;
  }

  .free-spin-board,
  .free-spin-info-card {
    padding: 12px;
  }

  .free-spin-headline {
    align-items: flex-start;
    gap: 8px;
  }

  .free-spin-title-wrap h1 {
    font-size: 24px;
    margin-top: 8px;
  }

  .free-spin-badge {
    font-size: 11px;
    padding: 7px 11px;
  }


  .free-spin-top-row {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 8px;
  }

  .free-spin-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-box {
    padding: 10px 10px;
    border-radius: 14px;
  }

  .stat-box .free-spin-label {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .stat-box strong {
    font-size: clamp(15px, 4.5vw, 17px);
    white-space: nowrap;
  }

  .lucky-wheel-stage {
    --label-distance: 100px;
    width: min(76vw, 310px);
    height: min(76vw, 310px);
    max-width: 310px;
    max-height: 310px;
  }

  .lucky-wheel-pointer {
    border-left-width: 18px;
    border-right-width: 18px;
    border-top-width: 28px;
  }

  .lucky-wheel-disc {
    border-width: 10px;
    outline-width: 5px;
  }

  .wheel-segment-chip {
    min-width: 34px;
    padding: 2px 4px;
    font-size: clamp(11px, 3.7vw, 16px);
  }

  .wheel-segment-text.is-locked .wheel-segment-chip {
    font-size: clamp(9px, 3vw, 12px);
  }

  .tone-bomb .wheel-segment-chip {
    min-width: 28px;
    font-size: clamp(13px, 3.8vw, 18px);
  }

  .wheel-center-gem {
    width: 66px;
    height: 66px;
    border-width: 5px;
  }

  .free-spin-countdown-pill {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 12px;
  }

  .free-spin-button {
    min-height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }

  .free-spin-result-card {
    padding: 14px;
    gap: 12px;
  }

  .free-spin-result-card h2 {
    font-size: 17px;
  }

  .free-spin-result-card p {
    font-size: 13px;
  }

  .recent-spin-row {
    padding: 10px 12px;
  }

  .recent-spin-value {
    font-size: 15px;
  }

  .recent-spin-row small,
  .free-spin-small-note {
    font-size: 11px;
  }
}
