.wheel-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.wheel-container {
  position: relative;
}

.pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--accent2);
  z-index: 10;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.wheel-section canvas {
  border-radius: 50%;
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 15%, transparent);
}

#spin-btn {
  padding: 0.7rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#spin-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.03);
}

#spin-btn:disabled {
  background: var(--border);
  color: var(--text-dim);
  cursor: not-allowed;
}

#result {
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 1.8rem;
  color: var(--accent2);
}

.options-section {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 240px;
  max-width: 300px;
}

.options-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
}

#option-form {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

#option-input {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

#option-input:focus {
  border-color: var(--accent);
}

#option-form button {
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

#option-form button:hover {
  background: var(--accent-hover);
}

#option-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 260px;
  overflow-y: auto;
}

#option-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.85rem;
}

#option-list li button {
  background: none;
  border: none;
  color: var(--accent2);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}

#option-list li button:hover {
  color: var(--accent2-hover);
}

@media (max-width: 560px) {
  .wheel-section canvas {
    width: 280px;
    height: 280px;
  }

  .options-section {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}

/* Prevent iOS auto-zoom on focus */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px !important; }
}
