*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 50%, #f7931e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 6px;
}

.subtitle {
  color: #888;
  font-size: 1rem;
  margin-bottom: 28px;
}

.roulette-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.arrow {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 36px solid #e53935;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

canvas {
  display: block;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.result {
  min-height: 48px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e53935;
  margin-bottom: 20px;
  transition: opacity 0.3s;
}

.spin-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
  transition: transform 0.1s, box-shadow 0.1s;
  margin-bottom: 36px;
}

.spin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.spin-btn:active {
  transform: translateY(0);
}

.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.menu-editor {
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 24px;
}

.menu-editor h2 {
  font-size: 1rem;
  color: #555;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#menuList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 220px;
  overflow-y: auto;
}

#menuList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.95rem;
  color: #333;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.menu-label {
  flex: 1;
}

.remove-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: #e53935;
}

.add-row {
  display: flex;
  gap: 8px;
}

.add-row input {
  flex: 1;
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.add-row input:focus {
  border-color: #ff6b35;
}

.add-row button {
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.add-row button:hover {
  background: #e55a28;
}
