/* ============================================================
   gelo.fyi — Picker Spinner
   ============================================================ */

/* ---------- Stage ---------- */

.spinner-flow {
  width: min(720px, 100% - 48px);
  margin-inline: auto;
}

.spinner-stage {
  position: relative;
  width: min(560px, 100%);
  margin: 8px auto 0;
  aspect-ratio: 1;
  animation: fade-up 0.7s var(--ease-spring) 0.18s both;
}

#wheel {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow: var(--shadow-tile-hover);
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

/* ---------- Actions ---------- */

.spinner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  animation: fade-up 0.5s var(--ease-spring) 0.24s both;
}

/* ---------- Result ---------- */

.result { margin-top: 34px; }

.winner {
  margin-top: 8px;
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* ---------- Options panel ---------- */

.options-panel {
  margin-top: 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-tile);
  padding: 24px;
}

.options-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.options-head h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.options-count {
  font-size: 13.5px;
  color: var(--text-tertiary);
}

.option-list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.option-row.is-winning {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.option-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: none;
}

.option-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.option-remove:hover { background: var(--bg-elevated); color: var(--danger); }

.option-add {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.option-input {
  flex: 1;
  height: 44px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  padding: 0 18px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.option-input::placeholder { color: var(--text-tertiary); }

.option-input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.options-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
}

@media (max-width: 560px) {
  .option-add { flex-direction: column; }
  .option-add .btn { width: 100%; }
}
