/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: #e5e7eb;
  background:
    radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Links */
a {
  color: #9ca3ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.06s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: #5865f2;
  border-color: #5865f2;
  color: #f9fafb;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.65);
}

.btn--primary:hover {
  background-color: #4752c4;
  border-color: #4752c4;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.7);
}

.btn--ghost {
  background-color: #111827;
  border-color: #374151;
  color: #e5e7eb;
}

.btn--ghost:hover {
  background-color: #1f2937;
  border-color: #4b5563;
}

.btn--full {
  width: 100%;
}

/* Main layout */
main {
  padding-top: 4.5rem;
}

.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  animation: fadeInUp 0.6s ease-out;
}

.hero__content h1 {
  font-size: clamp(2rem, 2.4rem, 2.7rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #f9fafb;
}

.hero__content p {
  margin: 0 0 1.5rem;
  color: #9ca3af;
  max-width: 32rem;
}

/* Cards / inputs */
.inputs-card {
  background-color: #111827;
  border-radius: 1.1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7);
  border: 1px solid #1f2937;
}

.inputs-card__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #e5e7eb;
}

#optionsInput {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid #374151;
  padding: 0.65rem 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 7rem;
  background-color: #020617;
  color: #e5e7eb;
}

#optionsInput::placeholder {
  color: #6b7280;
}

#optionsInput:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 1px #5865f233;
}

.inputs-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.inputs-card__hint {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Info section */
.info {
  padding: 2.2rem 0 3rem;
}

.info__grid {
  display: grid;
  gap: 2rem;
}

.info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.steps {
  padding-left: 1.3rem;
  margin: 0;
  color: #9ca3af;
}

.steps li {
  margin-bottom: 0.3rem;
}

.uses {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  color: #9ca3af;
}

.uses li {
  margin-bottom: 0.25rem;
}

/* Wheel area */
.hero__wheel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: stretch; /* let children control their own width */
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }

  .info__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.3rem;
  }
}
/* Match spin button + result width to wheel and center them */
.hero__wheel .btn--full {
  width: 100%;
  max-width: min(620px, 96vw);
  align-self: center;
}

.hero__wheel .result {
  width: 100%;
  max-width: min(620px, 96vw);
  align-self: center;
}
/* Wheel + spin button + result all share same width and are centered */
.hero__wheel .wheel-wrapper,
.hero__wheel #spinButton,
.hero__wheel #resultBox {
  max-width: min(620px, 96vw);
  margin-left: auto;
  margin-right: auto;
}

/* Make sure the spin button respects that width */
.hero__wheel #spinButton.btn--full {
  width: 100%;
}
