:root {
  --bg1: #fff0f5;
  --bg2: #ffe4ec;
  --card: rgba(255,255,255,.88);
  --text: #3d1f2f;
  --muted: #8a5b70;
  --accent: #ff4f8b;
  --accent2: #ff9fcb;
  --shadow: 0 20px 60px rgba(128, 29, 76, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, #ffffff 0 16%, transparent 34%),
    radial-gradient(circle at 80% 0%, #ffd1e1 0 16%, transparent 32%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

.app {
  width: min(900px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0;
}

.hero {
  text-align: center;
  margin-bottom: 22px;
}

.bee-hero {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 28px;
  border: 6px solid white;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  animation: floaty 2.4s ease-in-out infinite;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: .95;
  margin: 8px 0 14px;
}

h2 { margin: 0 0 14px; }

p { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}

form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input, button {
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  font: inherit;
}

input {
  background: #fff;
  outline: 2px solid transparent;
}

input:focus { outline-color: var(--accent2); }

button {
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 800;
  transition: transform .15s ease, opacity .15s ease;
}

button:hover { transform: translateY(-1px); }

button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.status {
  min-height: 20px;
  margin: 12px 0 0;
}

.wheel-card { text-align: center; }

.wheel-wrap {
  display: grid;
  place-items: center;
  margin: 8px 0 18px;
}

.wheel {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: conic-gradient(#ff4f8b, #ffd1e1, #ff85ad, #fff, #ff4f8b);
  border: 10px solid white;
  box-shadow: inset 0 0 0 2px rgba(255,79,139,.18), var(--shadow);
  transition: transform 2.2s cubic-bezier(.17,.67,.2,1.05);
}

.big-btn {
  font-size: 1.05rem;
  padding: 16px 26px;
}

.bee-result {
  margin: 22px auto 8px;
  text-align: center;
}

.bee-result img {
  width: 190px;
  max-width: 80%;
  border-radius: 24px;
  border: 6px solid white;
  box-shadow: var(--shadow);
  animation: beePop .55s ease both, beeWiggle .85s ease-in-out .55s infinite;
}

.hidden {
  display: none;
}

.winner {
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 850;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#count {
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 900;
}

.ideas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ideas li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 14px 14px 14px 18px;
}

.idea-text { font-weight: 800; }

.delete-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  background: #ffe4ec;
  color: var(--accent);
  font-size: 22px;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes beePop {
  from {
    opacity: 0;
    transform: scale(.7) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes beeWiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@media (max-width: 600px) {
  form { grid-template-columns: 1fr; }
  .wheel { width: 180px; height: 180px; }
  .bee-hero { width: 125px; height: 125px; }
}
