.wheel-of-fortune-page .wof-root {
  max-width: 52rem;
}

.wof-disclaimer {
  background: linear-gradient(180deg, rgba(255, 198, 106, 0.2), rgba(130, 70, 20, 0.22));
  border: 1px solid rgba(255, 214, 140, 0.65);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  margin-top: 1.35rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #fff5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wof-disclaimer p {
  margin: 0;
  color: #fff8ea;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.wof-disclaimer strong {
  color: #ffe8ac;
}

.wof-title {
  font-family: Cinzel, "Times New Roman", serif;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.wof-lead {
  margin-top: 0;
}

.wof-question {
  margin: 1.25rem 0 1rem;
}

.wof-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.wof-required {
  color: #ff9b6b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-left: 0.35rem;
  text-transform: uppercase;
}

.wof-textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(200, 215, 255, 0.25);
  background: rgba(8, 14, 28, 0.65);
  color: #eaf0ff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.wof-textarea:focus-visible {
  outline: 2px solid rgba(255, 209, 122, 0.6);
  outline-offset: 2px;
}

.wof-textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wof-question-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.wheel-of-fortune-page .wof-reset,
.wheel-of-fortune-page .wof-repeat-main {
  width: auto;
  min-width: 11rem;
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 223, 141, 0.7);
  background: linear-gradient(180deg, rgba(70, 50, 18, 0.95), rgba(46, 32, 12, 0.95));
  color: #fff7e8;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 6px 12px rgba(0, 0, 0, 0.25);
}

.wheel-of-fortune-page .wof-reset:hover:not(:disabled),
.wheel-of-fortune-page .wof-repeat-main:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(96, 70, 28, 0.98), rgba(60, 44, 18, 0.98));
  border-color: rgba(255, 235, 170, 0.85);
}

.wheel-of-fortune-page .wof-reset:focus-visible,
.wheel-of-fortune-page .wof-repeat-main:focus-visible {
  outline: 2px solid rgba(255, 223, 141, 0.85);
  outline-offset: 2px;
}

.wheel-of-fortune-page .wof-reset[hidden],
.wheel-of-fortune-page .wof-repeat-main[hidden] {
  display: none;
}

.wof-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.wof-wheel-frame {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wof-wheel {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transform: rotate(0deg);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.wof-wedge {
  transition: filter 0.2s ease;
}

.wof-wedge-label {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  fill: #fff5dc;
  paint-order: stroke;
  stroke: rgba(8, 11, 22, 0.92);
  stroke-width: 2.4px;
  stroke-linejoin: round;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.wof-wheel-hub {
  fill: #1b2238;
  stroke: #d4b061;
  stroke-width: 3;
}

.wof-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #ffd479;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  z-index: 2;
}

.wof-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.wof-spin {
  min-width: 12rem;
}

.wof-spin:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.wof-status {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.25rem;
}

.wof-status.is-warn {
  color: #ffb86b;
}

.wof-status.is-error {
  color: #ff8a8a;
}

.wof-status.is-spinning {
  color: #ffe6b3;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(255, 220, 140, 0.4);
  animation: wofPulse 1.6s ease-in-out infinite;
}

@keyframes wofPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.wof-result {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 209, 122, 0.4);
  background: rgba(36, 26, 12, 0.5);
  text-align: center;
}

.wof-result.hidden {
  display: none;
}

.wof-result-heading {
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe6b3;
  margin: 0 0 0.4rem;
}

.wof-result-label {
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 1.6rem;
  color: #fff3d6;
  margin: 0;
}

.wof-result-question {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  word-break: break-word;
}

@media (max-width: 480px) {
  .wof-wedge-label {
    font-size: 10px;
  }
  .wof-spin {
    min-width: 10rem;
  }
}
