.zs-stage { cursor: crosshair; position: relative; }

.ms-mission {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 158, 142, 0.28);
  pointer-events: none;
  max-width: calc(100% - 1.5rem);
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.06);
}
.ms-mission__label {
  font-family: var(--zs-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zs-muted);
  white-space: nowrap;
  font-weight: 700;
}
.ms-mission__targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.ms-mission__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.45rem 0.15rem 0.25rem;
  border-radius: 999px;
  background: var(--zs-teal-soft);
  border: 1px solid rgba(15, 158, 142, 0.2);
  color: var(--zs-ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.ms-obj {
  --c: #0f9e8e;
  --g: #7ee0d2;
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  animation: zs-fade-in 0.12s ease-out;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ms-obj.is-target {
  animation: zs-fade-in 0.12s ease-out, ms-target-pulse 0.75s ease-in-out infinite;
}
.ms-obj.is-target .ms-glyph {
  filter: drop-shadow(0 2px 6px rgba(15, 158, 142, 0.35));
}
.ms-obj.is-distract .ms-glyph {
  opacity: 0.88;
}
.ms-obj.is-hit {
  pointer-events: none;
  animation: none;
  transform: scale(1.25);
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.ms-obj.is-penalty {
  pointer-events: none;
  animation: none;
  transform: scale(0.75) rotate(12deg);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.ms-obj.is-expire {
  pointer-events: none;
  animation: none;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

@keyframes ms-target-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.ms-glyph {
  display: block;
  width: 34px;
  height: 34px;
  background: var(--c);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--g) 45%, transparent);
}
.ms-glyph--circle { border-radius: 50%; }
.ms-glyph--square { border-radius: 4px; }
.ms-glyph--diamond {
  border-radius: 3px;
  transform: rotate(45deg) scale(0.78);
}
.ms-glyph--triangle {
  width: 0;
  height: 0;
  background: transparent;
  box-shadow: none;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 30px solid var(--c);
  filter: drop-shadow(0 2px 4px rgba(10, 22, 40, 0.15));
}
.ms-glyph--star {
  width: 34px;
  height: 34px;
  background: var(--c);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(10, 22, 40, 0.15));
}
.ms-glyph--hexagon {
  width: 34px;
  height: 30px;
  background: var(--c);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(10, 22, 40, 0.15));
}

.ms-mission .ms-glyph {
  width: 18px;
  height: 18px;
  box-shadow: none;
}
.ms-mission .ms-glyph--triangle {
  border-left-width: 9px;
  border-right-width: 9px;
  border-bottom-width: 16px;
  width: 0;
  height: 0;
}
.ms-mission .ms-glyph--hexagon { height: 16px; width: 18px; }
.ms-mission .ms-glyph--diamond { transform: rotate(45deg) scale(0.7); }

.hint { font-size: 0.85rem; color: var(--zs-muted); }

.ms-float {
  position: absolute;
  pointer-events: none;
  font-family: var(--zs-display);
  font-size: 0.95rem;
  font-weight: 700;
  z-index: 4;
  animation: ms-up 0.7s ease-out forwards;
}
.ms-float--good { color: var(--zs-cyan-deep); }
.ms-float--bad { color: var(--zs-error); }

@keyframes ms-up {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-36px); }
}

@media (max-width: 560px) {
  .ms-mission { top: 0.4rem; padding: 0.3rem 0.55rem; gap: 0.35rem; }
  .ms-mission__label { display: none; }
  .ms-obj { width: 44px; height: 44px; }
}
