@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

body {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  min-height: 100vh;
  margin: 0;
  font-family: 'Luckiest Guy', cursive, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  color: #ff5e62;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #fff176, 4px 4px 0 #ff5e62;
}

.lottery-controls label {
  font-size: 1.1rem;
  color: #333;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

#entries {
  width: 80%;
  border-radius: 1rem;
  border: 2px solid #ff5e62;
  padding: 1rem;
  font-size: 1.1rem;
  min-height: 180px;
  margin-bottom: 1rem;
  /* resize: vertical; */
  resize: none;
  background: #fff8e1;
  font-family: inherit;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.options label {
  font-size: 1rem;
  font-weight: normal;
  color: #444;
}

#numDraws {
  width: 3.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid #ff5e62;
  padding: 0.2rem 0.5rem;
  margin: 0 0.3rem;
}

#allowRepeats {
  accent-color: #ff5e62;
  margin-right: 0.3rem;
}

#drawBtn {
  background: linear-gradient(90deg, #ff5e62 0%, #ff9966 100%);
  color: #fff;
  font-size: 1.3rem;
  font-family: inherit;
  font-weight: bold;
  border: none;
  border-radius: 1rem;
  padding: 0.8rem 2.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,94,98,0.15);
  transition: transform 0.1s, box-shadow 0.1s;
  margin-bottom: 1rem;
}

#drawBtn:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(255,94,98,0.25);
}

.results {
  min-height: 60px;
  margin-top: 1.5rem;
  font-size: 1.3rem;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2.5rem; /* Extra space at bottom for winner balls */
}

.winner-ball {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff176 0%, #ff5e62 100%);
  color: #fff;
  font-size: 2rem;
  font-family: inherit;
  font-weight: bold;
  border-radius: 50px;
  min-width: 80px;
  min-height: 80px;
  max-width: 100%;
  margin: 0.5rem;
  box-shadow: 0 4px 16px rgba(255,94,98,0.2);
  animation: bounceIn 0.7s cubic-bezier(.68,-0.55,.27,1.55);
  border: 4px solid #fff;
  text-shadow: 2px 2px 0 #ff5e62, 0 0 8px #fff176;
  padding: 0 18px;
  width: auto;
  transition: width 0.2s, min-height 0.2s;
  word-break: break-word;
  white-space: pre-line;
  text-align: center;
}

@keyframes bounceIn {
  0% { transform: scale(0.2) translateY(100px); opacity: 0; }
  60% { transform: scale(1.2) translateY(-20px); opacity: 1; }
  80% { transform: scale(0.95) translateY(10px);}
  100% { transform: scale(1) translateY(0);}
}

.mute-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: linear-gradient(135deg, #fff8e1 60%, #ffecd2 100%);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(255,94,98,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
}

.mute-toggle:hover, .mute-toggle:focus {
  background: linear-gradient(135deg, #fff8e1 60%, #ffecd2 100%);
  box-shadow: 0 2px 12px rgba(255,94,98,0.18);
  border: none;
}

.mute-toggle svg {
  pointer-events: none;
}

#crossIcon {
  display: block;
}

.mute-toggle.unmuted #crossIcon {
  display: none;
}