.mission-add {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  box-shadow: 0 8px 16px rgba(24, 68, 78, .15), inset 0 1px rgba(255, 255, 255, .9);
  font: 700 24px/1 "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.mission-add:hover,
.mission-add:focus-visible {
  background: rgba(255, 255, 255, .9);
  color: #285959;
}

#collectorControls label[for="keywordInput"] {
  display: block;
  flex: 1;
  min-width: 0;
}

#collectorControls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#rouletteWheel {
  border-color: #dbe2e6;
  box-shadow: inset 0 0 0 5px #8fa0aa, inset 0 0 0 11px rgba(255, 255, 255, .9), inset 0 0 32px rgba(255, 255, 255, .36), 0 0 0 2px rgba(255, 255, 255, .86);
}

.roulette-wrap > .wheel-core {
  border-color: #cfd8dc;
  background: radial-gradient(circle at 34% 28%, #ffffff, #b0bec5 55%, #78909c);
  box-shadow: 0 0 0 5px rgba(236, 239, 241, .85), 0 8px 18px rgba(55, 71, 79, .25);
  color: #37474f;
}

.mission-add:disabled,
.mission-input:disabled,
.mission-remove:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.mission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(87, 137, 129, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  list-style: none;
}

.mission-row.is-winner {
  border-color: rgba(210, 140, 140, .6);
  background: linear-gradient(135deg, rgba(255, 253, 251, .92), rgba(242, 201, 201, .75));
}

.mission-row.is-winner small {
  color: #8f5f5f;
}

#decisionReveal button {
  border-color: #e8a8a8;
  background: linear-gradient(135deg, #fffdfb, #f2c9c9);
  box-shadow: 0 10px 22px rgba(139, 81, 81, .24), inset 0 1px rgba(255, 255, 255, .95);
  color: #5f2b2b;
}

#decisionReveal strong {
  color: #231416;
}

#decisionReveal small {
  color: #8f5f5f;
}

#decisionReveal button:hover {
  box-shadow: 0 14px 28px rgba(139, 81, 81, .32), inset 0 1px rgba(255, 255, 255, .95);
}

.mission-row.is-lost {
  opacity: .55;
}

.mission-input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(87, 137, 129, .3);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #214c50;
  font-size: 12px;
}

.mission-row small {
  color: #527174;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
}

.mission-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 16px;
  cursor: pointer;
}

.mission-remove:hover,
.mission-remove:focus-visible {
  color: #9f1e2f;
  background: rgba(255, 255, 255, .9);
}

.mission-remove svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.decision-stars {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#rouletteWheel {
  position: relative;
  z-index: 1;
}

body[data-game="decision"] .game-heading .result-banner {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-game="decision"] .game-heading .result-banner strong,
body[data-game="decision"] .game-heading .result-banner span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.decision-stars[hidden] {
  display: none;
}

.decision-star {
  position: absolute;
  top: -5%;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: var(--star-glow, 0px 0px 10px 3px #ffffff);
  opacity: 0;
  animation: decision-star-fall 2.4s linear infinite;
}

.decision-star::after {
  position: absolute;
  top: calc(50% - 1px);
  left: -950%;
  width: 2000%;
  height: 2px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), var(--star-color, #ffffff));
  content: "";
  transform: rotateZ(-45deg) translateX(50%);
}

@keyframes decision-star-fall {
  0% {
    top: -5%;
    transform: translateX(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    top: 105%;
    transform: translateX(var(--star-fall-x, -500px));
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decision-star {
    animation: none;
  }
}
