.um-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.um-level-select {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.um-level-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
}

.um-level-btn--current {
  border-color: var(--color-accent, #4fd8e0);
  background: rgba(79, 216, 224, 0.15);
}

.um-level-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.um-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--um-size, 6), 1fr);
  grid-template-rows: repeat(var(--um-size, 6), 1fr);
  gap: 3px;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: var(--radius-md);
  background: #1c1f26;
  box-shadow: inset 0 0 0 3px var(--color-border);
}

.um-cell {
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.um-cell--exit {
  background: rgba(79, 216, 224, 0.25);
}

.um-piece {
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.um-piece--target {
  background: #ef5350;
}

.um-piece--selected {
  outline: 3px solid var(--color-accent, #4fd8e0);
  outline-offset: -3px;
}

.game-message {
  min-height: 22px;
  font-weight: 600;
  color: var(--color-accent, #4fd8e0);
  text-align: center;
}
