.challenge-wheel-page .challenge-wheel-main {
  padding-top: 8.5rem;
  padding-bottom: 2rem;
}

/* styles.css adds 9rem vertical padding to all <section> on desktop — reset on this tool page */
.challenge-wheel-page section {
  padding: 0;
}

.challenge-wheel-container {
  max-width: 680px;
}

.challenge-wheel-hero {
  text-align: center;
  margin-bottom: 1.1rem;
}

.challenge-wheel-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 auto 1.35rem;
  padding: 0.3rem;
  max-width: 100%;
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.challenge-wheel-tab {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.52rem 0.75rem;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(0.68rem, 2.6vw, 0.82rem);
  line-height: 1.2;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.challenge-wheel-tab:hover {
  color: #334155;
}

.challenge-wheel-tab[aria-selected="true"] {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.challenge-wheel-tab:focus-visible {
  outline: 2px solid #4aa3df;
  outline-offset: 2px;
}

.challenge-wheel-tab-info {
  max-width: 34rem;
  margin: 0.15rem auto 0;
  text-align: center;
}

.challenge-wheel-tab-info-default {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.challenge-wheel-tab-info-monotype h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #4aa3df;
  margin: 0 0 0.45rem;
}

.challenge-wheel-tab-info-monotype p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}

.challenge-wheel-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.35rem;
}

.challenge-wheel-hero p {
  color: #64748b;
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.5;
  font-size: 0.98rem;
}

/* Single content block — keeps Mediavine from injecting a large ad gap between wheel and how-to */
.challenge-wheel-content {
  margin-bottom: 0;
}

.challenge-wheel-tool {
  margin: 0 auto 0;
}

.challenge-wheel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Fixed size prevents CLS while canvas draws */
.challenge-wheel-canvas-wrap {
  --wheel-size: min(94vw, 580px);
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  flex-shrink: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.challenge-wheel-canvas-wrap.is-switching {
  opacity: 0.35;
  transform: scale(0.97);
  pointer-events: none;
}

.challenge-wheel-pointer {
  position: absolute;
  top: -0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid #1e293b;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  z-index: 2;
  pointer-events: none;
}

.challenge-wheel-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.18),
    0 0 0 6px #ffffff,
    0 0 0 10px rgba(74, 163, 223, 0.35);
}

.challenge-wheel-canvas-wrap.is-spinning .challenge-wheel-canvas {
  cursor: wait;
}

.challenge-wheel-center-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.25rem, 13.5%, 5.75rem);
  height: clamp(4.25rem, 13.5%, 5.75rem);
  padding: 0.35rem;
  border: 4px solid #4aa3df;
  border-radius: 50%;
  background: #ffffff;
  color: #1e293b;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(0.72rem, 2.4vw, 0.92rem);
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transform: translate(-50%, -50%);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.challenge-wheel-center-spin:hover:not(:disabled) {
  background: #f0f9ff;
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 6px 18px rgba(74, 163, 223, 0.35);
}

.challenge-wheel-center-spin:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.98);
}

.challenge-wheel-center-spin:disabled {
  opacity: 0.75;
  cursor: wait;
}

.challenge-wheel-center-spin-label {
  pointer-events: none;
}

.challenge-wheel-hint {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  text-align: center;
}

.challenge-wheel-howto {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.challenge-wheel-howto,
.challenge-wheel-seo-appendix {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.challenge-wheel-seo-appendix {
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.challenge-wheel-howto h2,
.challenge-wheel-seo-appendix h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #4aa3df;
  margin-bottom: 0.6rem;
}

.challenge-wheel-seo-appendix h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.challenge-wheel-howto p,
.challenge-wheel-seo-appendix p,
.challenge-wheel-howto li,
.challenge-wheel-seo-appendix li {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.challenge-wheel-howto p:last-child,
.challenge-wheel-seo-appendix p:last-child {
  margin-bottom: 0;
}

.challenge-wheel-howto ol {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.challenge-wheel-challenge-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.challenge-wheel-seo-foot {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.challenge-wheel-seo-foot a {
  font-weight: 600;
}

.challenge-wheel-modal {
  border: none;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.challenge-wheel-modal-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.challenge-wheel-modal-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.challenge-wheel-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.challenge-wheel-spin-again,
.challenge-wheel-share-btn {
  border-radius: 999px;
  font-weight: 600;
  min-width: 7.5rem;
}

.challenge-wheel-spin-again {
  background: #4aa3df;
  border-color: #4aa3df;
}

.challenge-wheel-share-btn {
  border-color: #4aa3df;
  color: #4aa3df;
}

.challenge-wheel-share-btn:hover {
  background: #f0f9ff;
  border-color: #357abd;
  color: #357abd;
}

.challenge-wheel-share-feedback {
  min-height: 1.25rem;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .challenge-wheel-canvas-wrap {
    --wheel-size: min(620px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .challenge-wheel-canvas {
    transition: none;
  }
}

@media (max-width: 600px) {
  .challenge-wheel-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .challenge-wheel-tabs::-webkit-scrollbar {
    display: none;
  }

  .challenge-wheel-tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .challenge-wheel-pointer {
    border-left-width: 12px;
    border-right-width: 12px;
    border-top-width: 22px;
  }
}
